.posts-list {
    transition: opacity 0.2s ease;
}

.posts-list:not(.js-ready) {
    opacity: 0;
}

/* POSTS SECTION */
.blog-posts-section {
    padding-bottom: 2rem;
}

.dividerZigZag {
    height: 10px;
    background: repeating-linear-gradient(45deg, #a0a0a0 0, #a0a0a0 2px, transparent 2px, transparent 4px);
    margin: 20px 0;
}

/* SEARCH */
.search-container {
    position: relative;
    margin-bottom: 25px;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}

.search-input {
    width: 100%;
    padding: 14px 18px 14px 42px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 15px;
    background-color: #f7f7f7;
    outline: none;
}

.search-input:focus {
    border-color: #ff6600;
    background-color: #fff;
}

/* POSTS */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.post-item-horizontal {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.post-item-horizontal:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.post-info {
    flex: 1;
}

.post-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.post-date {
    margin-left: 8px;
    font-size: 0.85rem;
    color: #777;
}

.post-description {
    font-size: 0.95rem;
    color: #555;
    margin-top: 6px;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* IMAGE */
.post-image-wrapper {
    width: 140px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    background: #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fallback-icon {
    font-size: 0.8rem;
    color: #aaa;
    flex-direction: column;
    align-items: center;
}

/* PAGINATION */
.pagination-container {
    margin-top: 40px;
    display: none;
    justify-content: center;
}

/* Wrapper */
.oc-pagination {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Buttons */
.oc-page-btn {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    background: #fff;
    color: #333;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Hover */
.oc-page-btn:hover:not(.disabled):not(.active) {
    background: #f5f5f5;
    border-color: #ccc;
}

/* Active */
.oc-page-btn.active {
    background: #ff6600;
    border-color: #ff6600;
    color: #fff;
}

/* Disabled */
.oc-page-btn.disabled {
    background: #f9f9f9;
    color: #ccc;
    cursor: not-allowed;
    pointer-events: none;
}


/* DARK MODE */
body.theme-dark .search-input {
    background-color: var(--card-surface, #1e293b);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--oc-title, #f8fafc);
}

body.theme-dark .search-input:focus {
    background-color: var(--card-surface, #1e293b);
    border-color: #ff6600;
}

body.theme-dark .post-item-horizontal {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

body.theme-dark .post-title {
    color: var(--oc-title, #f8fafc);
}

body.theme-dark .post-date {
    color: #64748b;
}

body.theme-dark .post-description {
    color: #94a3b8;
}

body.theme-dark .post-image-wrapper {
    background-color: #1a2332;
}

body.theme-dark .fallback-icon {
    color: #475569;
}

body.theme-dark .oc-page-btn {
    background-color: var(--card-surface, #1e293b);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--oc-title, #f8fafc);
}

body.theme-dark .oc-page-btn:hover:not(.disabled):not(.active) {
    background-color: #334155;
}

body.theme-dark .oc-page-btn.active {
    background-color: #ff6600;
    border-color: #ff6600;
}

body.theme-dark .oc-page-btn.disabled {
    background-color: rgba(255, 255, 255, 0.03);
    color: #475569;
}