/* ==========================================================================
   Hero Custom Navigation Styles
   ========================================================================== */

/* Hide the default Elementor Pagination Dots safely */
.elementor-widget-slides .swiper-pagination-bullets,
.elementor-widget-slides .elementor-swiper-button {
    display: none !important;
}

/* Base Layout for Custom Navigation Container */
.custom-slider-nav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    max-width: 1200px;
    margin: 30px auto 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    z-index: 10;
    position: relative;
}

/* Individual Navigation Item */
.custom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

/* Typography styles matching an elegant/corporate aesthetic */
.custom-nav-title {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    color: #ffffff; /* Fallback text color, override if text is placed over white backgrounds */
    opacity: 0.6;
    padding-bottom: 12px;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Static Grey Line Base Track */
.custom-nav-track {
    width: 100%;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.25); /* Elegant translucent grey line */
    position: relative;
    overflow: hidden;
}

/* Active Yellow Progress Bar Indicator */
.custom-nav-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background-color: #FFD700; /* Flat solid yellow progress color */
    will-change: width;
}

/* Hover States */
.custom-nav-item:hover .custom-nav-title {
    opacity: 0.9;
}

/* Active States */
.custom-nav-item.is-active .custom-nav-title {
    opacity: 1;
    font-weight: 600;
}

/* Responsive Behaviour: Stack columns on smaller viewports */
@media (max-width: 768px) {
    .custom-slider-nav {
        flex-direction: column;
        gap: 16px;
        padding: 0 15px;
    }
    
    .custom-nav-title {
        font-size: 14px;
        padding-bottom: 6px;
    }
}