/* Block Container */
.ie-post-block {
    padding: 20px 0;
}

/* Header */
.ie-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #337ab7;
    padding: 0 10px 0 0; /* Add padding to prevent clipping */
    width: 100%;
    box-sizing: border-box;
}

.ie-title {
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    color: #ffffff !important;
    background-color: #337ab7;
    padding: 6px 12px;
    margin: 0;
}

/* Category Filter */
.ie-filter {
    font-size: 14px;
    color: #777;
    display: flex
;
    gap: 12px;
    align-items: center;
    width: 100%;
    position: relative;
    justify-content: right;
}
.ie-filter-more {
    position: absolute;
    right: 0;
}
.ie-filter-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow: hidden;
}

.ie-filter-item {
    margin: 0 10px;
    white-space: nowrap;
}

.ie-filter-item {
    margin: 0 10px;
}
.ie-filter-link {
    color: #777;
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.ie-filter-link:hover {
    color: #337ab7;
}
.ie-filter-link.active {
    color: #337ab7;
    font-weight: bold;
}
.ie-filter-more {
    position: relative;
}

.ie-filter-more-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    color: #777;
    white-space: nowrap;
}

.ie-filter-more-toggle i {
    margin-left: 5px;
    font-size: 10px;
}

.ie-filter-more-toggle:hover {
    color: #337ab7;
}

.ie-filter-more-list {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 10px 0;
    list-style: none;
    margin: 0;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    min-width: 150px;
}

.ie-filter-more:hover .ie-filter-more-list {
    display: block;
}

.ie-filter-more-list .ie-filter-item {
    margin: 0;
}

.ie-filter-more-list .ie-filter-link {
    display: block;
    padding: 5px 20px;
	white-space: nowrap;
}


/* Posts */
.ie-posts, .ie-skeleton {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 20px;
}

.ie-post-item {
    flex: 0 0 calc(50% - 10px); /* Two columns, accounting for gap */
    display: flex;
    gap: 10px;
}

.ie-post-image {
    width: 35%;
    display: block;
}

.ie-post-image img {
    width: 100%;
    height: auto;
    display: block;
}

.ie-post-content {
    width: 65%;
    padding: 0;
}

.ie-post-title {
    margin: 0 0 5px;
    font-size: 14px;
    line-height: 1.2;
}

.ie-post-title a {
    color: #000;
    text-decoration: none;
}

.ie-post-title a:hover {
    color: #337ab7;
}

.ie-post-meta {
    font-size: 12px;
    color: #777;
    margin-bottom: 5px;
}

.ie-post-date {
    color: #777;
}

/* Pagination */
.ie-pagination {
    text-align: left;
    margin-top: 20px;
}

.ie-prev-page,
.ie-next-page {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    background-color: #337ab7;
    color: #fff;
    margin: 0 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    border-radius: 5px;
}

.ie-prev-page:hover,
.ie-next-page:hover {
    background-color: #337ab7;
    color: #fff;
}

.ie-prev-page.ie-page-disabled,
.ie-next-page.ie-page-disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.ie-prev-page:focus, .ie-next-page:focus {
    color: #fff;
}

/* Skeleton Loader */
.ie-posts.loading {
    opacity: 0.5;
}

.ie-skeleton-item {
    flex: 0 0 calc(50% - 10px);
    display: flex;
    gap: 10px;
}

.ie-skeleton-item::before {
    content: '';
    width: 35%;
    height: 100px;
    background: #e0e0e0;
    position: relative;
    overflow: hidden;
}

.ie-skeleton-item::after {
    content: '';
    width: 65%;
    height: 60px;
    background: #e0e0e0;
    position: relative;
    overflow: hidden;
}

.ie-skeleton-item::before::after,
.ie-skeleton-item::after::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .ie-posts {
        flex-direction: column;
    }

    .ie-post-large,
    .ie-post-small {
        flex: 1 1 100%;
		width: 100%;
    }
	.small-list-outer, .ie-skeleton-column{
		width: 100%;
	}

    .ie-filter-list {
        flex-wrap: wrap;
    }

    .ie-filter-item {
        margin: 5px 10px;
    }
}

@media (max-width: 360px) {
    .ie-filter-more-toggle span {
        display: none;
    }
}