/* Card Grid w/ Image
   Left image + heading + flexible 2-up icon-card grid (1-up on mobile).
   Brand: $darkblue #023769 · breakpoints 991.98 / 767.98 (match theme). */

.card-grid-w-image {
  position: relative;
  margin-top: 50px;
  margin-bottom: 50px;
}

.card-grid-w-image .content-area {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: stretch;
}
/* switch_content => image on the opposite side */
.card-grid-w-image .content-area.revert {
  flex-direction: row-reverse;
}

/* Image column — stretches to the content height on desktop (flex stretch),
   so the absolutely-positioned image fills it. */
.card-grid-w-image .image-area {
  flex: 0 0 calc(40% - 25px);
  max-width: calc(40% - 25px);
  position: relative;
}
.card-grid-w-image .image-area img {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
}

/* Content column */
.card-grid-w-image .content-col {
  flex: 0 0 calc(60% - 25px);
  max-width: calc(60% - 25px);
}
.card-grid-w-image .content-col h2 {
  margin-bottom: 30px;
}

/* Card grid */
.card-grid-w-image .card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 28px;
}
.card-grid-w-image .info-card {
  display: flex;
  align-items: center;
  gap: 16px;
}
.card-grid-w-image .info-card-icon {
  flex: 0 0 auto;
}
.card-grid-w-image .info-card-icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.card-grid-w-image .info-card-body h3 {
  font-size: 18px;
  line-height: 1.3;
  color: #023769;
  margin: 0 0 6px;
}
.card-grid-w-image .info-card-body p {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(2, 55, 105, 0.72);
  margin: 0;
}

/* Tablet — stack image above content (image full width) */
@media (max-width: 991.98px) {
  .card-grid-w-image .image-area {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 30px;
    height: 450px;
  }
  .card-grid-w-image .content-col {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Mobile — single-column cards + shorter image */
@media (max-width: 767.98px) {
  .card-grid-w-image .image-area {
    height: 250px;
  }
  .card-grid-w-image .card-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
