/* Special Posts Widget Styles */
.special-posts-widget {
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    direction: rtl;
}

/* Widget Header */
.widget-header {
    margin-bottom: 1.5rem;
    text-align: right;
}

/* Widget Title */
.special-posts-title {
    color: #1a202c;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

/* Title Line (below title) */
.title-line {
    width: 6rem;
    height: 0.25rem;
    background-color: #5a67d8;
}

/* Header Bottom Line (full width below title) */
.header-bottom-line {
    display: none;
    /* Removed as requested */
}

/* Post Items Container */
.special-posts-widget .space-y-4>*+* {
    margin-top: 1rem;
}

/* Post Item */
.post-item {
    background-color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.post-item:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

/* Post Link - Flexbox Layout */
.post-link {
    display: flex;
    flex-direction: row;
    /* Image on left, content on right */
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    text-decoration: none;
}

/* Image Section - RIGHT SIDE */
.post-image {
    flex-shrink: 0;
    width: 6rem;
    height: 6rem;
    border-radius: 0.75rem;
    overflow: hidden;
}

.image-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.post-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* Image Hover Effects */
.image-effect-zoom .post-thumbnail {
    transition: transform 0.3s ease;
}

.post-item:hover .image-effect-zoom .post-thumbnail {
    transform: scale(1.1);
}

.image-effect-grayscale .post-thumbnail {
    transition: filter 0.3s ease;
}

.post-item:hover .image-effect-grayscale .post-thumbnail {
    filter: grayscale(100%);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom right, #e0e7ff, #ede9fe);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-icon {
    width: 2.5rem;
    height: 2.5rem;
    color: #a5b4fc;
}

/* Content Section - LEFT SIDE */
.post-content {
    flex: 1 1 0%;
    text-align: right;
}

/* Category */
.post-category {
    color: #a0aec0;
    font-size: 0.875rem;
    font-weight: 500;
    display: block;
}

/* Post Title */
.post-title {
    color: #2d3748;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.625;
    margin: 0;
    transition: color 0.2s ease;
}

.post-item:hover .post-title {
    color: #5a67d8;
}

/* Responsive Design */
@media (max-width: 640px) {
    .special-posts-title {
        font-size: 1.25rem;
    }

    .post-item img,
    .post-item .bg-gradient-to-br {
        width: 5rem;
        height: 5rem;
    }

    .post-title {
        font-size: 0.9375rem;
    }

    .post-category {
        font-size: 0.8125rem;
    }
}

/* RTL Support */
[dir="rtl"] .special-posts-widget {
    direction: rtl;
}

[dir="ltr"] .special-posts-widget {
    direction: ltr;
}

[dir="ltr"] .special-posts-widget .flex-1 {
    text-align: left;
}

[dir="ltr"] .special-posts-widget .w-24 {
    margin-right: 0;
    margin-left: 1rem;
}