/* Enhanced Swapping Banner Styles - Show Complete Images */
.swapping-banner {
    position: relative;
    width: 100%;
    height: 150px; /* Increased height to accommodate full images */
    overflow: hidden;
    border-radius: 4px;
    margin: 0px 0;
    background: #DDDDDD; /*#f8f9fa;  Background color for empty spaces */
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px; /* Add padding to prevent images touching edges */
    box-sizing: border-box;
}

.banner-slide.active {
    opacity: 1;
    z-index: 2;
}

.banner-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* Changed from cover to contain */
    display: block;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Banner image link */
.banner-slide a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

/* Text-only buttons like the reference site */
.Tbanner-prev, .Tbanner-next {
    background: rgba(0, 0, 0, 0.4);
    border: none;
    width: 30px;
    height: 60px;
    border-radius: 0;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0.7;
}

.Tbanner-prev {
    border-radius: 0 4px 4px 0;
}

.Tbanner-next {
    border-radius: 4px 0 0 4px;
}

.Tbanner-prev:hover, .Tbanner-next:hover {
    background: rgba(0, 0, 0, 0.7);
    opacity: 1;
}


/* Banner Controls */

.banner-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0px; /* 30px */
    z-index: 10;
    transform: translateY(-50%);
}

.banner-prev, .banner-next {
    background: rgba(200, 200, 200, 0.9);
    border: none;
    width: 20px;	/* button div width */
    height: 40px;	/* button div height */
    /*	border-radius: 50%; */
    font-size: 20px; 	/* Arrow Size */
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15); /* lighter shadow  org ->0 4px 15px rgba(0,0,0,0.3); */
    border: 2px solid rgba(255,255,255,0.5);
	opacity: 0.7; /* Transpareny */
}

.banner-prev:hover, .banner-next:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(0,0,0,0.25);
	opacity: 1; /* Full opacity on hover */
}




.banner-indicators {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 10;
/*    background: rgba(0,0,0,0.3);
    padding: 10px 15px;
    border-radius: 25px;
    margin: 0 auto;
    width: fit-content;
    backdrop-filter: blur(5px); */
}

.banner-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(200, 200, 200, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.banner-indicator.active {
    background: rgba(200, 200, 200, 1);
    transform: scale(1.2);
    border-color: #e74c3c;
/*    box-shadow: 0 2px 8px rgba(0,0,0,0.3); */
}

.banner-indicator:hover {
    background: rgba(200, 200, 200, 1);
/*    transform: scale(1.2);*/
}

/* Banner Caption */
.banner-caption {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    padding: 20px 30px;
    background: rgba(0,0,0,0.7);
    border-radius: 10px;
    z-index: 5;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
    max-width: 80%;
}

.banner-caption h3 {
    margin: 0 0 8px 0;
    font-size: 1.6rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    font-weight: 600;
}

.banner-caption p {
    margin: 0;
    font-size: 1.1rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    line-height: 1.4;
}

/* Progress Bar */
.banner-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.3);
    z-index: 10;
}

.banner-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #e74c3c, #3498db);
    width: 0%;
    transition: width 0.1s linear;
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
    .swapping-banner {
        height: 150px;
    }
}

@media screen and (max-width: 992px) {
    .swapping-banner {
        height: 150px;
    }
    
    .banner-caption {
        bottom: 70px;
        padding: 15px 25px;
    }
    
    .banner-caption h3 {
        font-size: 1.4rem;
    }
    
    .banner-caption p {
        font-size: 1rem;
    }
}

@media screen and (max-width: 768px) {
    .swapping-banner {
        height: 150px;
    }
    
    .banner-prev, .banner-next {
        width: 20px;
        height: 35px;
        font-size: 18px;
    }
    
    .banner-caption {
        bottom: 65px;
        padding: 12px 20px;
        max-width: 90%;
    }
    
    .banner-caption h3 {
        font-size: 1.3rem;
    }
    
    .banner-caption p {
        font-size: 0.95rem;
    }
    
    .banner-indicators {
        bottom: 8px;
        padding: 8px;
    }
}

@media screen and (max-width: 480px) {
    .swapping-banner {
        height: 150px;
    }
    
    .banner-controls {
        padding: 0 15px;
    }
    
    .banner-prev, .banner-next {
        width: 20px;
        height: 35px;
        font-size: 18px;
    }
    
    .banner-indicators {
        bottom: 8px;
        gap: 8px;
    }
    
    .banner-indicator {
        width: 8px;
        height: 8px;
    }
    
    .banner-caption {
        bottom: 60px;
        padding: 10px 15px;
    }
    
    .banner-caption h3 {
        font-size: 1.1rem;
        margin-bottom: 5px;
    }
    
    .banner-caption p {
        font-size: 0.9rem;
    }
    
 /*   .banner-slide {
        padding: 15px;
    }*/
}

/* Special styles for different banner types */
.swapping-banner.no-background {
    background: transparent;
}

.swapping-banner.dark-theme {
    background: #2c3e50;
}

.swapping-banner.light-theme {
    background: #ecf0f1;
}

/* Loading state */
.banner-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 18px;
}

/* Responsive Banner Images */
.banner-image {
    display: none;
}

.banner-image.desktop {
    display: block;
}

.banner-image.mobile {
    display: none;
}

/* Hide mobile images on desktop */
@media screen and (min-width: 769px) {
    .banner-image.desktop {
        display: block;
    }
    .banner-image.mobile {
        display: none;
    }
}

/* Show mobile images on mobile */
@media screen and (max-width: 768px) {
    .banner-image.desktop {
        display: none;
    }
    .banner-image.mobile {
        display: block;
    }
}

/* Swipe feedback styles */
.swapping-banner.swiping {
    cursor: grabbing;
}

.banner-slide.swipe-left {
    transform: translateX(-20px);
    transition: transform 0.3s ease;
}

.banner-slide.swipe-right {
    transform: translateX(20px);
    transition: transform 0.3s ease;
}

/* Disable text selection during swipe */
.swapping-banner {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* Visual feedback for active touch */
.banner-container:active {
    cursor: grabbing;
}



@media screen and (max-width: 1000px) {
    .banner-prev, .banner-next {
        display: none;
    }
}
