.benefit-cards-section {
  --navy: #09476E;
  --blue: #0096D6;
  --gold: #C5960C;
  --lgray: #c5c5c5;
  background: #ffffff;
  font-family: "Galano Grotesque", Sans-Serif;
}

.imgt-module--outer-section {
  padding: 30px 0 45px;
}

.imgt-module--outer-section a:not(.benefit-callout-btn),
.imgt-module--outer-section a:not(.benefit-callout-btn) > span {
  font-family: "Galano Grotesque Bold", Sans-Serif;
  color: #0096d6 !important;
}

.benefit-cards-content-wrap {
  max-width: 1083px;
  margin: 0 auto;
  text-align: center;
}

@media (min-width: 768px) {
  .container,
  .benefit-cards-content-wrap {
    width: 750px;
  }
}
@media (min-width: 992px) {
  .container,
  .benefit-cards-content-wrap {
    width: 970px;
  }
}
@media (min-width: 1200px) {
  .container,
  .benefit-cards-content-wrap {
    width: 1083px;
  }
}
.content section.benefit-cards-section > .benefit-cards-content-wrap > h2.section-title > span.no-caps {
font-family: "Galano Grotesque Bold", Sans-Serif;
    color: var(--blue);
    font-size: 38px;
    line-height: 41px;
    letter-spacing: 0;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.benefit-cards-section .section-intro {
  font-size: 16px;;
  line-height: 1.6;
  margin: 0 auto 45px;
  max-width: 760px;
}

.benefit-cards-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 24px;
  align-items: stretch;
}

/* Cards */
.benefit-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: left;
  overflow: hidden;
  border: 1px solid #d8e6ef;
  transition: box-shadow 0.2s ease;
}

.benefit-card:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

a.benefit-card {
  text-decoration: none;
  cursor: pointer;
}

.benefit-card-image {
  width: 100%;
  height: 140px;
  margin-bottom: 14px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.benefit-card-body {
  padding: 0 10px;
}

.benefit-card-body h3 {
  font-family: "Galano Grotesque Bold", Sans-Serif;
  font-size: 16px;
  color: var(--navy);
  line-height: 1.4;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.benefit-card-desc {
  font-size: 16px;
  color: var(--navy);
  line-height: 1.4;
}

.benefit-card-desc p {
  margin: 0;
}

.benefit-card-link-arrow {
  transition: transform 0.2s ease;
}

/* Hover overlay (whole card is a link) */
.benefit-card-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(9, 71, 110, 0.9);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

a.benefit-card:hover .benefit-card-hover,
a.benefit-card:focus-visible .benefit-card-hover {
  opacity: 1;
  visibility: visible;
}

.imgt-module--outer-section .benefit-cards-container span.benefit-card-hover-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--navy) !important;
  font-family: "Galano Grotesque Bold", Sans-Serif !important;
  font-size: 13px !important;
  text-transform: uppercase;
  letter-spacing: 0.5px !important;
  text-decoration: none;
  text-align: center;
  line-height: 1.2 !important;
  padding: 10px;
  margin-bottom: 0 !important;
}
.imgt-module--outer-section .benefit-cards-container span.benefit-card-link-arrow{
  margin-bottom: 0 !important;
}
a.benefit-card:hover .benefit-card-hover-btn .benefit-card-link-arrow {
  transform: translateY(3px);
}

/* Callout card */
.benefit-cards-container .benefit-callout-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  background: #eef6fb;
  text-align: center;
}

.benefit-callout-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 14px;
}

.benefit-callout-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.imgt-module--outer-section .benefit-callout-desc > p {
    font-family: "Galano Grotesque Bold", Sans-Serif;
    font-size: 18px;
    color: var(--navy);
    line-height: 1.4;
    margin-bottom: 18px;
}

.imgt-module--outer-section .benefit-callout-card a.benefit-callout-btn {
  display: inline-block;
  background: var(--navy);
  font-family: "Galano Grotesque Bold", Sans-Serif;
  font-size: 13px;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: background 0.2s ease;
    color: #fff !important;
    padding: 12px 20px 16px;
}
.benefit-callout-btn:hover {
  background: var(--blue);
  color: #ffffff;
  text-decoration: none;
}

