.rtcl .rtcl-listings.rtcl-card-modern.rtcl-grid-view .listing-item .rtcl-listing-meta-data {
    background: #eef1f4 !important;
    font-size: 12px !important;
    border-radius: 4px !important;
}

/* استایل برای آیتم‌های داخل لیست */
ul.rtcl-listing-meta-data li {
    font-size: 12px !important;
    margin-bottom: 1px !important; /* فاصله بین هر ردیف */
    align-items: center !important;
}



.rtcl-stories-container {
    position: sticky;
    top: 0; /* فاصله از بالای صفحه هنگام اسکرول (اگر منوی سایتتان ثابت است، این عدد را مثلاً به 70px یا 80px تغییر دهید تا زیر منو نرود) */
    z-index: 99; /* بالاتر از سایر المان‌های صفحه قرار گیرد تا روی آن‌ها بیفتد */
    background-color: #ffffff; /* رنگ پس‌زمینه برای اینکه متن‌های زیرین از پشت استوری‌ها دیده نشوند */
    padding: 2px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03); /* سایه ملایم برای زیبایی هنگام چسبیدن */
}



.rtcl-stories-scroll {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding: 0 10px;
}

.rtcl-story-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
    flex-shrink: 0;
    text-align: center;
}

.rtcl-story-link-wrap {
    text-decoration: none !important;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* حلقه گرادیان اینستاگرامی دور عکس */
.rtcl-story-ring {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.2s ease;
}

.rtcl-story-ring img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #fff;
    background-color: #f7f7f7;
}

/* افکت هاور */
.rtcl-story-item:hover .rtcl-story-ring {
    transform: scale(1.05);
}

/* آیکون آتش برای پین شده‌ها */
.rtcl-story-flame {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: #fff;
    border-radius: 50%;
    font-size: 12px;
    padding: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* ستاره‌ها */
.rtcl-story-stars {
    margin-top: 4px;
    font-size: 10px;
    color: #f59e0b;
    line-height: 1;
}

/* عنوان زیر استوری */
.rtcl-story-title {
    font-size: 11px;
    color: #333;
    margin-top: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

/* متا (بازدید و کلیک) */
.rtcl-story-meta {
    font-size: 9px;
    color: #777;
    display: flex;
    gap: 4px;
    margin-top: 2px;
}

/* حالت انقضا: فقط آیتم‌هایی که کلاس is-expired دارند کم‌رنگ می‌شوند */
.rtcl-story-item.is-expired .rtcl-story-ring {
    background: #ccc !important;
}

.rtcl-story-item.is-expired img {
    filter: grayscale(100%);
    opacity: 0.6;
}

.rtcl-story-item.is-expired .rtcl-story-title,
.rtcl-story-item.is-expired .rtcl-story-meta {
    opacity: 0.6;
}


/* ==========================================================================
   Classified Listing Stories Widget - Instagram Style (v1.9.5)
   ========================================================================== */

.rtcl-stories-container {
    width: 100%;
    margin: 0;
}

.rtcl-stories-scroll {
    display: flex;
    flex-wrap: nowrap;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 4px 2px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.rtcl-stories-scroll::-webkit-scrollbar { height: 6px; }
.rtcl-stories-scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, .18);
    border-radius: 99px;
}

.rtcl-story-item {
    flex: 0 0 auto;
    width: 96px;
    text-align: center;
    scroll-snap-align: start;
    transition: opacity .3s ease, filter .3s ease;
}

/* زوم نرم با هاور */
.rtcl-story-link-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: inherit;
    transition: transform .25s ease;
    will-change: transform;
}

.rtcl-story-link-wrap:hover,
.rtcl-story-link-wrap:focus-visible {
    transform: scale(1.06);
}

.rtcl-story-link-wrap:active {
    transform: scale(0.98);
}

/* حلقه گرادیانی */
.rtcl-story-ring {
    position: relative;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #f9ce34, #ee2a7b, #6228d7);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .10);
}

.rtcl-story-ring img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 3px solid #fff;
    background: #f2f2f2;
}

/* استوری منقضی‌شده: کم‌رنگ و خاکستری */
.rtcl-story-item.is-expired {
    opacity: .45;
    filter: grayscale(.85);
}

.rtcl-story-item.is-expired .rtcl-story-ring {
    background: linear-gradient(135deg, #cfcfcf, #9e9e9e);
}

.rtcl-story-item.is-expired:hover {
    opacity: .75;
}

/* نشان سنجاق */
.rtcl-story-flame {
    position: absolute;
    bottom: -2px;
    left: -2px;
    font-size: 14px;
    background: #fff;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
}

/* ستاره‌ها */
.rtcl-story-stars {
    display: flex;
    justify-content: center;
    gap: 1px;
    line-height: 1;
    font-size: 11px;
    color: #f5b301;
}

.rtcl-star { display: inline-block; }

/* عنوان / کپشن */
.rtcl-story-title {
    display: block;
    width: 82px;
    margin: 4px auto 0 auto;
    font-size: 11px;
    font-weight: 500;
    color: #262626;
    text-align: center;
    line-height: 1.25;
    
    /* تنظیم برای نمایش تا ۳ خط */
    display: -webkit-box;
    -webkit-line-clamp: 3; /* تعداد خطوط مجاز: ۳ خط */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal !important;
    word-break: break-word;
}


/* متادیتا: بازدید و کلیک */
.rtcl-story-meta {
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    font-size: 10.5px;
    color: #888;
}

.rtcl-story-views,
.rtcl-story-clicks {
    white-space: nowrap;
}

/* موبایل */
@media (max-width: 480px) {
    .rtcl-story-item { width: 82px; }
    .rtcl-story-ring { width: 72px; height: 72px; }
    .rtcl-story-title { max-width: 82px; font-size: 11px; }
    .rtcl-stories-scroll { gap: 10px; }
}

/* دسترسی‌پذیری / کاهش حرکت */
@media (prefers-reduced-motion: reduce) {
    .rtcl-story-link-wrap { transition: none; }
    .rtcl-story-link-wrap:hover { transform: none; }
}
