/* =====================================================================
   BENEFITS SECTION STYLES (CRIS ROSSI STYLING)
   ===================================================================== */

.cr-benefits-section {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 48px 10%; /* Desktop vertical padding 48px / Horizontal 10% to match grid layout */
  background-color: var(--benefits-bg, #F7F4F0);
  color: var(--benefits-text, #2B2B2B);
  box-sizing: border-box;
}

.benefits-container {
  width: 100%;
  max-width: var(--container-width, 1200px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: start;
  gap: 40px; /* 40px gap between items */
  box-sizing: border-box;
}

.benefit-item-link,
.benefit-item-div {
  display: block;
  color: inherit;
  text-decoration: none;
  width: 100%;
}

.benefit-item-link:hover {
  color: inherit;
  text-decoration: none;
  opacity: 0.95;
}

.benefit-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 12px; /* Gap between title, icon, and description */
  box-sizing: border-box;
}

.benefit-icon-container {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.benefit-title {
  font-family: var(--cr-font-sans, sans-serif);
  font-style: italic; /* Italicized title as in the print */
  font-weight: 400;
  font-size: 20px; /* Match print desktop size */
  line-height: 1.26;
  margin: 0;
  text-transform: none; /* Keep natural case (not uppercase) */
  letter-spacing: normal;
}

.benefit-text {
  font-family: var(--cr-font-sans, sans-serif);
  font-weight: 300;
  font-size: 18px; /* Match print desktop size */
  line-height: 1.26;
  margin: 0;
}

/* ---------------------------------------------------------------------
   Tablet View (2 Columns)
   --------------------------------------------------------------------- */
@media (max-width: 991px) and (min-width: 768px) {
  .cr-benefits-section {
    padding: 40px 5%;
  }

  .benefits-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

/* ---------------------------------------------------------------------
   Mobile View (1 Column horizontal slider with scroll-snap)
   --------------------------------------------------------------------- */
@media (max-width: 767px) {
  .cr-benefits-section {
    padding: 32px 0;
  }

  .benefits-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 0 10%; /* Matches side alignment alignment */
    gap: 0;
  }

  /* Hide scrollbar */
  .benefits-container::-webkit-scrollbar {
    display: none;
  }
  .benefits-container {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
  }

  .benefit-item-link,
  .benefit-item-div {
    flex: 0 0 100%;
    scroll-snap-align: center;
  }

  .benefit-item {
    padding-right: 32px; /* Spacer between cards during horizontal scroll */
    gap: 8px;
  }

  .benefit-title {
    font-size: 16px;
  }

  .benefit-text {
    font-size: 14px;
  }
}
