.vi_left img {
    width: 215px;
    height: 160px;
    border-radius: 10px;
    transition: 0.3s;
}

.vi_left img:hover {
    transform: scale(1.03);
    z-index: 1;
}

.main-content-wrapper {
    display: flex;
    gap: 20px;
    width: 100%;
}

.view_main {
    border-radius: 3px;
    padding: 15px;
    width: 70%;
}

.sidebar-content {
    width: 30%;
    padding: 15px;
}

.list-view .view_item {
    margin: 10px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
}

.list-view .view_item:last-child {
    margin-bottom: 0;
}

.list-view .view_item .vi_left {
    margin-right: 25px;
}

.view_item .title {
    font-weight: 600;
}

.view_item .content-text {
    margin: 5px 0;
    font-size: 14px;
    line-height: 22px;
    font-weight: 200;
}

.view_item .content-author {
    color: #eda720;
    font-weight: 500;
    text-decoration: none;
}

.view_item .content-author:hover {
    color: #2c2b51;
    text-decoration: underline;
}

.view_item .reading-time {
    color: #888;
    font-size: 13px;
}

.view_item .content-excerpt {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    margin-top: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.list-title:hover {
    color: rgba(237, 167, 32, 1);
    cursor: pointer;
}

.list-category {
    font-size: 0.75rem;
    /* Adjust font size to match h6 */
    font-weight: normal;
    /* Adjust weight if necessary */
    margin-bottom: 5px;
    /* Adjust margin to match the original */
    text-transform: uppercase;
    /* Ensure the text-transform remains the same */
    color: #eda720;
    /* Preserve the color */
}

.list-category:hover {
    color: rgba(44, 43, 81, 1);
    cursor: pointer;
}

/* Mobile version */
@media screen and (max-width: 768px) {

    .main-content-wrapper {
        flex-direction: column;
    }

    .view_main,
    .sidebar-content {
        width: 100%;
        /* Set the maximum width to 100% of the viewport */
    }

    .view_item img {
        width: 160px;
        height: 120px;
        border-radius: 10px;
    }

    .list-view .view_item {
        margin: 0;
        padding: 0;
        display: flex;
        align-items: center;
    }

    .instagram-section {
        display: none;
    }
}

/* AJAX Pagination Styles */
#loading-spinner {
    margin: 20px 0;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Smooth transitions */
#posts-container {
    transition: opacity 0.3s ease-in-out;
}

/* Enhanced pagination */
.pagination {
    margin-top: 30px;
}

.pagination .page-link {
    color: #eda720;
    border: 1px solid #eda720;
    margin: 0 2px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background-color: #eda720;
    color: white;
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background-color: #eda720;
    border-color: #eda720;
    color: white;
}

/* Loading animation for posts */
.posts-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Fade in animation */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced view item transitions */
.view_item {
    transition: all 0.3s ease;
    border-radius: 6px;
    padding: 8px;
}

.view_item:hover {
    background-color: rgba(237, 167, 32, 0.05);
}

/* Loading state for pagination */
.pagination.loading {
    opacity: 0.6;
    pointer-events: none;
}
/* Sidebar styles */
.sidebar-widget {
    margin-bottom: 28px;
}

.sidebar-heading {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #eda720;
    border-bottom: 2px solid #eda720;
    padding-bottom: 6px;
    margin-bottom: 12px;
}

.sidebar-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-category-list li {
    border-bottom: 1px solid #eee;
}

.sidebar-category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    font-size: 14px;
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

.sidebar-category-link:hover {
    color: #eda720;
}

.sidebar-count {
    background: #f0f0f0;
    border-radius: 10px;
    padding: 1px 7px;
    font-size: 12px;
    color: #666;
}

.sidebar-popular-item {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.sidebar-popular-item:last-child {
    border-bottom: none;
}

.sidebar-popular-link {
    display: block;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

.sidebar-popular-link:hover {
    color: #eda720;
}

.sidebar-popular-meta {
    font-size: 12px;
    color: #888;
    margin: 3px 0 0;
}

.sidebar-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.sidebar-tag {
    display: inline-block;
    padding: 3px 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 12px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.sidebar-tag:hover {
    background: #eda720;
    color: #fff;
    border-color: #eda720;
}

/* ─── Posts page search bar ─────────────────────────── */
.posts-search-bar {
    margin-bottom: 20px;
    padding: 0 10px;
}

.posts-search-input-wrap {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    width: 100%;
    transition: border-color 0.2s;
}

.posts-search-input-wrap:focus-within {
    border-color: #eda720;
}

.posts-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 9px 14px;
    font-size: 14px;
    background: transparent;
}

.posts-search-btn {
    background: #eda720;
    border: none;
    padding: 9px 14px;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.posts-search-btn:hover {
    background: #d4941a;
}

@media screen and (max-width: 768px) {
    .posts-search-bar {
        padding: 0;
    }

    .posts-search-input-wrap {
        width: 100%;
    }
}
