/* Bank Marquee Section Styling */
.bank-marquee-section {
    padding: 30px 0;
    background: #ffffff; /* Neutral clean white */
    border-top: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.bank-marquee-title {
    text-align: center;
    margin-bottom: 20px;
}

.bank-marquee-title h3 {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0;
}

.bank-marquee-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    padding: 10px 0;
}

/* Mask for smooth fade out effect on left and right sides */
.bank-marquee-container::before,
.bank-marquee-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 120px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.bank-marquee-container::before {
    left: 0;
    background: linear-gradient(to right, #ffffff, rgba(255, 255, 255, 0));
}

.bank-marquee-container::after {
    right: 0;
    background: linear-gradient(to left, #ffffff, rgba(255, 255, 255, 0));
}

/* The rolling track */
.bank-marquee-track {
    display: flex;
    align-items: center;
    width: max-content;
    gap: 60px; /* Space between logo items */
    animation: marquee-scroll 35s linear infinite;
}

.bank-logo-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    width: 200px;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), filter 0.3s ease;
}

.bank-logo-item img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(100%) opacity(60%);
    transition: filter 0.3s ease;
}

.bank-logo-item:hover img {
    filter: grayscale(0%) opacity(100%);
}

.bank-logo-item:hover {
    transform: scale(1.08);
}

/* Pause scroll animation on hover to allow inspection/clicking */
.bank-marquee-container:hover .bank-marquee-track {
    animation-play-state: paused;
}

/* Keyframe for endless linear horizontal scrolling */
@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%); /* Moves exactly by half of track width */
    }
}

/* Responsive adjustment */
@media (max-width: 768px) {
    .bank-logo-item {
        height: 35px;
        width: 120px;
    }
    .bank-marquee-track {
        gap: 40px;
    }
    .bank-marquee-container::before,
    .bank-marquee-container::after {
        width: 60px;
    }
    .bank-marquee-title h3 {
        font-size: 22px;
    }
}
