.bank-account-wrapper {
    padding: 80px 0;
    background-color: #FAFAFA;
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.bank-account-header {
    text-align: center;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.bank-account-title {
    font-size: 3.5rem;
    line-height: 1.2;
    font-weight: 600;
}

.bank-highlight {
    color: #00A0FA;
    display: inline-block;
    position: relative;
}

.bank-highlight::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #00A0FA;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.bank-account-title:hover .bank-highlight::after {
    transform: scaleX(1);
    transform-origin: left;
}

.bank-account-content {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.bank-account-text {
    flex: 1;
    opacity: 0;
    transform: translateX(-20px);
    animation: fadeInLeft 0.8s ease forwards 0.2s;
}

.bank-account-subtitle {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 24px;
}

.bank-account-desc {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 500px;
}

.bank-account-types {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.bank-type-link {
    color: #000;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.bank-type-link:hover {
    color: #00A0FA;
    transform: translateX(10px);
}

.bank-account-cta {
    display: flex;
    gap: 16px;
}

.bank-account-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.bank-btn-primary {
    background-color: #00A0FA;
    color: white;
}

.bank-btn-primary:hover {
    background-color: #0090e0;
    transform: translateY(-3px);
    box-shadow: 0 4px 6px rgba(0, 160, 250, 0.2);
}

.bank-btn-outline {
    border: 1px solid #00A0FA;
    color: #00A0FA;
}

.bank-btn-outline:hover {
    background-color: #00A0FA;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 6px rgba(0, 160, 250, 0.2);
}



.bank-account-image:hover .bank-image {
    transform: scale(1.05);
}

.bank-account-image {
    flex: 1;
    opacity: 0;
    transform: translateX(20px);
    animation: fadeInRight 0.8s ease forwards 0.4s;
    overflow: hidden;
    width: 100%;
    max-width: 600px; /* Adjust this value based on your largest image width */
    margin: 0 auto;
  }
  
  .image-container {
    position: relative;
    width: 100%;
    padding-bottom: 66.67%; /* Maintain aspect ratio (400/600 = 0.6667) */
  }
  
  .bank-account-image:hover .bank-image {
  transform: scale(1.05);
}

.bank-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #fafafa;
  opacity: 0;
  animation: orbitFade 9s infinite ease-in-out;
}

/* stagger timings */
.bank-image:nth-child(1) {
  animation-delay: 0s;
}
.bank-image:nth-child(2) {
  animation-delay: 3s;
}
.bank-image:nth-child(3) {
  animation-delay: 6s;
}

@keyframes orbitFade {
  0% {
    opacity: 0;
    transform: translateX(100%) translateY(0) rotate(20deg) scale(0.9);
  }
  10% {
    opacity: 1;
    transform: translateX(0) translateY(0) rotate(0deg) scale(1);
  }
  30% {
    opacity: 1;
    transform: translateX(0) translateY(0) rotate(0deg) scale(1);
  }
  40% {
    opacity: 0;
    transform: translateX(-100%) translateY(0) rotate(-20deg) scale(0.9);
  }
  100% {
    opacity: 0;
    transform: translateX(-100%) translateY(0) rotate(-20deg) scale(0.9);
  }
}

@keyframes slideCrossFade {
  0% {
    opacity: 0;
    transform: translateX(100%); /* start off to the right */
  }
  10% {
    opacity: 1;
    transform: translateX(0); /* fully visible in place */
  }
  30% {
    opacity: 1;
    transform: translateX(0); /* stay in place */
  }
  40% {
    opacity: 0;
    transform: translateX(-100%); /* slide out to the left */
  }
  100% {
    opacity: 0;
    transform: translateX(-100%);
  }
}

@keyframes crossFade {
  0% { opacity: 0; }
  10% { opacity: 1; }   /* fade in */
  30% { opacity: 1; }   /* stay visible */
  40% { opacity: 0; }   /* fade out */
  100% { opacity: 0; }  /* stay hidden */
}


@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInOut {
    0%,
    33%,
    100% {
      opacity: 0;
    }
    3%,
    30% {
      opacity: 1;
    }
  }


  
@media (prefers-reduced-motion: reduce) {
    .bank-account-header,
    .bank-account-text,
    .bank-account-image,
    .bank-type-link,
    .bank-account-btn,
    .bank-image {
      animation: none;
      transform: none;
      transition: none;
    }
  
    .bank-image {
      opacity: 1;
    }
  
    .bank-image:not(:first-child) {
      display: none;
    }
  }

@media (max-width: 992px) {
    .bank-account-title {
        font-size: 3rem;
    }

    .bank-account-content {
        flex-direction: column;
    }
    
    .bank-account-text {
        text-align: center;
    }
    
    .bank-account-desc {
        max-width: 100%;
    }
    
    .bank-account-types {
        align-items: center;
    }
    
    .bank-account-cta {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .bank-account-title {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    .bank-account-subtitle {
        font-size: 1.5rem;
    }
    
    .bank-account-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .bank-account-btn {
        width: 100%;
        justify-content: center;
    }
    .bank-account-desc {
        text-align: center;
    }
    
}

@media (prefers-reduced-motion: reduce) {
    .bank-account-header,
    .bank-account-text,
    .bank-account-image,
    .bank-type-link,
    .bank-account-btn,
    .bank-image {
        animation: none;
        transform: none;
        transition: none;
    }
}