/* Features Section - Updated to match overall style */
.feature-section2 {
  padding: 2rem 0;
  background: #fff;
}

.feature-heading {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  font-weight: 700;
  color: #1c4386;
  position: relative;
}

.feature-heading::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 80px;
  height: 3px;
  background: #1c4386;
  transform: translateX(-50%);
}

.feature-masonry-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 90vw;
  margin: 0 auto;
}
.feature-card-container {
  position: relative;
}

.feature-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  max-width: 300px;
}

.feature-card:hover {
  border-color: #1c4386;
  transform: translateY(-5px);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  border: 2px dashed #1c4386;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon img {
  width: 50px;
  height: 50px;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1c4386;
}

.feature-description {
  color: #555;
  margin: 0.5rem 0 1rem;
  font-size: 0.95rem;
}

.feature-learn-more {
  padding: 0.5rem 1rem;
  background: none;
  border: 1.5px solid #1c4386;
  color: #1c4386;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.feature-learn-more:hover {
  background: #1c4386;
  color: white;
}

/* Overlay Modal */
.feature-overlay-modal {
  display: none;
  position: absolute;
  top: 0;
  width: 100%;
  min-height: 100%;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  z-index: 10;
  padding: 1.5rem;
  animation: fadeIn 0.3s ease forwards;
}

.overlay-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.overlay-header h3 {
  color: #1c4386;
  font-size: 1.25rem;
  font-weight: 700;
}

.overlay-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #1c4386;
  cursor: pointer;
}

.overlay-body {
  margin-top: 1rem;
  color: #444;
  font-size: 0.95rem;
  line-height: 1.6;
}

.overlay-body ul {
  margin-top: 1rem;
  padding-left: 1.2rem;
}

.overlay-body li {
  list-style: disc;
  margin-bottom: 0.5rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.feature-overlay-modal::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.feature-card-container {
  flex: 1 1 300px; /* same as minmax(300px, 1fr) in grid */
  max-width: 1fr; /* this will auto-fit based on parent width */
  display: flex;
  justify-content: center;
}
