/* ============================================
   HERO CAROUSEL AS BACKGROUND - SYGIE
   ============================================ */

/* Hero Section with Background Carousel */
.panel-header {
    position: relative;
    overflow: hidden;
    min-height: 550px;
    height: 550px;
}

.hero-carousel-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-carousel-background #heroCarousel {
    width: 100%;
    height: 100%;
}

.hero-carousel-background .carousel-inner {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-carousel-background .carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.hero-carousel-background .carousel-item.active {
    position: relative;
    opacity: 1;
}

.hero-carousel-background .carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.45);
    transition: filter 0.3s ease;
    display: block;
}

/* Overlay gradient for better text readability */
.panel-header .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(31, 58, 147, 0.75) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 0.5;
}

/* Content positioned above background */
.page-inner {
    position: relative;
    z-index: 2;
}

/* Hide carousel captions when used as background */
.hero-carousel-background .carousel-caption-custom {
    display: none;
}

/* Center hero content */
.hero-content {
    text-align: center;
    padding: 40px 20px;
}

/* Enhanced text shadows for readability over images */
.page-inner h1,
.page-inner h2,
.page-inner h3,
.page-inner h4,
.page-inner h5 {
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.9);
}

/* Carousel indicators styling */
.hero-carousel-background .carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    margin: 0;
}

.hero-carousel-background .carousel-indicators li {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    margin: 0 5px;
}

.hero-carousel-background .carousel-indicators .active {
    background-color: #fff;
    transform: scale(1.3);
    border-color: #fff;
}

/* Hide carousel navigation controls for cleaner background */
.hero-carousel-background .carousel-control-prev,
.hero-carousel-background .carousel-control-next {
    display: none;
}

/* Button enhancements */
.btn-white,
.btn-light {
    transition: all 0.3s ease;
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

.btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.4);
}

/* Animated text effect */
.animated-text {
    animation: fadeInUp 1.2s ease-in-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .panel-header {
        min-height: 450px;
        height: 450px;
    }

    .page-inner h1 {
        font-size: 36px !important;
    }

    .page-inner h3 {
        font-size: 16px;
    }

    .page-inner h4 {
        font-size: 18px;
    }

    .hero-content {
        padding: 20px 15px;
    }

    .hero-carousel-background .carousel-indicators {
        bottom: 10px;
    }

    .btn-lg {
        font-size: 14px;
        padding: 10px 20px;
    }
}

@media (max-width: 576px) {
    .panel-header {
        min-height: 400px;
        height: 400px;
    }

    .page-inner h1 {
        font-size: 28px !important;
    }

    .page-inner h3 {
        font-size: 14px;
    }

    .btn-white,
    .btn-light {
        display: block;
        width: 80%;
        margin: 10px auto !important;
    }
}