/* === Fintech Animated Background Styles (supports 5 effects) === */
.fintech-bg-anim {
  position: relative;
  overflow: hidden;
  display: flex; /* Use flexbox to center content vertically */
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically */
  min-height: 420px; /* Match your hero section height */
      background: #1e40af;
}
/* use inline CSS vars if present */
.fintech-animated-bg[data-anim="image"] {
  background:
    var(--hero-bg) no-repeat center/cover,
    var(--hero-bg-after) no-repeat center/cover;
}

.fintech-animated-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
}

.fintech-bg-anim > *:not(.fintech-animated-bg) {
  position: relative;
  z-index: 2;
}

/* --- Centered Archive/Banner Text Animations --- */
.archive-title,
.breadcrumbs,
.page-short-description {
  opacity: 0;
  transform: translateY(15px);
  animation: fadeInUp 0.8s ease-out forwards;
  text-align: center; /* Ensure horizontal centering */
  width: 100%; /* Full width for consistency */
  margin: 0 auto; /* Center within container */
  max-width: 660px; /* Match your lead max-width for consistency */
}

.breadcrumbs { animation-delay: 0.4s; }
.page-short-description { animation-delay: 0.6s; }

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* --- Card Fade-In Animation --- */
.country-summary {
  opacity: 1; /* fallback for non-JS users */
  transform: none;
  transition: transform 0.3s, opacity 0.3s;
}


/* --- Optional: Fancier Card Shadow/Border (adjust as you like) --- */
.country-summary,
.card.fintech-country-card {
  border-radius: 1rem;
  box-shadow: 0 4px 28px 0 rgba(24,40,80,0.08);
  background: #fff;
  transition: box-shadow 0.18s, transform 0.15s;
}

.card.fintech-country-card:hover {
  box-shadow: 0 8px 36px 0 rgba(50,180,250,0.14);
  transform: translateY(-4px) scale(1.02);
}

/* --- Accessibility: Reduce Motion Support --- */
@media (prefers-reduced-motion: reduce) {
  .country-summary, .js .country-summary, .js .country-summary.visible {
    transition: none !important;
    animation: none !important;
  }
}

/* --- Responsive container for fintech-bg-anim (for safe padding) --- */
.fintech-bg-anim .container,
.fintech-bg-anim .elementor-container {
  position: relative;
  z-index: 2;
  display: flex; /* Use flexbox for centering */
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically */
  flex-direction: column; /* Stack elements vertically */
  text-align: center; /* Ensure text is centered */
}

/* --- Ensure centered content fits well --- */
.fintech-bg-anim .container .archive-title,
.fintech-bg-anim .container .breadcrumbs,
.fintech-bg-anim .container .page-short-description {
  margin-bottom: 1rem; /* Add spacing between elements */
}


.fintech-animated-bg.bg-t-1,
.fintech-animated-bg.bg-t-2,
.fintech-animated-bg.bg-t-3,
.fintech-animated-bg.bg-t-4,
.fintech-animated-bg.bg-t-5,
.fintech-animated-bg.bg-t-6,
.fintech-animated-bg.bg-t-7,
.fintech-animated-bg.bg-t-8,
.fintech-animated-bg.bg-t-9,
.fintech-animated-bg.bg-t-10 {
  background-size: cover; /* Ensure the image covers the area */
  background-position: center; /* Center the image */
  background-repeat: no-repeat; /* Prevent tiling */
  animation: bgFadeIn 1s ease-out forwards; /* Fade-in effect */
  transition: opacity 0.3s ease; /* Smooth transition for hover */
}

.fintech-animated-bg.bg-t-1:hover,
.fintech-animated-bg.bg-t-2:hover,
.fintech-animated-bg.bg-t-3:hover,
.fintech-animated-bg.bg-t-4:hover,
.fintech-animated-bg.bg-t-5:hover,
.fintech-animated-bg.bg-t-6:hover,
.fintech-animated-bg.bg-t-7:hover,
.fintech-animated-bg.bg-t-8:hover,
.fintech-animated-bg.bg-t-9:hover,
.fintech-animated-bg.bg-t-10:hover {
  opacity: 0.9; /* Slight fade on hover */
  transform: scale(1.05); /* Slight zoom effect */
}

@keyframes bgFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --- You can extend for .fintech-animated-bg[data-anim="waves"], etc. --- */
/* No extra CSS is strictly required, effects handled in JS/canvas */

/* --- Feel free to add extra styles below for bars/particles if desired --- */