﻿/* Home hero banner carousel (moved from custom.css; overrides .heroBanner from style.css) */

/* ========== Banner Carousel Styles ========== */
/* Override style.css background-image for carousel version */
.heroBanner {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-image: none !important; /* Override style.css background */
    height: auto !important; /* Override fixed height */
    padding: 0 !important; /* Remove default section padding */
    z-index: 0;
}

.banner-carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.bannerCarousel {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
}

.bannerCarousel .owl-stage-outer,
.bannerCarousel .owl-stage,
.bannerCarousel .owl-item {
    height: 100%;
}

.bannerCarousel .banner-slide {
    position: relative;
    min-height: 400px;
    height: 400px;
    /* Use cover to fill the container with background image */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: rgba(0, 0, 0, 0.3); /* Fallback background color */
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

.bannerCarousel .banner-slide .banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%); */
    z-index: 1;
}

.bannerCarousel .banner-slide .container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1430px;
    margin: 0 auto;
    padding: 0 20px;
}

.bannerCarousel .banner-slide .bannerText {
    text-align: left;
    color: var(--white-color, #ffffff);
    padding: 40px 20px 100px 20px;
    position: relative;
    z-index: 3;
    width: 100%;
    animation: fadeInUp 0.8s ease-out;
}

/* Hide banner text initially - will be shown through typing animation */
.bannerCarousel .banner-slide .bannerText h1,
.bannerCarousel .banner-slide .bannerText h5 {
    opacity: 0;
    visibility: hidden;
}

/* Show banner text when typing animation starts and keep it visible */
.bannerCarousel .banner-slide .bannerText.typing-active h1,
.bannerCarousel .banner-slide .bannerText.typing-active h5,
.bannerCarousel .banner-slide.owl-item.active .bannerText h1,
.bannerCarousel .banner-slide.owl-item.active .bannerText h5 {
    opacity: 1;
    visibility: visible;
}

.bannerCarousel .banner-slide .bannerText.typing-active h1,
.bannerCarousel .banner-slide .bannerText.typing-active h5 {
    min-height: 1.2em; /* Prevent layout shift during typing */
}

.bannerCarousel .banner-slide .bannerText .bannerAdSection,
.heroBanner-mobile .bannerCarouselMobile .banner-slide .bannerText .bannerAdSection {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Banner Advertisement Section */
.bannerAdSection {
    display: none !important;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
    align-items: center;
    opacity: 0 !important;
    transform: translateY(0) !important;
    transition: opacity 0.8s ease-out 0.5s, transform 0.8s ease-out 0.5s;
    position: relative;
    z-index: 4;
    visibility: hidden !important;
}

.bannerCarousel .banner-slide .bannerAdSection,
.heroBanner-mobile .bannerCarouselMobile .banner-slide .bannerAdSection,
.bannerCarousel .banner-slide.owl-item.active .bannerAdSection,
.heroBanner-mobile .bannerCarouselMobile .banner-slide.owl-item.active .bannerAdSection {
    display: none !important;
    opacity: 0 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
}

.bannerAdBtn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Inter-SemiBold', sans-serif;
    text-decoration: none;
    transition: all 0.3s ease cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.bannerAdBtn i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.bannerAdBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.bannerAdBtn:hover i {
    transform: scale(1.1);
}

.bannerAdBtn-primary {
    background: linear-gradient(135deg, var(--blue-color, #005395) 0%, #0066b3 100%);
    color: var(--white-color, #ffffff);
    border-color: var(--blue-color, #005395);
}

.bannerAdBtn-primary:hover {
    background: linear-gradient(135deg, #0066b3 0%, var(--blue-color, #005395) 100%);
    color: var(--white-color, #ffffff);
}

.bannerAdBtn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.bannerAdBtn-primary:hover::before {
    left: 100%;
}

.bannerAdBtn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white-color, #ffffff) !important;
    border-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 10px rgba(0, 0, 0, 0.3);
    font-weight: 600 !important;
}

.bannerAdBtn-secondary span {
    color: var(--white-color, #ffffff) !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 10px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.bannerAdBtn-secondary i {
    color: var(--white-color, #ffffff) !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}

.bannerAdBtn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    color: var(--white-color, #ffffff) !important;
}

.bannerAdBtn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.bannerAdBtn-secondary:hover::before {
    left: 100%;
}

/* Mobile-only banner styles */
/* Mobile Banner Carousel Styles */
.heroBanner-mobile {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-image: none !important;
    height: auto !important;
    padding: 0 !important;
    z-index: 0;
}

.heroBanner-mobile .banner-carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.heroBanner-mobile .bannerCarouselMobile {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
}

.heroBanner-mobile .bannerCarouselMobile .owl-stage-outer,
.heroBanner-mobile .bannerCarouselMobile .owl-stage,
.heroBanner-mobile .bannerCarouselMobile .owl-item {
    height: 100%;
}

.heroBanner-mobile .bannerCarouselMobile .banner-slide {
    position: relative;
    min-height: 400px;
    height: 400px;
    background-size: cover; /* Use cover to fill the container */
    background-position: center center; /* Center the image */
    background-repeat: no-repeat;
    background-color: rgba(0, 0, 0, 0.3); /* Fallback background color */
    display: flex;
    align-items: center;
    justify-content: center; /* Center content horizontally */
    width: 100%;
}

.heroBanner-mobile .bannerCarouselMobile .banner-slide .banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.heroBanner-mobile .bannerCarouselMobile .banner-slide .container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1430px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center; /* Center the bannerText container */
    align-items: center;
}

.heroBanner-mobile .bannerCarouselMobile .banner-slide .bannerText {
    text-align: center; /* Center text in responsive screens */
    color: var(--white-color, #ffffff);
    padding: 30px 20px;
    position: relative;
    z-index: 3;
}

/* Hide banner text initially - will be shown through typing animation */
.heroBanner-mobile .bannerCarouselMobile .banner-slide .bannerText h1,
.heroBanner-mobile .bannerCarouselMobile .banner-slide .bannerText h5 {
    opacity: 0;
    visibility: hidden;
}

/* Show banner text when typing animation starts and keep it visible after completion */
.heroBanner-mobile .bannerCarouselMobile .banner-slide .bannerText.typing-active h1,
.heroBanner-mobile .bannerCarouselMobile .banner-slide .bannerText.typing-active h5,
.heroBanner-mobile .bannerCarouselMobile .banner-slide.owl-item.active .bannerText h1:not(:empty),
.heroBanner-mobile .bannerCarouselMobile .banner-slide.owl-item.active .bannerText h5:not(:empty) {
    opacity: 1;
    visibility: visible;
    width: 100%;
}

.heroBanner-mobile .bannerCarouselMobile .banner-slide .bannerText.typing-active h1,
.heroBanner-mobile .bannerCarouselMobile .banner-slide .bannerText.typing-active h5 {
    min-height: 1.2em; /* Prevent layout shift during typing */
}

.heroBanner-mobile .bannerCarouselMobile .banner-slide .bannerText h1 {
    font-size: 32px;
    font-weight: 900;
    font-family: 'Inter-Black';
    line-height: 1.2;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 0, 0, 0.3);
    color: var(--white-color, #ffffff);
    animation: slideInLeft 1s ease-out 0.2s both;
    transition: all 0.3s ease;
    cursor: default;
    letter-spacing: -0.5px;
}

.heroBanner-mobile .bannerCarouselMobile .banner-slide .bannerText h1:hover {
    transform: scale(1.02);
    text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 0, 0, 0.4);
}

.heroBanner-mobile .bannerCarouselMobile .banner-slide .bannerText h5 {
    font-size: 16px;
    font-weight: 600;
    font-family: "Jost", serif;
    margin: 0;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 0, 0, 0.3);
    color: var(--white-color, #ffffff);
    animation: slideInRight 1s ease-out 0.4s both;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.heroBanner-mobile .bannerCarouselMobile .banner-slide .bannerText h5:hover {
    transform: translateY(-2px);
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 0, 0, 0.4);
}

/* Interactive animations for banner text */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Typing cursor animation for banner text */
.bannerText .typing-cursor {
    display: inline-block;
    animation: blinkCursor 1s infinite;
    color: var(--white-color, #ffffff);
    font-weight: 900;
    margin-left: 2px;
}

@keyframes blinkCursor {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

.heroBanner-mobile .bannerCarouselMobile .owl-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    z-index: 10;
    pointer-events: none;
    margin: 0;
}

.heroBanner-mobile .bannerCarouselMobile .owl-nav button {
    pointer-events: all;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.9) !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
}

.heroBanner-mobile .bannerCarouselMobile .owl-nav button:hover {
    background-color: var(--white-color, #ffffff) !important;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.heroBanner-mobile .bannerCarouselMobile .owl-nav button i {
    color: var(--blue-color, #007bff);
    font-size: 16px;
}

.heroBanner-mobile .bannerCarouselMobile .owl-nav .owl-prev {
    left: 15px;
    position: absolute;
}

.heroBanner-mobile .bannerCarouselMobile .owl-nav .owl-next {
    right: 15px;
    position: absolute;
}

.heroBanner-mobile .bannerCarouselMobile .owl-dots {
    position: absolute;
    bottom: 100px; /* Moved higher to make room for mobileFilterHeroSection */
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
    margin: 0;
}

.heroBanner-mobile .bannerCarouselMobile .owl-dots .owl-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5) !important;
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    margin: 0 4px;
}

.heroBanner-mobile .bannerCarouselMobile .owl-dots .owl-dot.active {
    background-color: var(--white-color, #ffffff) !important;
    width: 25px;
    border-radius: 6px;
    border-color: var(--white-color, #ffffff);
}

.bannerCarousel .banner-slide .bannerText h1 {
    font-size: 62px;
    font-weight: 900;
    font-family: 'Inter-Black';
    line-height: 1.2;
    margin-bottom: 20px;
    /* text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 0, 0, 0.3);
    color: var(--white-color, #ffffff); */
    transition: all 0.3s ease;
    cursor: default;
    letter-spacing: -1px;
    text-align: center;
}

/* .bannerCarousel .banner-slide .bannerText h1:hover {
    transform: scale(1.02);
    text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 0, 0, 0.4);
} */

.bannerCarousel .banner-slide .bannerText h5 {
    font-size: 24px;
    font-weight: 600;
    font-family: "Jost", serif;
    margin: 0;
    /* text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 0, 0, 0.3);
    color: var(--white-color, #ffffff); */
    transition: all 0.3s ease;
    letter-spacing: 1px;
    text-align: center;
}

/* .bannerCarousel .banner-slide .bannerText h5:hover {
    transform: translateY(-2px);
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 0, 0, 0.4);
} */

/* Owl Carousel Navigation for Banner */
.bannerCarousel .owl-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 10;
    pointer-events: none;
    margin: 0;
}

.bannerCarousel .owl-nav button {
    pointer-events: all;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.9) !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
}

.bannerCarousel .owl-nav button:hover {
    background-color: var(--white-color, #ffffff) !important;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.bannerCarousel .owl-nav button i {
    color: var(--blue-color, #007bff);
    font-size: 20px;
}

.bannerCarousel .owl-nav .owl-prev {
    left: 30px;
    position: absolute;
}

.bannerCarousel .owl-nav .owl-next {
    right: 30px;
    position: absolute;
}

/* Owl Carousel Dots for Banner */
.bannerCarousel .owl-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
    margin: 0;
}

.bannerCarousel .owl-dots .owl-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5) !important;
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    margin: 0 5px;
}

.bannerCarousel .owl-dots .owl-dot.active {
    background-color: var(--white-color, #ffffff) !important;
    width: 30px;
    border-radius: 6px;
    border-color: var(--white-color, #ffffff);
}
