/* Container Layout */
.mps-wrapper {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

/* Content Area */
.mps-content-area {
    position: relative;
    margin-bottom: 20px; 
    /* Allows vertical scroll but lets JS handle horizontal gestures */
    touch-action: pan-y; 
    /* Ensure it has a minimum height so swipes work even on empty space if needed */
    min-height: 50px; 
}

.mps-step-item {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    width: 100%;
}

.mps-step-item.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mps-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 40px; 
}

.mps-image-col {
    flex: 1;
    min-width: 300px;
}

.mps-image-col img {
    width: 100%;
    display: block;
}

.mps-text-col {
    flex: 1;
    min-width: 300px;
}

/* Elements Styling */
.mps-number-box {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 40px; 
    font-weight: bold;
    font-size: 18px;
}

.mps-title {
    line-height: 1.2;
}

.mps-description {
    line-height: 1.6;
}

/* Buttons Area */
.mps-buttons-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    /* Default CSS variables for buttons to be safe */
    --mps-btn-width: auto;
    --mps-btn-grow: 1;
}

.mps-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    /* Defaults to simulate standard button look */
    padding: 10px 20px;
    background-color: #ddd;
    color: #333;
    border: none;
    box-sizing: border-box; /* Crucial for 100% width with padding */
}

/* Navigation Timeline */
.mps-navigation-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Masking and Scrolling */
.mps-timeline {
    flex-grow: 1;
    min-width: 0; 
    overflow: hidden; 
    position: relative;
    padding-top: 20px; 
}

.mps-timeline-line {
    position: absolute;
    top: 5px; 
    left: 0;
    width: 100%;
    height: 2px;
    z-index: 0;
}

.mps-dots-wrapper {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
    overflow-x: auto; 
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-behavior: smooth;
}
.mps-dots-wrapper::-webkit-scrollbar {
    display: none;
}

.mps-dot-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0; 
    padding-top: 5px;
}

.mps-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.mps-dot.active {
    transform: scale(1.3);
}

.mps-dot-label {
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    transition: color 0.3s ease;
    white-space: nowrap; 
}

/* Arrows Container */
.mps-arrows {
    display: flex;
    gap: 10px; 
    flex-shrink: 0; 
}

/* Base button styles */
.mps-nav-btn {
    -webkit-appearance: none;
    appearance: none;
    border: 1px solid #ccc;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0; 
    flex-shrink: 0; 
    box-sizing: border-box;
}

/* SVG Styling */
.mps-arrow-icon {
    display: block;
    width: 24px; 
    height: 24px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.mps-arrow-icon path {
    stroke: #000; 
    transition: stroke 0.3s ease;
}

/* Mobile Responsiveness */
@media (max-width: 767px) {
    .mps-inner {
        flex-direction: column;
    }
    .mps-timeline-line {
        width: 200%;
    }
    .mps-navigation-area {
        flex-direction: column;
        align-items: stretch;
    }
    .mps-arrows {
        justify-content: center;
    }
}