/* ======================================================
   Quantity-based grid layouts
   Selects the layout purely off how many total cards are
   present (Cards + the callout card, when it exists) using
   the ":first-child/:last-child" quantity-query technique —
   no template-side counting logic required.
   ====================================================== */

/* 1–4 total cards: a single row, one column per card */
.benefit-cards-container:where(:has(> *:nth-child(1):last-child)) { grid-template-columns: repeat(1, 1fr); }
.benefit-cards-container:where(:has(> *:nth-child(2):last-child)) { grid-template-columns: repeat(2, 1fr); }
.benefit-cards-container:where(:has(> *:nth-child(3):last-child)) { grid-template-columns: repeat(3, 1fr); }
.benefit-cards-container:where(:has(> *:nth-child(4):last-child)) { grid-template-columns: repeat(4, 1fr); }

/* 5–8 total cards, WITH a callout card: two rows */
.benefit-cards-container:where(:has(.benefit-callout-card):has(> *:nth-child(5):last-child)) {
  grid-template-columns: repeat(2, 1fr); /* 4 cards as 2x2, callout spans full width below */
}
.benefit-cards-container:where(:has(.benefit-callout-card):has(> *:nth-child(5):last-child)) > .benefit-callout-card {
  grid-column: span 2;
}

.benefit-cards-container:where(:has(.benefit-callout-card):has(> *:nth-child(6):last-child)) {
  grid-template-columns: repeat(3, 1fr); /* even 3x2, callout same width */
}

.benefit-cards-container:where(:has(.benefit-callout-card):has(> *:nth-child(7):last-child)) {
  grid-template-columns: repeat(4, 1fr);
}
.benefit-cards-container:where(:has(.benefit-callout-card):has(> *:nth-child(7):last-child)) > .benefit-callout-card {
  grid-column: span 2; /* fills the empty 8th cell of the 4x2 grid */
}

.benefit-cards-container:where(:has(.benefit-callout-card):has(> *:nth-child(8):last-child)) {
  grid-template-columns: repeat(4, 1fr); /* even 4x2, callout same width */
}

/* 5–8 total cards, NO callout card */
.benefit-cards-container:where(:not(:has(.benefit-callout-card)):has(> *:nth-child(5):last-child)) {
  grid-template-columns: repeat(6, 1fr);
}
.benefit-cards-container:where(:not(:has(.benefit-callout-card)):has(> *:nth-child(5):last-child)) > *:nth-child(-n+3) {
  grid-column: span 2; /* top row: 3 cards at 1/3 width */
}
.benefit-cards-container:where(:not(:has(.benefit-callout-card)):has(> *:nth-child(5):last-child)) > *:nth-child(n+4) {
  grid-column: span 3; /* bottom row: 2 cards at 1/2 width */
}

.benefit-cards-container:where(:not(:has(.benefit-callout-card)):has(> *:nth-child(6):last-child)) {
  grid-template-columns: repeat(3, 1fr); /* 3x2 */
}

.benefit-cards-container:where(:not(:has(.benefit-callout-card)):has(> *:nth-child(7):last-child)) {
  grid-template-columns: repeat(12, 1fr);
}
.benefit-cards-container:where(:not(:has(.benefit-callout-card)):has(> *:nth-child(7):last-child)) > *:nth-child(-n+4) {
  grid-column: span 3; /* top row: 4 cards at 1/4 width */
}
.benefit-cards-container:where(:not(:has(.benefit-callout-card)):has(> *:nth-child(7):last-child)) > *:nth-child(n+5) {
  grid-column: span 4; /* bottom row: 3 cards at 1/3 width */
}

.benefit-cards-container:where(:not(:has(.benefit-callout-card)):has(> *:nth-child(8):last-child)) {
  grid-template-columns: repeat(4, 1fr); /* 4x2 */
}

/* Mobile */
@media (max-width: 767px) {
  .benefit-cards-container {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .benefit-cards-container > * {
    grid-column: 1 / -1 !important;
  }

  .benefit-card-image {
    height: 200px;
  }
}
