/* Modern Home Banner Carousel Styles */

.modern-banner-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f8f9fa;
}

.modern-banner-carousel {
    position: relative;
    width: 100%;
    height: 300px;
}

.modern-banner-carousel .carousel-inner {
    height: 100%;
}

.modern-banner-carousel .carousel-item {
    height: 100%;
    transition: opacity 0.6s ease-in-out;
}

/* Custom Fade Effect - More Reliable */
.modern-banner-carousel .carousel-item {
    display: none;
}

.modern-banner-carousel .carousel-item.active {
    display: block;
}

/* Contact Slide Styles - Professional Diagonal Split */
.banner-contact-slide {
    height: 100%;
    position: relative;
    overflow: hidden;
    background: #FDB913; /* Yellow base */
}

/* Diagonal Blue Overlay */
.banner-contact-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #003087; /* Blue */
    clip-path: polygon(0 0, 55% 0, 45% 100%, 0 100%);
    z-index: 1;
}

.banner-contact-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    color: white;
}

.banner-contact-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    letter-spacing: 0.5px;
}

.banner-contact-content p {
    font-size: 1.15rem;
    margin-bottom: 25px;
    opacity: 0.95;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.2);
}

.banner-contact-info {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 12px 22px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.contact-item i {
    font-size: 1.3rem;
    color: #FDB913;
}

.contact-item a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s;
}

.contact-item a:hover {
    opacity: 0.9;
}

.payment-cards {
    margin-top: 20px;
}

.payment-cards img {
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.2));
}

/* Image Slide Styles */
.banner-image-slide {
    position: relative;
    height: 100%;
    width: 100%;
}

.banner-image-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    padding: 60px 40px 40px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.banner-cta {
    display: inline-block;
    padding: 15px 40px;
    background: #ff6b6b;
    color: white !important;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.banner-cta:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}

/* Carousel Controls */
.modern-banner-carousel .carousel-control-prev,
.modern-banner-carousel .carousel-control-next {
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.modern-banner-carousel .carousel-control-prev {
    left: 20px;
}

.modern-banner-carousel .carousel-control-next {
    right: 20px;
}

.modern-banner-carousel .carousel-control-prev:hover,
.modern-banner-carousel .carousel-control-next:hover {
    opacity: 1;
}

.modern-banner-carousel .carousel-control-prev-icon,
.modern-banner-carousel .carousel-control-next-icon {
    width: 30px;
    height: 30px;
}

/* Carousel Indicators */
.modern-banner-carousel .carousel-indicators {
    bottom: 20px;
}

.modern-banner-carousel .carousel-indicators li {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid white;
    margin: 0 5px;
}

.modern-banner-carousel .carousel-indicators li.active {
    background-color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-banner-carousel {
        height: 320px;
    }
    
    /* Adjust diagonal for mobile */
    .banner-contact-slide::before {
        clip-path: polygon(0 0, 60% 0, 40% 100%, 0 100%);
    }
    
    .banner-contact-content {
        padding: 30px 20px;
    }
    
    .banner-contact-content h2 {
        font-size: 1.6rem;
    }
    
    .banner-contact-content p {
        font-size: 1rem;
    }
    
    .banner-contact-info {
        flex-direction: column;
        gap: 12px;
        margin: 20px 0;
    }
    
    .contact-item {
        font-size: 0.95rem;
        padding: 10px 18px;
    }
    
    .payment-cards {
        margin-top: 15px;
    }
    
    .payment-cards img {
        max-width: 240px;
    }
    
    .modern-banner-carousel .carousel-control-prev,
    .modern-banner-carousel .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .modern-banner-carousel .carousel-control-prev {
        left: 10px;
    }
    
    .modern-banner-carousel .carousel-control-next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .modern-banner-carousel {
        height: 280px;
    }
    
    .banner-contact-slide::before {
        clip-path: polygon(0 0, 65% 0, 35% 100%, 0 100%);
    }
    
    .banner-contact-content {
        padding: 25px 15px;
    }
    
    .banner-contact-content h2 {
        font-size: 1.4rem;
    }
    
    .banner-contact-content p {
        font-size: 0.95rem;
    }
    
    .contact-item {
        font-size: 0.9rem;
        padding: 9px 16px;
    }
    
    .banner-cta {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .payment-cards img {
        max-width: 220px;
    }
}
