:root {
  --kti-brand: #009a17;
  --kti-brand-dark: #007a12;
  --kti-text: #0a1f33; /* Darker blue/black for titles */
  --kti-text-light: #555555;
  --kti-radius: 12px;
}

.kti-solutions-listing {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.kti-solution-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding: 2rem 0; /* Better spacing between rows */
  background: transparent;
}

/* Force grid items to not overflow their 50% width */
.kti-solution-card__content,
.kti-solution-card__image {
  min-width: 0;
}

.kti-solution-card--reverse .kti-solution-card__content {
  order: 2;
}
.kti-solution-card--reverse .kti-solution-card__image {
  order: 1;
}

.kti-solution-card--no-image {
  grid-template-columns: 1fr;
}

.kti-solution-card--hidden {
  display: none;
}

/* --- IMAGE CONTAINER ALIGNMENT FIXES --- */
.kti-solution-card__image {
  border-radius: var(--kti-radius);
  overflow: hidden;
  background: #d8e8d8;
  width: 100%;
  /* Force every container to be the exact same shape (4:3 is standard for these cards) */
  aspect-ratio: 4 / 3;
}

.kti-solution-card__image img {
  width: 100%;
  height: 100%; /* Forces the image to stretch to the container's height */
  object-fit: cover; /* Prevents stretching by cropping intelligently */
  display: block;
  border-radius: var(--kti-radius);
}

.kti-solution-card__content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kti-solution-card__title {
  font-family: helvetica;
  font-weight: 700;
  font-style: bold;
  font-size: 20px;
  line-height: 117%;
  letter-spacing: 0;
  color: #003361;
  margin: 0 0 4px;
}

.kti-solution-card__industries-label {
  font-size: 14px;
  color: var(--kti-text-light);
  margin: 0;
}

.kti-solution-card__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
}

.kti-solution-card__category-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--kti-text);
}

.kti-solution-card__category-dot::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--dot-color, #888);
  flex-shrink: 0;
}

.kti-solution-card__bullets {
  list-style: none;
  margin: 8px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.kti-solution-card__bullets li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--kti-text-light);
  line-height: 1.6;
}

.kti-solution-card__bullets li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--kti-text-light);
}

.kti-solution-card__btn {
  display: inline-block;
  width: fit-content;
  margin-top: 14px;
  padding: 12px 32px;
  background-color: var(--kti-brand);
  color: #ffffff;
  border: none;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.kti-solution-card__btn:hover {
  background-color: var(--kti-brand-dark);
  box-shadow: 0 4px 14px rgba(0, 154, 23, 0.3);
  color: #ffffff;
}

.kti-solution-card__rich-text p {
  font-size: 14px;
  color: var(--kti-text-light);
  line-height: 1.6;
  margin: 0 0 8px 0;
}
.kti-solution-card__rich-text ul {
  margin: 0 0 8px 0;
  padding: 0;
  list-style: none;
}

/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 1024px) {
  .kti-solution-card {
    gap: 40px;
    padding: 2rem 0;
  }
}

@media (max-width: 767px) {
  .kti-solution-card {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .kti-solution-card--reverse .kti-solution-card__content,
  .kti-solution-card--reverse .kti-solution-card__image {
    order: unset;
  }

  /* Change the container shape to a wider format for mobile screens */
  .kti-solution-card__image {
    aspect-ratio: 16 / 9;
  }
}
