/* Structural styling for the 3D Doctor Slider Widget */
.tds-carousel-container-a51b15db {
    position: relative;
    width: 100%;
    margin: 0 auto;
    
    overflow: visible;
    direction: rtl; /* Professional clinic RTL default styling */
}

.tds-carousel-viewport-a51b15db {
    position: relative;
    
    overflow: hidden;
    
}

.tds-carousel-track-a51b15db {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    transform-style: preserve-3d;
}

.tds-slide-a51b15db {
    position: absolute;
    width: 320px;
    height: 450px;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    transform-style: preserve-3d;
    backface-visibility: hidden;
    z-index: 1;
}

.tds-slide-inner-a51b15db {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background: #ffffff;
    border-radius: 5px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.tds-image-wrapper-a51b15db {
    position: relative;
    width: 100%;
    flex-grow: 1;
    overflow: hidden;
}

.tds-img-a51b15db {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Metadata pills overlaid elegantly */
.tds-overlay-tags-a51b15db {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0,0,0,0) 100%);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 2;
}

.tds-slide-a51b15db.tds-active-a51b15db:hover .tds-overlay-tags-a51b15db {
    opacity: 1;
    transform: translateY(0);
}

.tds-tag-a51b15db {
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 500;
    border-radius: 5px;
    white-space: nowrap;
}

.tds-info-a51b15db {
    padding: 20px;
    text-align: center;
    background: #ffffff;
}

.tds-name-a51b15db {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 700;
}

.tds-subtitle-a51b15db {
    margin: 0;
    font-size: 14px;
}

/* Arrows */
.tds-nav-btn-a51b15db {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #0f766e!important;
    background: #ffffff!important;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s, color 0.3s, transform 0.3s;
}

.tds-nav-btn-a51b15db:hover {
    background: #0f766e!important;
    color: #ffffff!important;
}

.tds-prev-a51b15db {
    left: 15px;
}

.tds-next-a51b15db {
    right: 15px;
}

/* Pagination Dots */
.tds-pagination-dots-a51b15db {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
}

.tds-dot-a51b15db {
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background: #cbd5e1;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.tds-dot-a51b15db.tds-dot-active-a51b15db {
    background: #0f766e;
    transform: scale(1.2);
}

/* Editor preview static stack fallback */
.tds-editor-preview-mode .tds-carousel-track-a51b15db {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    height: auto;
    min-height: auto;
}

.tds-editor-preview-mode .tds-slide-a51b15db {
    position: relative;
    transform: none !important;
    opacity: 1 !important;
}

.tds-editor-preview-mode .tds-overlay-tags-a51b15db {
    opacity: 1;
    transform: none;
}
