/* سکشن کلی */
.trcs-wrapper {
    margin: 3rem 0;
    font-family: inherit;
    direction: rtl;
}

.trcs-inner {
    background: #FFD23F;
    border-radius: 32px;
    padding: 2rem 2.5rem;
    position: relative;
    overflow: hidden;
}

/* تیتر و توضیح */
.trcs-header {
    margin-bottom: 1.5rem;
}

.trcs-title {
    margin: 0 0 .5rem;
    color: #540D6E;
    font-size: 1.4rem;
    font-weight: 700;
}

.trcs-subtitle {
    margin: 0;
    color: #540D6E;
    opacity: 0.85;
    font-size: 0.95rem;
}

/* اسلایدر */
.trcs-slider {
    display: flex;
    align-items: center;
    gap: 1rem;
    direction: ltr; /* محاسبات اسلاید */
}

.trcs-viewport {
    flex: 1 1 auto;
    overflow: hidden;
}

.trcs-track {
    display: flex;
    will-change: transform;
    transition: transform 0.45s ease;
}

/* پیش‌فرض دسکتاپ: 3 کارت */
.trcs-slide {
    flex: 0 0 50%;
    padding: 0 .5rem;
    box-sizing: border-box;
}

/* کارت دوره */
.trcs-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 24px;
    text-decoration: none;
    height: 100%;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.trcs-thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.trcs-content {
    padding: 1rem 1.1rem 1.1rem;
    direction: rtl;
}

.trcs-course-title {
    margin: 0 0 .75rem;
    font-size: 1.05rem;
    color: #540D6E;
    font-weight: 700;
    line-height: 1.6;
}

/* CTA */
.trcs-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    background: #EE4266;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    width: fit-content;
}

/* فلش‌ها */
.trcs-nav {
    background: #540D6E;
    border-radius: 999px;
    border: none;
    width: 2.4rem;
    height: 2.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #FFD23F;
    font-size: 1.4rem;
    cursor: pointer;
    flex: 0 0 auto;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.trcs-nav:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Tablet: 2 کارت */
@media (max-width: 1024px) {
    .trcs-inner {
        padding: 1.75rem 1.5rem;
    }
    .trcs-slide {
        flex: 0 0 50%;
    }
}

/* Mobile: 1 کارت */
@media (max-width: 640px) {
    .trcs-inner {
        padding: 1.25rem 1rem;
        border-radius: 24px;
    }
    .trcs-slide {
        flex: 0 0 100%;
    }
    .trcs-thumb img {
        height: 170px;
    }
}
