.cta-section {
  background-color: #fff;
  color: #000;
  padding: 60px 20px;
  text-align: center;
  font-family: 'Poppins', sans-serif;
}

.cta-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.cta-container h2 {
   font-size: clamp(1.5rem, 2.5vw + 1rem, 2rem);
  margin-bottom: 15px;
  position: relative;
  display: block;            /* takes full width so text-align works */
  text-align: center;        /* centers the heading text */
}

.cta-container h2::after {
  content: "";
  display: block;
  width: 100px;              /* fixed underline width */
  height: 6px;
  background-color: var(--deep-blue);
  border-radius: 2px;
  margin: 8px auto 0;        /* auto margins center the underline */
}



.cta-container p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.cta-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  font-size: 16px;
  font-weight: 600;
  color: #1e3a8a;
  text-decoration: none;
  border: 2px solid #1e3a8a;
  border-radius: 9999px;
  overflow: hidden;
  cursor: pointer;
  background-color: white;
  transition: color 0.4s ease;
  box-shadow: 0 4px 10px rgba(30, 58, 138, 0.12);
  z-index: 0;
}

.cta-button i {
  color: #1e3a8a;
  font-size: 18px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  z-index: 1;
}

/* The expanding background fill */
.cta-button::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: #1e3a8a;
  border-radius: inherit;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

/* On hover, show the blue fill and make text/icon white */
.cta-button:hover::before {
  transform: scaleX(1);
}

.cta-button:hover {
  color: white;
}

.cta-button:hover i {
  color: white;
  transform: scale(1.15);
}

.btn-primary,
.btn-outline {
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-primary {
  background-color: #1e3a8a;
  color: #fff;
}

.btn-primary:hover {
  background-color: #152e70;
}

.btn-outline {
  border: 2px solid #1e3a8a;
  color: #1e3a8a;
  background-color: transparent;
}

.btn-outline:hover {
  background-color: #1e3a8a;
  color: #fff;
}
