
.quick-cats-container {

    background: #fff;
    padding: 5px;
    border-radius: 5px;
	margin:0 0 10px 0;
}

.quick-cats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* دو ستون مساوی */
    gap: 5px; /* فاصله خیلی کم بین آیتم‌ها مطابق عکس */
}

.cat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f5f5f5; /* رنگ خاکستری ملایم پس‌زمینه */
    padding:5px 7px 5px 5px;
    text-decoration: none;
    color: #444;
    font-size: 13px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.cat-item:hover {
    background-color: #eeeeee;
    color: #ff4b2b; /* تغییر رنگ متن هنگام هاور */
}

.cat-name {
    font-weight: 500;
}

.cat-icon {
    font-size: 18px;
    color: #888;
    filter: grayscale(1); /* خاکستری کردن آیکون‌ها مشابه عکس */
    opacity: 0.7;
}

.cat-item:hover .cat-icon {
    filter: grayscale(0);
    opacity: 1;
}




.latest-posts-widget {
   margin:5px 0 0 0;
    background: #fff;
    border-radius: 5px;
    border: 1px solid #eee;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    direction: rtl; /* راست‌چین بودن کل ویجت */
    overflow: hidden;
}

.widget-header {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.widget-header h3 {
    margin: 0;
    font-size: 18px;
    color: #444;
}

.posts-list {
    padding: 0 15px;
}

.post-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    text-decoration: none;
    border-bottom: 1px dashed #e0e0e0;
    transition: 0.3s;
}

.post-item:last-child {
    border-bottom: none;
}

.post-image {
    width: 65px;
    height: 65px;
    flex-shrink: 0;
    margin-left: 15px; /* ایجاد فاصله بین عکس (سمت راست) و متن */
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.post-titlez {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    text-align: right;
    flex: 1;
}

.post-item:hover .post-title {
    color: #ff4b2b;
}



.sidebar-ads {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin:10px 0;

}

.ad-item {
    position: relative;
    border-radius: 5px;
    overflow: hidden;
    transition: 0.3s;
}

.ad-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: 0.3s;
}

.ad-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* برچسب کلمه تبلیغات */
.ad-label {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
}

/* ردیف دو تایی */
.ad-row {
    display: flex;
    gap: 10px;
}

.half-banner {
    flex: 1;
}

/* استایل تبلیغ متنی */
.text-ad {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: #fff;
    padding: 20px;
    text-align: center;
}

.ad-badge {
    background: #ff4b2b;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 20px;
}

.text-ad h4 {
    margin: 15px 0 10px;
    font-size: 16px;
}

.text-ad p {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 20px;
}

.ad-btn {
    display: inline-block;
    background: #fff;
    color: #6e8efb;
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 13px;
    transition: 0.3s;
}

.ad-btn:hover {
    background: #f0f0f0;
    transform: scale(1.05);
}


/* تنظیمات کلی باکس‌های تبلیغاتی */
.sb-ad-box {
    border-radius: 5px;
    margin-bottom: 5px;
    padding: 10px;
    position: relative;
    transition: 0.3s;
    overflow: hidden;
}

