/* === HOMEPAGE FEATURE TILES SECTION === */
.homepage-feature-tiles {
  width: 100%;
  background-color: #f8f9fa;
  padding: 0; /* Remove default spacing to eliminate vertical gaps */
}

/* === ROW: Two-column layout (image + text) === */
.tile-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch; /* Allow full height alignment */
  max-width: 100vw;
}

/* === ROW (REVERSE): Flip order === */
.tile-row.reverse {
  direction: rtl;
}
.tile-row.reverse .tile-col {
  direction: ltr;
}

/* === SHARED COLUMN STYLES === */
.tile-col {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0; /* We'll control padding in individual sub-classes */
}

/* === IMAGE COLUMN === */
.tile-col.image-side {
  padding: 0;
}
.tile-col.image-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 3 / 2;
  border-radius: 0;
}

/* === TEXT COLUMN === */
.tile-col.text-side {
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start; /* Align text to left edge */
  max-width: 640px; /* Limit for better readability */
  margin: 0 auto; /* Horizontally center if needed */
}

/* === HEADLINE TEXT === */
.tile-col.text-side h3 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #0D1E32;
  line-height: 1.4;
}

/* === CTA LINK === */
.tile-col.text-side .tile-link {
  color: #F67323;
  font-weight: 600;
  text-decoration: none;
  margin-top: 0.5rem;
}

/* === RESPONSIVE STACKING FOR MOBILE === */
@media (max-width: 768px) {
  .tile-row {
    grid-template-columns: 1fr;
  }

  .tile-col {
    padding: 2rem;
    align-items: flex-start;
  }

  .tile-col.image-side img {
    aspect-ratio: auto;
  }

  .tile-col.text-side {
    max-width: 100%;
  }
}
