/* ====== PostsNT Plugin Styles ====== */

/* ===== Global Container ===== */
.postsnt-post-grid-1,
.postsnt-post-grid-2,
.postsnt-post-grid-3,
.postsnt-post-grid-4,
.postsnt-post-grid-5,
.postsnt-post-grid-6,
.postsnt-post-grid-7,
.postsnt-post-list-1,
.postsnt-post-list-2,
.postsnt-post-list-3,
.postsnt-post-list-4,
.postsnt-post-slider-1,
.postsnt-post-slider-2,
.postsnt-post-module-1,
.postsnt-post-module-2 {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* ===== Grid Items ===== */
.postsnt-post-grid-1 .postsnt-grid-item,
.postsnt-post-grid-2 .postsnt-grid-item,
.postsnt-post-grid-3 .postsnt-grid-item,
.postsnt-post-grid-4 .postsnt-grid-item,
.postsnt-post-grid-5 .postsnt-grid-item,
.postsnt-post-grid-6 .postsnt-grid-item,
.postsnt-post-grid-7 .postsnt-grid-item {
    background: #fff;
    border: 1px solid #eee;
    overflow: hidden;
    position: relative;
    flex: 1 1 calc(33.333% - 20px); /* default 3 columns */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.postsnt-columns-4 .postsnt-grid-item {
    flex: 1 1 calc(25% - 20px);
}

.postsnt-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* ===== Thumbnail ===== */
.postsnt-thumb {
    position: relative;
    overflow: hidden;
}

.postsnt-thumb img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.postsnt-thumb.zoom-effect img {
    transition: transform 0.5s ease;
}

.postsnt-thumb.zoom-effect:hover img {
    transform: scale(1.05);
}

/* ===== Overlay for Grid Hover ===== */
.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease;
}

.postsnt-thumb:hover .overlay {
    opacity: 1;
    transform: translateY(0);
}

.animated-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

/* ===== Post Meta ===== */
.postsnt-meta {
    font-size: 13px;
    color: #ccc;
    margin-top: 5px;
}

.postsnt-meta span {
    margin-right: 10px;
}

/* ===== List Items ===== */
.postsnt-post-list-1 .postsnt-list-item,
.postsnt-post-list-2 .postsnt-list-item,
.postsnt-post-list-3 .postsnt-list-item,
.postsnt-post-list-4 .postsnt-list-item {
    display: flex;
    background: #fff;
    border: 1px solid #eee;
    padding: 15px;
    margin-bottom: 15px;
    transition: box-shadow 0.3s ease;
}

.postsnt-list-item:hover {
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.postsnt-list-item .postsnt-thumb {
    flex: 0 0 120px;
    margin-right: 15px;
}

.postsnt-list-item .postsnt-thumb img {
    width: 100%;
    height: auto;
}

.postsnt-list-item .postsnt-content {
    flex: 1;
}

/* ===== AJAX Load More Button ===== */
button[id^="postsnt-loadmore"] {
    display: block;
    margin: 30px auto;
    padding: 10px 25px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 15px;
    transition: background 0.3s ease;
}

button[id^="postsnt-loadmore"]:hover {
    background: #005177;
}

button[id^="postsnt-loadmore"]:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .postsnt-columns-3 .postsnt-grid-item,
    .postsnt-post-grid-1 .postsnt-grid-item,
    .postsnt-post-grid-2 .postsnt-grid-item,
    .postsnt-post-grid-3 .postsnt-grid-item,
    .postsnt-post-grid-4 .postsnt-grid-item,
    .postsnt-post-grid-5 .postsnt-grid-item,
    .postsnt-post-grid-6 .postsnt-grid-item,
    .postsnt-post-grid-7 .postsnt-grid-item {
        flex: 1 1 calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .postsnt-columns-3 .postsnt-grid-item,
    .postsnt-columns-4 .postsnt-grid-item,
    .postsnt-post-grid-1 .postsnt-grid-item,
    .postsnt-post-grid-2 .postsnt-grid-item,
    .postsnt-post-grid-3 .postsnt-grid-item,
    .postsnt-post-grid-4 .postsnt-grid-item,
    .postsnt-post-grid-5 .postsnt-grid-item,
    .postsnt-post-grid-6 .postsnt-grid-item,
    .postsnt-post-grid-7 .postsnt-grid-item {
        flex: 1 1 100%;
    }

    .postsnt-list-item {
        flex-direction: column;
    }

    .postsnt-list-item .postsnt-thumb {
        margin-bottom: 10px;
        width: 100%;
    }
}
