#latest-results {
    position: relative;
    margin-bottom: 0;
}

#bank {
    position: relative;
    clear: both;
    margin-top: 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 228, 0, 0.3);
}

#bank.section {
    margin-bottom: 0;
}

#bank .owl-carousel.bankscroll {
    margin-top: 0 !important;
}

#bank .custom-navigation,
#bank .bankscroll {
    position: relative;
    z-index: 1;
}

.blog-posts > #bank.home-bank-inline {
    width: 100%;
    margin: 10px 0 0;
    padding-top: 12px;
}

.blog-posts > #bank.home-bank-inline > .container {
    width: 100%;
    padding-right: 0;
    padding-left: 0;
}

.blog-posts > #bank.home-bank-inline > .container > .row {
    margin-right: 0;
    margin-left: 0;
}

.blog-posts > #bank.home-bank-inline .col-md-3 {
    display: none;
}

.blog-posts > #bank.home-bank-inline .col-md-9 {
    width: 100%;
    padding-right: 0;
    padding-left: 0;
}

@media (max-width: 767px) {
    #latest-results {
        margin-bottom: 0;
    }

    #bank {
        padding-top: 14px;
    }
}

/* CSS-only fallback when owl.carousel.js is not loaded */
.owl-carousel.bankscroll:not(.owl-loaded) {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    align-items: center;
}

.owl-carousel.bankscroll:not(.owl-loaded) .item.bank {
    width: auto !important;
    height: auto !important;
    min-height: 80px;
    background-color: #151819 !important;
    border-radius: 6px;
    padding: 10px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 !important;
    overflow: hidden;
    border: 1px solid rgba(255, 228, 0, 0.2);
}

.owl-carousel.bankscroll:not(.owl-loaded) .item.bank img {
    max-width: 78px;
    height: auto;
    display: block;
    object-fit: contain;
}

@media (max-width: 991px) {
    .owl-carousel.bankscroll:not(.owl-loaded) {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 767px) {
    .owl-carousel.bankscroll:not(.owl-loaded) {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    .owl-carousel.bankscroll:not(.owl-loaded) .item.bank {
        min-height: 65px;
        padding: 8px !important;
    }
    .owl-carousel.bankscroll:not(.owl-loaded) .item.bank img {
        max-width: 60px;
    }
}

/* Hide navigation when carousel not loaded */
.owl-carousel.bankscroll:not(.owl-loaded) ~ .custom-navigation,
#bank .col-md-3 .custom-navigation {
    display: none;
}
#bank .col-md-9 {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
}
#bank .col-md-3 {
    display: none;
}

/* Mobile bank-status simple list layout */
.bank-status {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    padding: 10px;
    align-items: center;
    justify-items: center;
}

.bank-status .bank {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    padding: 4px;
}

.bank-status .bank img:first-child {
    width: 12px !important;
    height: 12px !important;
    min-height: 12px;
    border-radius: 50%;
    display: block !important;
}

.bank-status .bank img:last-child {
    max-width: 60px;
    height: auto !important;
    min-height: 20px;
    display: block !important;
}

@media (max-width: 767px) {
    .bank-status {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        padding: 8px;
    }
    .bank-status .bank img:last-child {
        max-width: 50px;
    }
}

@media (max-width: 480px) {
    .bank-status {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
    }
    .bank-status .bank img:last-child {
        max-width: 45px;
    }
}
