/* Post List Widget RTL Styles */
.sqr-post-list {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 30px;
    position: relative;
    direction: rtl;
}

.sqr-post-list .sqr-item {
    gap: 15px;
    width: 100%;
}

.sqr-post-list .sqr-title {
    font-size: clamp(14px, 1.5vw, 18px);
    font-weight: 700;
    margin-bottom: 5px;
    margin-top: 0;
    text-align: right;
}

.sqr-post-list .sqr-title a {
    color: #444;
    text-decoration: none;
}

.sqr-post-list .sqr-title a:hover {
    color: #000;
}

.sqr-post-list .sqr-image {
    height: 100%;
}

.sqr-post-list .sqr-image img {
    width: 80px;
    min-width: 80px;
    height: 100%;
    object-fit: cover;
}

.sqr-post-list .sqr-list-icon {
    display: inline-flex;
    flex: none;
    transition: all 0.3s ease;
}

.sqr-post-list .sqr-list-icon i,
.sqr-post-list .sqr-list-icon svg {
    width: 1.2em;
    height: 1.2em;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.sqr-post-list .sqr-excerpt {
    margin-bottom: 10px;
}

.sqr-post-list .sqr-content {
    flex: 1;
    min-width: 0;
}

.sqr-post-list .sqr-read-more {
    margin-left: 10px;
    margin-right: 0;
    font-weight: bolder;
    padding-left: 0;
    padding-right: 0;
    display: inline-block;
}

.sqr-post-list .sqr-meta {
    margin-bottom: 0px;
    margin-top: 0;
    color: #999;
    display: inline-flex;
}

.sqr-post-list .sqr-meta * {
    font-size: 13px;
    font-weight: 400;
}

.sqr-post-list .sqr-meta a {
    text-decoration: none;
    color: inherit;
}

.sqr-post-list .sqr-meta a:hover {
    color: #1e87f0;
}

.sqr-has-divider--yes .sqr-item-wrap {
    border-bottom: 1px solid #ddd;
    padding-bottom: 15px;
    margin-bottom: -15px;
}

.sqr-has-divider--yes .sqr-item-wrap:last-child {
    border-bottom: 0;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* Filter Bar Header */
.sqr-post-list-header {
    padding: 15px 0;
    border-bottom: 2px solid #1e87f0;
    margin-bottom: 30px;
    gap: 20px;
    direction: rtl;
}

.sqr-post-list-header .sqr-title {
    color: #2b2d42;
    font-size: clamp(18px, 1.5vw, 24px);
    transition: all 0.3s ease;
    margin: 0;
    font-weight: 600;
    text-align: right;
}

.sqr-post-list-header .sqr-filter-wrap {
    gap: 15px;
}

.sqr-post-list-header .sqr-filter-list {
    display: flex;
}

.sqr-post-list-header .sqr-filter-list .sqr-option {
    text-decoration: none;
    text-transform: capitalize;
    font-size: clamp(13px, 1.2vw, 14px);
    color: #2b2d42;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.sqr-post-list-header .sqr-filter-list .sqr-option:hover {
    color: #1e87f0;
}

.sqr-post-list-header .sqr-filter-list.sqr-active .sqr-option {
    color: #1e87f0;
}

/* Loading Spinner */
.sqr-post-list div#sqr-loading-image {
    position: absolute;
    right: 0;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    background-image: radial-gradient(at center center, #FFFFFF 0%, #ffffffeb 100%);
}

.sqr-post-list .sqr-circle-border {
    width: 100px;
    height: 100px;
    padding: 3px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: #1e87f0;
    background: linear-gradient(0deg, rgba(63, 249, 220, 0.1) 33%, #1e87f0 100%);
    animation: sqr-spin 0.8s linear 0s infinite;
}

.sqr-post-list .sqr-circle-core {
    width: 100%;
    height: 100%;
    background-color: #fff;
    border-radius: 50%;
}

@keyframes sqr-spin {
    from {
        transform: rotate(0);
    }
    to {
        transform: rotate(359deg);
    }
}

/* Flex Utilities */
.sqr-flex {
    display: flex;
}

.sqr-flex-wrap {
    flex-wrap: wrap;
}

.sqr-flex-middle {
    align-items: center;
}

.sqr-flex-between {
    justify-content: space-between;
}

.sqr-position-relative {
    position: relative;
}

.sqr-position-cover {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

/* Meta Separator */
.sqr-subnav span:after {
    content: '';
    width: 3px;
    height: 3px;
    background: #999;
    border-radius: 50%;
    display: inline-block;
    vertical-align: middle;
    margin: 0 8px;
}

.sqr-subnav span:last-child:after {
    display: none;
}

/* Pagination */
.sqr-pagination-wrap {
    margin-top: 30px;
}

.sqr-pagination {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 5px;
    justify-content: center;
    direction: rtl;
}

.sqr-pagination li {
    margin: 0;
}

.sqr-pagination li a,
.sqr-pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    text-decoration: none;
    color: #333;
    background: #f5f5f5;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.sqr-pagination li a:hover {
    background: #1e87f0;
    color: #fff;
}

.sqr-pagination li.current span {
    background: #1e87f0;
    color: #fff;
}

.sqr-pagination li a svg {
    width: 14px;
    height: 14px;
    transform: scaleX(-1);
}