/* ══════════════════════════════════════════
   KEY FEATURES MODULE
   Layouts: list (1 col stacked) | grid-2 (2 col)
   No outer border — interior lines only (tic-tac-toe).
   All white. Hover highlight.
   ══════════════════════════════════════════ */

.kf-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;
}

.kf-section .kf-wrap {
  max-width: 1140px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .container,
  .kf-wrap {
    width: 750px;
  }
}
@media (min-width: 992px) {
  .container,
  .kf-wrap {
    width: 970px;
  }
}
@media (min-width: 1200px) {
  .container,
  .kf-wrap {
    width: 1107px;
  }
}

.kf-section .kf-intro {
  font-size: 16px;
  color: #5A6472;
  line-height: 1.65;
  margin-bottom: 2rem;
  margin-top: .5rem;
}

/* ── SHARED ITEM ── */
.kf-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  background: #ffffff;
  transition: background 0.2s;
  cursor: default;
}

.kf-item:hover {
  background: #F5F8FA;
}

/* ── ICON ── */
.kf-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
}

.kf-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

/* ── CONTENT ── */
.kf-content {
  flex: 1 1 auto;
}

.kf-content-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.kf-content-header h3 {
  font-family: "Galano Grotesque Bold", Sans-Serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--navy);
  line-height: 1.3;
  margin: 0 !important;
  flex: 1 1 auto;
  padding-right: 12px;
}

body .kf-content p {
  font-size: 15px;
  color: #5A6472;
  line-height: 1.7;
  margin: 6px 0 0 !important;
}

/* ── BADGE ── */
.kf-badge {
  flex-shrink: 0;
  margin-left: 0;
  font-family: "Galano Grotesque Bold", Sans-Serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.3px;
  color: var(--blue);
  background: rgba(0, 150, 214, 0.08);
  border: 1px solid rgba(0, 150, 214, 0.22);
  padding: 3px 10px;
  border-radius: 3px;
  white-space: nowrap;
}

/* ════════════════════════════════
   LAYOUT: LIST (1 column)
   Interior horizontal lines only
   ════════════════════════════════ */
.kf-container.kf-layout-list {
  display: flex;
  flex-direction: column;
}

.kf-layout-list .kf-item {
  padding: 20px 0;
  border-bottom: 1px solid #D8E4ED;
}

.kf-layout-list .kf-item:last-child {
  border-bottom: none;
}

/* ════════════════════════════════
   LAYOUT: GRID-2 (2 columns)
   Tic-tac-toe: interior lines only, no outer border
   ════════════════════════════════ */
.kf-container.kf-layout-grid-2 {
  display: flex;
  flex-wrap: wrap;
}

.kf-layout-grid-2 .kf-item {
  flex: 0 0 50%;
  padding: 24px 22px;
  margin: 0;
}

/* vertical divider: only the 2nd column gets a left border */
.kf-layout-grid-2 .kf-item:nth-child(2n) {
  border-left: 1px solid #D8E4ED;
}

/* horizontal dividers: every row except the first gets a top border */
.kf-layout-grid-2 .kf-item:not(:nth-child(-n+2)) {
  border-top: 1px solid #D8E4ED;
}

/* ════════════════════════════════
   ODD ITEM OUT — hopscotch pattern
   When total items is odd, the last
   item spans full width and centers
   ════════════════════════════════ */
.kf-layout-grid-2 .kf-item:last-child:nth-child(odd) {
  flex: 0 0 50%;
  margin: 0 auto;
  border-left: none;
  border-top: none; /* remove the half-width border, replaced below */
  justify-content: center;
  position: relative;
}

.kf-layout-grid-2 .kf-item:last-child:nth-child(odd)::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  border-top: 1px solid #D8E4ED;
}

.kf-layout-grid-2 .kf-item:last-child:nth-child(odd) .kf-content {
  flex: 0 1 auto;
  text-align: center;
}

.kf-layout-grid-2 .kf-item:last-child:nth-child(odd) .kf-content-header {
  justify-content: center;
  gap: 10px;
}

.kf-layout-grid-2 .kf-item:last-child:nth-child(odd) .kf-badge {
  margin-left: 0;
}

/* ── REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 767px) {
  .kf-layout-grid-2 .kf-item {
    flex: 0 0 100%;
    border-left: none !important;
  }

  .kf-layout-grid-2 .kf-item:not(:first-child) {
    border-top: 1px solid #D8E4ED;
  }
}