/* ═══════════════════════════════════════════════════════
   FANCY LIST MODULE — layout variants + card styles
   Layouts: list (default) | grid-2 | grid-3 | grid-4
   ═══════════════════════════════════════════════════════ */

/* ── SECTION WRAPPER ── */
.fl-section {
  --navy: #09476E;
  --blue: #0096D6;
  --gold: #C5960C;
  --lgray: #c5c5c5;
  font-family: "Galano Grotesque", Sans-Serif;
}

.imgt-module--outer-section {
  padding: 30px 0 45px;
}

.imgt-module--outer-section a,
.imgt-module--outer-section a > span {
  font-family: "Galano Grotesque Bold", Sans-Serif;
  color: #0096d6 !important;
}

.fl-section .fancy-list-content-wrap {
  max-width: 1083px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .container,
  .fancy-list-content-wrap {
    width: 750px;
  }
}
@media (min-width: 992px) {
  .container,
  .fancy-list-content-wrap {
    width: 970px;
  }
}
@media (min-width: 1200px) {
  .container,
  .fancy-list-content-wrap {
    width: 1107px;
  }
}

/* ── SHARED CARD BASE ── */
.fancy-list-row {
  background: #fff;
  border: 1px solid #D8E4ED;
  padding: 34px 26px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}

.fancy-list-row:hover {
  box-shadow: 0 6px 24px rgba(9, 71, 110, 0.10);
  transform: translateY(-2px);
}

/* ── HEADER: TITLE + ICON ── */
.fancy-list-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  justify-content: flex-start;
  margin-bottom: 20px;
}

.fancy-list-header h3 {
  font-family: "Galano Grotesque Bold", Sans-Serif;
  font-size: 20px;
  color: var(--navy);
  line-height: 1.3;
  margin: 0 !important;
}

/* ── NUMBER / ICON ── */
.fancy-list-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fl-icon-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

/* ── BODY ── */
.fancy-list-body {
  flex: 1 1 auto;
}

body .fancy-list-body p {
  font-size: 16px;
  line-height: 1.4;
  margin: 0 0 12px !important;
}

/* Space between stacked blocks inside the body: paragraph, checklist, link */
.fancy-list-body > * + * {
  margin-top: 16px;
}

/* ── CHECKMARK LIST (typed as a plain <ul><li> in the rich-text body) ── */
.fancy-list-body ul {
  list-style: none;
  padding: 0;
  margin-bottom: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fancy-list-body ul li {
  position: relative;
  font-size: 16px;
  line-height: 1.4;
  list-style-type: none;
}

.fancy-list-body ul li::before {
  content: "";
  display: block;
  position: absolute;
  left:-18px;
  top: 6px;
  width: 14px;
  height: 14px;
  background: url("/Portals/4/Images/icons/checkmark-outline-db.png") no-repeat center / contain;
}

.fancy-list-body a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Galano Grotesque Bold", Sans-Serif;
  color: var(--blue);
  font-size: 16px;
  text-decoration: none;
}

.fancy-list-body a.fancy-list-btn::after {
  content: "\2192";
  transition: transform 0.2s ease;
}

.fancy-list-body a:hover {
  text-decoration: underline;
}

.fancy-list-body a.fancy-list-btn:hover::after {
  transform: translateX(4px);
}

/* ── BUTTON (structured ItemButtonText / ItemButtonLink field) ──
   Pinned to the bottom of the card via margin-top: auto, so it
   lines up across cards in a row regardless of description length. */
.fancy-list-btn {
  display: inline-flex;
  align-items: center;
  align-self: flex-end;
  gap: 6px;
  margin-top: 18px;
  padding: 4px 24px 8px;
  font-family: "Galano Grotesque Bold", Sans-Serif;
  color: var(--blue);
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.fancy-list-btn::after {
  content: "\2192";
  transition: transform 0.2s ease;
}

.fancy-list-btn:hover {
  border: 2px solid var(--blue);
text-decoration: none;
}

.fancy-list-btn:hover::after {
  text-decoration: none;
  transform: translateX(4px);
}

/* ════════════════════════════════
   LAYOUT: LIST (1 column)
   Rows stacked, bordered between
   ════════════════════════════════ */
.fancy-list-container.fl-layout-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.fl-layout-list .fancy-list-row {
  border-radius: 0 !important;
  border-left: none;
  border-right: none;
  border-top: none;
  border-bottom: 1px solid #D8E4ED;
  box-shadow: none;
  padding: 48px 36px;
  background: transparent;
}

.fl-layout-list .fancy-list-row:first-child {
  border-top: 1px solid #D8E4ED;
}

.fl-layout-list .fancy-list-row:hover {
  box-shadow: none;
  transform: none;
  background: #F5F8FA;
}

/* ════════════════════════════════
   LAYOUT: GRID-2 (2 columns)
   ════════════════════════════════ */
.fancy-list-container.fl-layout-grid-2 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.fl-layout-grid-2 .fancy-list-row {
  flex: 0 0 calc(50% - 8px);
}

/* ════════════════════════════════
   LAYOUT: GRID-3 (3 columns)
   ════════════════════════════════ */
.fancy-list-container.fl-layout-grid-3 {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.fl-layout-grid-3 .fancy-list-row {
  flex: 0 0 calc(33.333% - 11px);
}

/* ════════════════════════════════
   LAYOUT: GRID-4 (4 columns)
   ════════════════════════════════ */
.fancy-list-container.fl-layout-grid-4 {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.fl-layout-grid-4 .fancy-list-row {
  flex: 0 0 calc(25% - 12px);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .fl-layout-grid-3 .fancy-list-row,
  .fl-layout-grid-4 .fancy-list-row {
    flex: 0 0 calc(50% - 8px);
  }
}

@media (max-width: 600px) {
  .fl-layout-grid-2 .fancy-list-row,
  .fl-layout-grid-3 .fancy-list-row,
  .fl-layout-grid-4 .fancy-list-row {
    flex: 0 0 100%;
  }
}