/* ۱. استایل مینیمال */
.sb-ad-minimal {
    background: #fff;
    border: 2px dashed #e0e0e0;
}
.sb-ad-minimal:hover { border-color: #ff4b2b; }
.sb-ad-tag {
    font-size: 10px;
    color: #999;
    margin-bottom: 8px;
}
.sb-ad-minimal .sb-ad-title { font-size: 14px; color: #333; margin: 0 0 5px; }
.sb-ad-minimal .sb-ad-desc { font-size: 12px; color: #777; margin: 0; }

/* ۲. استایل تیره */
.sb-ad-dark {
    background: #1a1a1a;
    color: #fff;
}
.sb-ad-status {
    background: #ffc107;
    color: #000;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
}
.sb-ad-dark .sb-ad-title { font-size: 15px; margin: 12px 0; }
.sb-ad-footer { display: flex; justify-content: space-between; align-items: center; }
.sb-ad-action {
    background: #fff;
    color: #1a1a1a;
    padding: 5px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
}

/* ۳. استایل با تصویر */
.sb-ad-thumb {
    background: #f8f9fa;
    border: 1px solid #eee;
}
.sb-ad-row { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.sb-ad-img img { width: 50px; height: 50px; border-radius: 8px; object-fit: cover; }
.sb-ad-info .sb-ad-title { font-size: 13px; margin: 0 0 3px; color: #222; }
.sb-ad-info .sb-ad-desc { font-size: 11px; color: #666; margin: 0; }
.sb-ad-button {
    display: block;
    text-align: center;
    background: #ff4b2b;
    color: #fff;
    text-decoration: none;
    padding: 8px;
    border-radius: 5px;
    font-size: 12px;
}



/* ۵. استایل نواری متحرک */
.sb-ad-stripe {
    background: linear-gradient(90deg, #ff4b2b, #ff9068);
    padding: 10px 15px;
    border-radius: 5px;
    text-align: center;
}
.sb-ad-full-link { text-decoration: none; color: #fff; display: flex; justify-content: space-between; align-items: center; }
.sb-ad-text { font-size: 13px; font-weight: bold; }
.sb-ad-stripe:hover { filter: hue-rotate(15deg); transform: scale(1.02); }

/* ۶. استایل شیشه‌ای (Glassmorphism) */
.sb-ad-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-image: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 100%);
}
.sb-ad-app-header { display: flex; align-items: center; gap: 10px; font-weight: bold; font-size: 13px; color: #444; }
.sb-ad-app-header img { border-radius: 10px; }
.sb-ad-quote { font-style: italic; font-size: 12px; color: #666; margin: 10px 0; }
.sb-ad-stars { color: #f1c40f; font-size: 12px; margin-bottom: 10px; }
.sb-ad-download {
    display: block;
    background: #2ecc71;
    color: #fff;
    text-align: center;
    padding: 8px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 12px;
font-family: Vazir, Tahoma, "DejaVu Sans", helvetica, arial, freesans, sans-serif;
}








.sidebar-widget {
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #eee;
    direction: rtl;
}

.widget-title {
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    position: relative;
}

.widget-title h3 {
    font-size: 16px;
    color: #333;
    margin: 0;
}

.widget-title::after {
    content: "";
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 40px;
    height: 2px;
    background: #ff4b2b; /* رنگ هماهنگ با بقیه بخش‌ها */
}

.recent-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-posts-list li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee;
}

.recent-posts-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-post-item {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}

.post-thumb1 {
    flex-shrink: 0;
}

.post-thumb img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
}

.post-info1 {
    flex-grow: 1;
}

.post-info1 .post-title1 {
    font-size: 13px;
    color: #444;
    line-height: 1.5;
    margin: 0 0 5px 0;
    transition: 0.3s;
    /* محدود کردن به دو خط */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recent-post-item:hover .post-title {
    color: #ff4b2b;
}

.post-date1 {
    font-size: 11px;
    color: #aaa;
}



.sb-widget {
    background: #fff;
    border-radius: 5px;
    padding: 5px;
    margin-bottom: 10px;
    border: 1px solid #eee;

}

.sb-widget-header {
    margin-bottom: 10px;
    border-bottom: 2px solid #f9f9f9;
    padding-bottom: 10px;
}

.sb-widget-title {
    font-size: 16px;
    color: #333;
    margin: 0;
    position: relative;
    padding-right: 15px;
}

/* خط تزیینی کنار عنوان */
.sb-widget-title::before {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    background: #ff4b2b;
    border-radius: 2px;
}

.sb-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sb-category-list li {
    border-bottom: 1px solid #f5f5f5;
}

.sb-category-list li:last-child {
    border-bottom: none;
}

.sb-category-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sb-cat-name {
    font-size: 14px;
    color: #555;
    transition: 0.3s;
}

.sb-cat-count {
    background: #f0f0f0;
    color: #888;
    font-size: 11px;
    padding: 2px 10px;
    border-radius: 5px;
    transition: 0.3s;
}

/* افکت هاور جذاب */
.sb-category-list li a:hover {
    padding-right: 10px; /* کمی به جلو حرکت می‌کند */
}

.sb-category-list li a:hover .sb-cat-name {
    color: #ff4b2b;
}

.sb-category-list li a:hover .sb-cat-count {
    background: #ff4b2b;
    color: #fff;
}

.sb-sub-category-list {
 
    padding-right: 5px;
    border-right: 0px solid #eee; /* یک خط ظریف در کنار زیردسته‌ها */
    margin-bottom: 10px;
}
.sb-sub-category-list li {
    font-size: 0.9em; /* زیردسته‌ها کمی کوچک‌تر */
    padding: 3px 0;
}





.sb-search-widget {
    background: #fff;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #eee;
}

.sb-search-group {
    display: flex;
    position: relative;
    background: #f9f9f9;
    border: 1px solid #ececec;
    border-radius: 10px;
    padding: 5px;
    transition: all 0.3s ease;
}

/* وقتی کاربر روی باکس کلیک می‌کنه، حاشیه رنگی بشه */
.sb-search-group:focus-within {
    border-color: #ff4b2b;
    background: #fff;
    box-shadow: 0 4px 10px rgba(255, 75, 43, 0.05);
}

.sb-search-input {
    flex-grow: 1;
    border: none;
    background: transparent;
    padding: 10px 15px;
font-family: Vazir, Tahoma, "DejaVu Sans", helvetica, arial, freesans, sans-serif;
    font-size: 13px;
    color: #555;
    outline: none;
    width: 100%;
}

.sb-search-btn {
    background: #ff4b2b;
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
}

.sb-search-btn:hover {
    background: #e03a1d;
    transform: scale(0.95);
}

.sb-search-btn svg {
    stroke: #fff;
}



/* هماهنگ‌سازی کلاس‌های وردپرس با استایل ما */
.widget_recent_entries, .widget_categories, .widget_archive {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid #eee;
    direction: rtl;
}

.widget-title, .widgettitle {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
    border-bottom: 2px solid #f9f9f9;
    padding-bottom: 10px;
    position: relative;
    padding-right: 15px;
}

/* اعمال نوار قرمز کنار تیتر برای وردپرس */
.widgettitle::before, .widget-title::before {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    background: #ff4b2b;
    border-radius: 2px;
}