/* dps-105 - Dynamic Progress Sidebar */
/* Wrapper width fix */
.elementor-widget-dynamic_progress_sidebar_105 {
    width: 100%;
}

.dps-105-container {
    display: flex;
    flex-wrap: nowrap;
    position: relative;
    width: 100%;
}

/* Sidebar Visibility handled by Elementor responsive prefix classes */
.dps-105-pos-none- .dps-105-sidebar,
.dps-105-pos-tablet-none- .dps-105-sidebar,
.dps-105-pos-mobile-none- .dps-105-sidebar {
    display: none !important;
}

/* ----------------------------------
   DESKTOP POSITIONING (Base)
-----------------------------------*/
/* Default (Left) */
.dps-105-container {
    flex-direction: row;
}

/* Right */
.dps-105-pos-right- .dps-105-container {
    flex-direction: row-reverse;
}

/* Top */
.dps-105-pos-top- .dps-105-container {
    flex-direction: column;
}


/* ----------------------------------
   TABLET POSITIONING OVERRIDES
-----------------------------------*/
@media (min-width: 768px) and (max-width: 1024px) {
    .dps-105-pos-tablet-left- .dps-105-container {
        flex-direction: row !important;
    }
    .dps-105-pos-tablet-right- .dps-105-container {
        flex-direction: row-reverse !important;
    }
    .dps-105-pos-tablet-top- .dps-105-container {
        flex-direction: column !important;
    }
}


/* ----------------------------------
   MOBILE POSITIONING OVERRIDES
-----------------------------------*/
@media (max-width: 767px) {
    /* Elementor outputs classes like: .dps-105-pos-mobile-top- */
    .elementor-widget-dynamic_progress_sidebar_105.dps-105-pos-mobile-left- .dps-105-container {
        flex-direction: row !important;
    }
    .elementor-widget-dynamic_progress_sidebar_105.dps-105-pos-mobile-right- .dps-105-container {
        flex-direction: row-reverse !important;
    }
    .elementor-widget-dynamic_progress_sidebar_105.dps-105-pos-mobile-top- .dps-105-container {
        flex-direction: column !important;
    }
    
    /* Default behavior on mobile if no explicit control is set: Stack vertically with Sidebar on Top */
    .elementor-widget-dynamic_progress_sidebar_105:not(.dps-105-pos-mobile-left-):not(.dps-105-pos-mobile-right-):not(.dps-105-pos-mobile-none-) .dps-105-container {
        flex-direction: column !important;
    }
}


/* ----------------------------------
   SIDEBAR LAYOUT
-----------------------------------*/
.dps-105-sidebar {
    width: 250px; /* Overridable via Elementor */
    position: sticky;
    top: 120px;
    height: max-content;
    z-index: 10;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}


/* "Top" layout forces the sidebar itself to be a horizontal row at the top */
.dps-105-pos-top- .dps-105-sidebar,
.dps-105-pos-tablet-top- .dps-105-sidebar,
.dps-105-pos-mobile-top- .dps-105-sidebar,
@media (max-width: 767px) {
    .elementor-widget-dynamic_progress_sidebar_105:not(.dps-105-pos-mobile-left-):not(.dps-105-pos-mobile-right-):not(.dps-105-pos-mobile-none-) .dps-105-sidebar {
        width: 100% !important;
        position: sticky;
        top: 0;
        flex-direction: row;
        background: #fff;
        padding: 10px 0;
        z-index: 99;
    }
}

.dps-105-pos-top- .dps-105-sidebar,
.dps-105-pos-tablet-top- .dps-105-sidebar,
.dps-105-pos-mobile-top- .dps-105-sidebar {
    width: 100% !important;
    position: sticky;
    top: 0;
    flex-direction: row;
    background: #fff; /* Ensure it covers content behind */
    padding: 10px 0;
    z-index: 99;
}

/* The actual list inside a "Top" sidebar becomes a scrollable row */
.dps-105-pos-top- .dps-105-sidebar-list,
.dps-105-pos-tablet-top- .dps-105-sidebar-list,
.dps-105-pos-mobile-top- .dps-105-sidebar-list,
@media (max-width: 767px) {
    .elementor-widget-dynamic_progress_sidebar_105:not(.dps-105-pos-mobile-left-):not(.dps-105-pos-mobile-right-):not(.dps-105-pos-mobile-none-) .dps-105-sidebar-list {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        gap: 20px;
        padding-bottom: 10px; /* space for scrollbar */
        width: 100%;
    }
}

.dps-105-pos-top- .dps-105-sidebar-list,
.dps-105-pos-tablet-top- .dps-105-sidebar-list,
.dps-105-pos-mobile-top- .dps-105-sidebar-list {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 10px; /* space for scrollbar */
    width: 100%;
}

.dps-105-sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dps-105-sidebar-item {
    padding: 12px 0;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.6;
    white-space: nowrap; /* important for top layout */
}

.dps-105-sidebar-item.active {
    opacity: 1;
}

/* Nudge right only when vertical */
.dps-105-pos-left- .dps-105-sidebar-item.active,
.dps-105-pos-right- .dps-105-sidebar-item.active {
    transform: translateX(4px);
}

/* Nudge down when horizontal */
.dps-105-pos-top- .dps-105-sidebar-item.active,
.dps-105-pos-mobile-top- .dps-105-sidebar-item.active {
    transform: translateY(2px);
}

.dps-105-progress-track {
    height: 2px;
    background-color: rgba(0,0,0,0.1);
    margin-top: 8px;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.dps-105-progress-bar {
    height: 100%;
    background-color: #ff3131; /* Default fallback */
    width: 0%;
    position: absolute;
    top: 0;
    left: 0;
    will-change: width;
    transition: width 0.1s linear; 
}


/* ----------------------------------
   CONTENT AREA
-----------------------------------*/
.dps-105-content-area {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.dps-105-section {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    /* Gap and padding managed 100% via Elementor Slider/Dimension controls */
}

/* Mobile Stacking for Inner Section Content */
@media (max-width: 767px) {
    .dps-105-section {
        flex-wrap: wrap !important;
    }
    .dps-105-text,
    .dps-105-media {
        width: 100% !important;
        flex: 1 1 100% !important;
    }
}

.dps-105-text {
    flex: 1;
    min-width: 0;
}
.dps-105-media {
    flex: 1;
    min-width: 0;
}

.dps-105-media img {
    width: 100%;
    height: auto;
    display: block;
}

.dps-105-heading-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.dps-105-heading {
    margin: 0;
}

.dps-105-desc {
    margin: 0;
}

.dps-105-icon i {
    font-size: 24px;
}
.dps-105-icon svg {
    width: 24px;
    height: 24px;
}

/* Button */
.dps-105-button {
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
}