/* ============================================
   Premium CTA Card 8 Columns
   ============================================ */

.cta-card-8-columns-section {
  position: relative;
  width: 100%;
  margin-bottom: 2rem;
  overflow: hidden;
  /* ensures no child elements break the rounded corners */
}

/* ----- Background Mask with Animated Gradient Overlay ----- */
.cta-card-8-columns-section__bg-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 426px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.3s ease;
}

/* Subtle animated gradient overlay for depth */
.cta-card-8-columns-section__bg-mask::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0.1) 100%);
  pointer-events: none;
  animation: bgShift 8s infinite alternate ease-in-out;
}

@keyframes bgShift {
  0% {
    opacity: 0.4;
    transform: scale(1);
  }

  100% {
    opacity: 0.7;
    transform: scale(1.02);
  }
}

/* ----- Main Content Card with Floating Effect ----- */
.cta-card-8-columns-section__contents-box {
  position: relative;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cta-card-8-columns-section__contents-box:hover {
  transform: translateY(-8px);
}

/* Card mask – now a soft, blurred shadow layer */
.cta-card-8-columns-section__contents-box-mask {
  position: absolute;
  inset: 16px;
  /* increased from 12px for a more prominent shadow */
  bottom: -16px;
  /* deeper drop */
  border-radius: 40px;
  /* slightly larger radius */
  background: rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(8px);
  /* glass‑morphism effect */
  -webkit-backdrop-filter: blur(8px);
  opacity: 0.7;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1;
}

.cta-card-8-columns-section__contents-box:hover .cta-card-8-columns-section__contents-box-mask {
  opacity: 0.9;
  transform: scale(0.98);
}

/* Inner white card – now with premium glass styling */
.bg-white {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), inset 0 1px 2px rgba(255, 255, 255, 0.8);
  border-radius: 48px !important;
  /* more rounded */
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.cta-card-8-columns-section__contents-box:hover .bg-white {
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.3), inset 0 1px 3px rgba(255, 255, 255, 0.9);
}

/* ----- Pre‑title Badge (Premium Badge) ----- */
.d-inline-flex-center.py-8.px-16.rounded-8.border-primary.bg-primary-20 {
  background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 80%, white)) !important;
  border: none !important;
  box-shadow: 0 8px 20px -8px rgba(var(--primary-rgb), 0.4);
  color: white !important;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.85rem;
  padding: 0.5rem 1.2rem;
  position: relative;
  overflow: hidden;
}

/* Shiny reflection effect on badge */
.d-inline-flex-center.py-8.px-16.rounded-8.border-primary.bg-primary-20::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 200%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: rotate(25deg);
  animation: shine 6s infinite;
}

@keyframes shine {
  0% {
    left: -60%;
  }

  20% {
    left: 100%;
  }

  100% {
    left: 100%;
  }
}

/* ----- Title Styling ----- */
h2.font-32.text-dark {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  background: linear-gradient(145deg, #1a1a1a, #333);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

/* Subtle underline effect on title */
h2.font-32.text-dark::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  border-radius: 4px;
  opacity: 0.7;
}

/* ----- Description ----- */
p.mt-16.font-16.text-gray-500 {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #4b5563 !important;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ----- Image Styling ----- */
.d-flex-center.w-100 img {
  border-radius: 24px;
  box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.d-flex-center.w-100 img:hover {
  transform: scale(1.02);
  box-shadow: 0 30px 40px -12px rgba(0, 0, 0, 0.2);
}

/* ----- Buttons Section ----- */
.d-flex.flex-column.flex-lg-row.align-items-lg-center.gap-16 {
  gap: 1.5rem !important;
}

/* Primary Button – modern 3D lift effect */
.btn.btn-primary {
  background: linear-gradient(145deg, var(--primary), color-mix(in srgb, var(--primary) 80%, black));
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 60px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: none;
  box-shadow: 0 10px 20px -8px rgba(var(--primary-rgb), 0.5);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}



.btn.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 30px -10px rgba(var(--primary-rgb), 0.7);
}
/* 

/* Secondary Button – elegant outline with flip effect */
.btn-flip-effect {
  background: transparent;
  border: 2px solid rgba(0, 0, 0, 0.1);
  padding: 1rem 2.5rem;
  border-radius: 60px;
  font-weight: 600;
  color: #1f2937;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-flip-effect::before {
  content: attr(data-text) !important;
  position: absolute;
  top: 0;
  left: 0 !important;
  width: 100%;
  height: 100%;
  background: var(--primary) !important;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 60px;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-flip-effect:hover {
  border-color: var(--primary);
}



/* Icons inside buttons */
.btn .icons {
  transition: transform 0.3s ease;
}

.btn:hover .icons {
  transform: translateX(4px) scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .cta-card-8-columns-section__bg-mask {
    height: 380px;
  }

  .bg-white {
    padding: 2rem 1.5rem !important;
  }

  h2.font-32.text-dark {
    font-size: 1.8rem;
  }

  .btn,
  .btn-flip-effect {
    padding: 0.8rem 2rem;
  }
}