/* Section background */
.expertise-section {
  background: linear-gradient(to bottom right, #f8fbff, #eef5fa);
}

/* Pill heading */
.section-title {
  color: #1E3A8A;
  display: inline-block;
  /* padding: 8px 25px; */
  border-radius: 25px;
  font-weight: bold;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 5px;
  /* background: linear-gradient(to right, #1E3A8A, #600018); */
  border-radius: 3px;
}

/* Subtitle */
.expertise-subtitle {
  color: #444;
  margin-top: 10px;
}

/* Cards */
.expertise-card {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-image: url('https://framerusercontent.com/images/qcC05kzQaReoYquRy66eFysTVLs.png?scale-down-to=512');
  border-radius: 12px;
  padding: 20px;
  margin: 15px 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border: 2px solid #e6eef8;
  text-align: center;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
   height: 250px;
   display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1 1 250px; 

}
/* Equal height cards for screens between 768px and 992px */
@media (min-width: 768px) and (max-width: 992px) {
    .expertise-section .expertise-card {
        height: 380px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
}

/* Gradient corner overlay */
.expertise-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background: linear-gradient(135deg, transparent 75%, #0a6cf1 100%);
  opacity: 0.2;
  pointer-events: none;
}

/* Card content */
.expertise-card h5 {
  font-weight: bold;
  margin-bottom: 10px;
  color: #111;
}

.expertise-card p {
  font-size: 14px;
  color: #555;
}

/* Hover animation */
.expertise-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}