/* Banner Carousel Styles - Bootstrap 4 Compatible */

.banner-carousel {
    position: relative;
    overflow: hidden;
    height: 600px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.banner-carousel .slider_bg_box {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.banner-carousel .slider_bg_box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.banner-carousel .carousel-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    color: white;
}

.banner-carousel .carousel-item {
    height: 600px;
    background: rgba(0, 0, 0, 0.3);
}

.banner-carousel .carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    max-width: 800px;
    padding: 0 20px;
}

.banner-carousel .carousel-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: slideInDown 1s ease-out;
}

.banner-carousel .carousel-title span {
    color: #f7444e;
    font-weight: 800;
}

.banner-carousel .carousel-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: slideInUp 1s ease-out 0.3s both;
}

.banner-carousel .carousel-description {
    font-size: 1rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: slideInUp 1s ease-out 0.6s both;
}

.banner-carousel .carousel-btn {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(45deg, #f7444e, #e63946);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(247, 68, 78, 0.3);
    animation: slideInUp 1s ease-out 0.9s both;
    margin: 0 10px;
}

.banner-carousel .carousel-btn:hover {
    background: linear-gradient(45deg, #e63946, #d62b3a);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 68, 78, 0.4);
    color: white;
    text-decoration: none;
}

.banner-carousel .carousel-btn.secondary {
    background: linear-gradient(45deg, transparent, transparent);
    border: 2px solid white;
}

.banner-carousel .carousel-btn.secondary:hover {
    background: white;
    color: #333;
}

/* Carousel Controls - Bootstrap 4 Compatible */
.banner-carousel .carousel-control-prev,
.banner-carousel .carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-carousel .carousel-control-prev:hover,
.banner-carousel .carousel-control-next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
    text-decoration: none;
}

.banner-carousel .carousel-control-prev {
    left: 30px;
}

.banner-carousel .carousel-control-next {
    right: 30px;
}

.banner-carousel .carousel-control-prev-icon,
.banner-carousel .carousel-control-next-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-carousel .carousel-control-prev-icon i,
.banner-carousel .carousel-control-next-icon i {
    color: white;
    font-size: 18px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Carousel Indicators - Bootstrap 4 Compatible */
.banner-carousel .carousel-indicators {
    bottom: 30px;
    margin: 0;
    gap: 10px;
    z-index: 10;
}

.banner-carousel .carousel-indicators li {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    transition: all 0.3s ease;
    margin: 0 5px;
}

.banner-carousel .carousel-indicators li.active {
    width: 30px;
    border-radius: 6px;
    background: #f7444e;
}

/* Override Bootstrap 4 default carousel styles */
.banner-carousel .carousel {
    position: relative;
}

.banner-carousel .carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.banner-carousel .carousel-item {
    position: relative;
    display: none;
    float: left;
    width: 100%;
    margin-right: -100%;
    backface-visibility: hidden;
    transition: transform 0.6s ease-in-out;
}

.banner-carousel .carousel-item.active,
.banner-carousel .carousel-item-next,
.banner-carousel .carousel-item-prev {
    display: block;
}

.banner-carousel .carousel-item-next:not(.carousel-item-left),
.banner-carousel .active.carousel-item-right {
    transform: translateX(100%);
}

.banner-carousel .carousel-item-prev:not(.carousel-item-right),
.banner-carousel .active.carousel-item-left {
    transform: translateX(-100%);
}

/* Animations */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .banner-carousel {
        height: 500px;
    }
    
    .banner-carousel .carousel-item {
        height: 500px;
    }
    
    .banner-carousel .carousel-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .banner-carousel {
        height: 400px;
    }
    
    .banner-carousel .carousel-item {
        height: 400px;
    }
    
    .banner-carousel .carousel-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .banner-carousel .carousel-subtitle {
        font-size: 1.1rem;
    }
    
    .banner-carousel .carousel-description {
        font-size: 0.9rem;
    }
    
    .banner-carousel .carousel-btn {
        padding: 12px 30px;
        font-size: 1rem;
        margin: 5px;
    }
    
    .banner-carousel .carousel-control-prev,
    .banner-carousel .carousel-control-next {
        width: 50px;
        height: 50px;
    }
    
    .banner-carousel .carousel-control-prev {
        left: 15px;
    }
    
    .banner-carousel .carousel-control-next {
        right: 15px;
    }
}

@media (max-width: 576px) {
    .banner-carousel {
        height: 350px;
    }
    
    .banner-carousel .carousel-item {
        height: 350px;
    }
    
    .banner-carousel .carousel-title {
        font-size: 2rem;
    }
    
    .banner-carousel .carousel-subtitle {
        font-size: 1rem;
    }
    
    .banner-carousel .carousel-description {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }
    
    .banner-carousel .carousel-btn {
        padding: 10px 25px;
        font-size: 0.9rem;
        margin: 3px;
    }
    
    .banner-carousel .carousel-indicators {
        bottom: 20px;
    }
    
    .banner-carousel .carousel-control-prev,
    .banner-carousel .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .banner-carousel .carousel-control-prev-icon i,
    .banner-carousel .carousel-control-next-icon i {
        font-size: 14px;
    }
}

/* Loading Animation */
.banner-carousel.loading {
    position: relative;
}

.banner-carousel.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #f7444e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Ensure controls are visible on all backgrounds */
.banner-carousel .carousel-control-prev,
.banner-carousel .carousel-control-next {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.banner-carousel .carousel-control-prev:hover,
.banner-carousel .carousel-control-next:hover {
    background: rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Fix for Bootstrap 4 carousel transitions */
.banner-carousel .carousel-item.active,
.banner-carousel .carousel-item-next,
.banner-carousel .carousel-item-prev {
    display: block;
}

.banner-carousel .carousel-item-next:not(.carousel-item-left),
.banner-carousel .active.carousel-item-right {
    transform: translateX(100%);
}

.banner-carousel .carousel-item-prev:not(.carousel-item-right),
.banner-carousel .active.carousel-item-left {
    transform: translateX(-100%);
}

.banner-carousel .carousel-item-next,
.banner-carousel .carousel-item-prev {
    position: absolute;
    top: 0;
}

.banner-carousel .carousel-item-next.carousel-item-left,
.banner-carousel .carousel-item-prev.carousel-item-right {
    transform: translateX(0);
}

.banner-carousel .carousel-item-next.carousel-item-left.active,
.banner-carousel .carousel-item-prev.carousel-item-right.active {
    position: relative;
    transform: translateX(0);
} 