.banner-right-sticky {
    max-width: 160px;
    position: fixed;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
}

.banner-left-sticky {
    max-width: 160px;
    position: fixed;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
}

.banner-item .card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.banner-item .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.banner-item a:hover .card-img-top {
    opacity: 0.9;
}

/* Loading animation */
@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.banner-section .spinner-border {
    animation: pulse 1.5s ease-in-out infinite;
}

.banner-popup-overlay {
    top: 0;
    justify-content: center;
}

.banner-popup-content {
    animation: popupSlideIn 0.3s ease-out;
    max-width: 80%;
    max-height: 80%;
}

@keyframes popupSlideIn {
    from {
        transform: scale(0.8) translateY(-20px);
        opacity: 0;
    }

    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.banner-popup-overlay .position-absolute {
    transition: all 0.2s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .banner-popup-content {
        max-width: 90% !important;
        margin: 1rem;
    }
}

@media (max-width: 576px) {
    .banner-popup-content .p-4 {
        padding: 1rem !important;
    }

    .banner-popup-content h3 {
        font-size: 1.25rem;
    }

    .banner-popup-content {
        max-width: 92% !important;
        max-height: 88% !important;
    }
}

/* Ensure popup content is scrollable if too tall */
.banner-popup-content {
    overflow: auto;
}
