.ht-wrapper-b950bde0 {
    position: relative;
    width: 100%;
    font-family: inherit;
}

.ht-header-nav {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 20px;
}

.ht-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #3b82f6;
    background: transparent;
    color: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    font-size: 16px;
}

.ht-nav-btn:hover:not(.disabled) {
    background-color: #3b82f6;
    color: #fff;
}

.ht-nav-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.ht-container {
    position: relative;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 200px 0; /* Changed dynamically by Elementor controls */
    min-height: 500px;
}

.ht-container::-webkit-scrollbar {
    display: none;
}

.ht-track {
    display: inline-flex;
    position: relative;
    min-width: 100%;
    padding: 0 40px;
    align-items: center;
    min-height: 100%;
}

.ht-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #3b82f6;
    transform: translateY(-50%);
    z-index: 1;
}

.ht-item {
    flex: 0 0 350px; /* Base width, overridden by Elementor control */
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    outline: none; /* Focus outline removed for cleaner click/touch behavior */
}

/* Node marker */
.ht-node {
    width: 60px;
    height: 60px;
    background-color: #ffffff;
    border: 3px solid #3b82f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    color: #3b82f6;
    z-index: 3; /* Must be above the card for proper hover */
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden; /* For image markers */
}

.ht-node img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ht-node svg {
    width: 24px;
    height: 24px;
    fill: #3b82f6;
}

/* Interactive States: Hover & Focus within */
.ht-item:hover .ht-node,
.ht-item:focus-within .ht-node {
    transform: scale(1.15);
    box-shadow: 0 0 15px rgba(0,0,0,0.15);
}

/* Card Positioning & Visibility */
.ht-card-container {
    position: absolute;
    width: 300px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* Prevent interacting when hidden */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 4;
}

/* Show card on node hover, node click (focus), or card hover */
.ht-item:hover .ht-card-container,
.ht-item:focus-within .ht-card-container {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.ht-item.pos-top .ht-card-container {
    bottom: 50%;
    margin-bottom: 50px; /* Distance from node center */
    transform: translateY(20px); /* Start slightly down */
}

.ht-item.pos-bottom .ht-card-container {
    top: 50%;
    margin-top: 50px; /* Distance from node center */
    transform: translateY(-20px); /* Start slightly up */
}

/* Slide in animation triggers */
.ht-item:hover.pos-top .ht-card-container,
.ht-item:focus-within.pos-top .ht-card-container,
.ht-item:hover.pos-bottom .ht-card-container,
.ht-item:focus-within.pos-bottom .ht-card-container {
    transform: translateY(0);
}

.ht-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
}

/* Pointers (Triangles) connecting card to node */
.ht-card::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border-style: solid;
    border-width: 12px;
}

.ht-item.pos-top .ht-card::after {
    bottom: -24px;
    border-color: #ffffff transparent transparent transparent;
}

.ht-item.pos-bottom .ht-card::after {
    top: -24px;
    border-color: transparent transparent #ffffff transparent;
}

/* Inner content */
.ht-badge {
    display: inline-block;
    background-color: #3b82f6;
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.ht-title {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
}

.ht-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #4b5563;
    margin: 0;
}

/* Responsive constraints to ensure cards don't get cut off horizontally */
@media (max-width: 767px) {
    .ht-item {
        flex: 0 0 280px !important; /* Force smaller size on mobile regardless of setting */
    }
    .ht-card-container {
        width: 250px;
    }
    .ht-container {
        padding: 150px 0 !important;
        min-height: 400px;
    }
}