/* ----------------------------------------------------------------
	Custom CSS

	Add all your Custom Styled CSS here for New Styles or
	Overwriting Default Theme Styles for Better Handling Updates
-----------------------------------------------------------------*/

/* Neos Premium Carousel Slider Styling */
.neos-carousel {
    position: relative;
    height: 450px;
    background-color: #052f38;
    overflow: hidden;
}

.neos-carousel .carousel-inner,
.neos-carousel .carousel-item {
    height: 100%;
}

.neos-carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Elegant Dark Brand Overlay for Text Legibility */
.neos-carousel-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        90deg,
        rgba(5, 47, 56, 0.85) 0%,
        rgba(5, 47, 56, 0.55) 45%,
        rgba(5, 47, 56, 0.2) 100%
    );
    pointer-events: none;
}

/* Captions and Text Styling */
.neos-carousel-caption-container {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
}

.neos-carousel .slide-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    margin-bottom: 15px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #bfeff1;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.neos-carousel .slide-label i {
    color: #e8b43a;
}

.neos-carousel .slide-title {
    color: #ffffff;
    font-size: 44px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    opacity: 0;
    transform: translateY(20px);
}

.neos-carousel .slide-text {
    color: #e4edf2;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 550px;
    opacity: 0;
    transform: translateY(20px);
}

/* Premium Buttons */
.neos-carousel .slide-btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    background: #0077a8;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    opacity: 0;
    transform: translateY(20px);
}

.neos-carousel .slide-btn:hover {
    background: #005f86;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 119, 168, 0.2);
    color: #ffffff;
}

/* Animations on Active Slide */
.neos-carousel .carousel-item.active .slide-title {
    animation: neosSlideFadeUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.neos-carousel .carousel-item.active .slide-text {
    animation: neosSlideFadeUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s forwards;
}

.neos-carousel .carousel-item.active .slide-btn {
    animation: neosSlideFadeUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s forwards;
}

@keyframes neosSlideFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom Controls (Prev/Next Circle Buttons) */
.neos-carousel .carousel-control-prev,
.neos-carousel .carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    transition: all 0.3s ease;
    z-index: 5;
}

.neos-carousel .carousel-control-prev {
    left: 25px;
}

.neos-carousel .carousel-control-next {
    right: 25px;
}

.neos-carousel .carousel-control-prev:hover,
.neos-carousel .carousel-control-next:hover {
    background: #0077a8;
    border-color: #0077a8;
    opacity: 1;
}

/* Indicator Styling */
.neos-carousel .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ffffff;
    opacity: 0.4;
    transition: all 0.3s ease;
    border: none;
    margin: 0 5px;
}

.neos-carousel .carousel-indicators .active {
    opacity: 1;
    background-color: #0077a8;
    transform: scale(1.2);
}

/* Responsive Scaling */
@media (max-width: 991px) {
    .neos-carousel {
        height: 380px;
    }
    .neos-carousel .slide-title {
        font-size: 32px;
    }
    .neos-carousel .slide-text {
        font-size: 15px;
    }
}

@media (max-width: 767px) {
    .neos-carousel {
        height: 320px;
    }
    .neos-carousel-overlay {
        background: linear-gradient(
            180deg,
            rgba(5, 47, 56, 0.9) 0%,
            rgba(5, 47, 56, 0.75) 100%
        );
    }
    .neos-carousel .slide-title {
        font-size: 26px;
        margin-bottom: 10px;
    }
    .neos-carousel .slide-text {
        font-size: 14px;
        margin-bottom: 18px;
    }
    .neos-carousel .slide-btn {
        padding: 10px 22px;
        font-size: 14px;
    }
    .neos-carousel .carousel-control-prev,
    .neos-carousel .carousel-control-next {
        display: none; /* Hide navigation arrows on mobile for clean UI */
    }
}

@media (max-width: 480px) {
    .neos-carousel {
        height: 280px;
    }
    .neos-carousel .slide-title {
        font-size: 22px;
    }
    .neos-carousel .slide-label {
        padding: 4px 10px;
        font-size: 11px;
        margin-bottom: 10px;
    }
}
