/* کانتینر اصلی ویجت */
.t-team-app-wrapper {
    position: relative;
    width: 100%;
    margin: 40px auto;
    font-family: inherit;
    direction: rtl;
    display: flex;
    align-items: center;
}

.t-team-app-wrapper :dir(ltr),
.t-team-app-wrapper [dir="ltr"] {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

.t-team-slider-track {
    display: flex;
    gap: 30px;
    padding: 20px 10px 40px 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    width: 100%;
    scrollbar-width: none; 
    -ms-overflow-style: none;
    justify-content: center; 
    cursor: grab;
}

.t-team-slider-track::-webkit-scrollbar { display: none; }
.t-team-slider-track.is-dragging { cursor: grabbing; scroll-behavior: auto; }
.t-team-slider-track.is-scrollable { justify-content: flex-start; }

.t-team-card-wrapper {
    position: relative;
    flex: 0 0 auto;
    width: 260px; 
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.t-team-card-wrapper:hover {
    transform: translateY(-10px);
}

.t-card-offset {
    position: absolute;
    bottom: -12px;
    left: 10%;
    width: 80%;
    height: 30px;
    border-radius: 16px;
    z-index: 1;
    opacity: 0.6;
    filter: blur(8px);
    transition: all 0.4s ease;
}

.t-team-card-wrapper:hover .t-card-offset {
    bottom: -18px;
    opacity: 0.8;
    filter: blur(12px);
    transform: scale(0.95);
}

/* خود کارت (که حالا می‌تونه تگ a هم باشه) */
.t-team-card {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    z-index: 2;
    border: 1px solid #f3f4f6;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    aspect-ratio: 3 / 4; 
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* جلوگیری از آبی شدن و خط‌دار شدن متن در حالت لینک */
    text-decoration: none !important;
    color: inherit;
    cursor: pointer;
}

.t-team-img-box {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}

.t-team-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s ease;
}

.t-team-card-wrapper:hover .t-team-img-box img {
    transform: scale(1.05);
}

.t-img-overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 60%;
    background: linear-gradient(to top, rgba(17, 24, 39, 0.95) 0%, rgba(17, 24, 39, 0.5) 50%, transparent 100%);
    z-index: 2;
}

.t-team-info {
    position: relative;
    z-index: 3;
    padding: 25px 20px;
    text-align: center;
}

.t-member-name {
    margin: 0 0 5px 0;
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 800;
    unicode-bidi: isolate;
}

.t-member-role {
    display: block;
    color: #e5e7eb;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    unicode-bidi: isolate;
}

/* دکمه‌های گلس‌مورفیسم اسکرول */
.t-team-nav {
    position: absolute; 
    top: 50%;
    transform: translateY(-50%);
    width: 44px; 
    height: 44px; 
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex; 
    align-items: center; 
    justify-content: center;
    cursor: pointer; 
    z-index: 10; 
    color: #111827; 
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.t-team-nav:hover { 
    background: #FFC107; 
    color: #fff; 
    border-color: #FFC107; 
    transform: translateY(-50%) scale(1.1); 
}

.t-nav-right { right: -22px; }
.t-nav-left { left: -22px; }

@media (max-width: 1024px) {
    .t-team-card-wrapper { width: 220px; }
    .t-nav-right { right: 10px; }
    .t-nav-left { left: 10px; }
}

@media (max-width: 480px) {
    .t-team-slider-track { padding: 20px 20px 40px 20px; justify-content: flex-start; }
    .t-team-card-wrapper { width: 240px; }
}