/* Section Background */
.products-modern {
  background: linear-gradient(135deg, #f8f9fa, #eef1f7);
}

/* Heading */
.section-heading {
  font-size: 2.2rem;
  color: #0d6efd;
  position: relative;
  display: inline-block;
}
.section-heading::after {
  content: "";
  display: block;
  width: 70px;
  height: 3px;
  background: #0d6efd;
  margin: 10px auto 0;
  border-radius: 3px;
}

/* Product Cards */
.modern-card {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 5px 5px 15px rgba(0,0,0,0.1),
              -5px -5px 15px rgba(255,255,255,0.7);
  transition: all 0.3s ease-in-out;
  color: inherit;
}
.modern-card:hover {
  transform: translateY(-8px);
  background: linear-gradient(135deg, #0b1531, #f51a1a);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  text-decoration: none;
}

/* Icon Box (images fully visible, no filter) */
.icon-box {
  width: 100%;
  height: 140px; /* a bit taller for flexibility */
  display: flex; 
  justify-content: center; 
  align-items: center;
  background: #f8f9fa;
  border-radius: 12px;
  margin: 0 auto 15px;
  overflow: hidden;
  padding: 10px;
}
.icon-box img {
  max-height: 100%;
  max-width: 100%;
  height: auto;
  width: auto;
  object-fit: contain;
  transition: transform 0.35s ease;
  filter: none !important; /* ensure no brightness/invert applied */
}
.modern-card:hover .icon-box img {
  transform: scale(1.1); /* smooth zoom */
}

/* Text */
.modern-card h5 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  transition: color 0.3s;
}
.modern-card p {
  font-size: 0.95rem;
  color: #666;
  min-height: 70px;
}
.modern-card:hover h5 {
  color: #0d6efd;
}

/* Button */
.btn-modern {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 30px;
  background: linear-gradient(135deg, #f51a1a, #f51a1a);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 10px;
  transition: all 0.3s ease;
}
.modern-card:hover .btn-modern {
  background: linear-gradient(135deg, #6610f2, #0d6efd);
}
.py-5 {
    padding-top: 1rem !important;
    padding-bottom: 2rem !important;
}