.insurance-solutions {
  padding: 80px 20px;
  font-family: "Poppins", sans-serif;
  background: #f9f9f9;
  text-align: center;
}

.insurance-solutions .highlight-text {
  font-size: 14px;
  font-weight: 600;
  color: #ffcc00;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.insurance-solutions .section-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 50px;
}

.solutions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

/* Tablet */
@media (min-width: 768px) {
  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .solutions-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.solution-card {
  background: #fff;
  border: 1px solid #eaeaea;
  padding: 20px;
  text-align: left;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

/* Add pseudo-element for hover background */
.auto {
  position: relative;
  overflow: hidden;
}
.auto::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../images/auto-bg-hovering.webp");
  background-position: center;
  background-size: cover;
  opacity: 0;
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
  z-index: 1;
}

/* Show background on hover */
.auto:hover::before {
  opacity: 1;
  transform: scale(1.05);
}

/* Final Expense */
.final {
  position: relative;
  overflow: hidden;
}
.final::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../images/old-family-final-expense.jpg");
  background-position: center;
  background-size: cover;
  opacity: 0;
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
  z-index: 1;
}

/* Show background on hover */
.final:hover::before {
  opacity: 1;
  transform: scale(1.05);
}

/* Life insurance */
.life {
  position: relative;
  overflow: hidden;
}
.life::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../images/life-insurance-1.webp");
  background-position: center;
  background-size: cover;
  opacity: 0;
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
  z-index: 1;
}

/* Show background on hover */
.life:hover::before {
  opacity: 1;
  transform: scale(1.05);
}

/* Health insurance */
.health {
  position: relative;
  overflow: hidden;
}
.health::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../images/health-insurance-hovering.webp");
  background-position: center;
  background-size: cover;
  opacity: 0;
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
  z-index: 1;
}

/* Show background on hover */
.health:hover::before {
  opacity: 1;
  transform: scale(1.05);
}

/* ACA-Obama Care */
.aca-obama {
  position: relative;
  overflow: hidden;
}
.aca-obama::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../images/ACA-Obama\ care.webp");
  background-position: center;
  background-size: cover;
  opacity: 0;
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
  z-index: 1;
}

/* Show background on hover */
.aca-obama:hover::before {
  opacity: 1;
  transform: scale(1.05);
}

/* Medicare */
.medicare {
  position: relative;
  overflow: hidden;
}
.medicare::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../images/medicare-hovering.jpg");
  background-position: center;
  background-size: cover;
  opacity: 0;
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
  z-index: 1;
}

/* Show background on hover */
.medicare:hover::before {
  opacity: 1;
  transform: scale(1.05);
}

.solution-card img {
  width: 50px;
  height: auto;
  object-fit: cover;
  margin-bottom: 15px;
  border-radius: 5px;
}

.solution-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.solution-card p {
  font-size: 16px;
  color: #555;
  font-family: "Poppins", "Helvetica", "Arial", sans-serif;
  margin-bottom: 15px;
}
