:root {
    --wsp-gap: 24px;
    --wsp-radius: 4px;
    --wsp-primary: #111111;
    --wsp-accent: #222222;
    --wsp-text: #555555;
    --wsp-border: #e6e6e6;
}

.wsp-posts-wrapper {
    width: 100%;
    margin: 20px 0;
    box-sizing: border-box;
}

.wsp-posts-container {
    display: grid;
    gap: var(--wsp-gap);
    grid-template-columns: 1fr;
    box-sizing: border-box;
}

/* Responsive Grid Columns */
@media (min-width: 600px) {
    .wsp-cols-2 .wsp-posts-container,
    .wsp-cols-3 .wsp-posts-container,
    .wsp-cols-4 .wsp-posts-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .wsp-cols-2 .wsp-posts-container { grid-template-columns: repeat(2, 1fr); }
    .wsp-cols-3 .wsp-posts-container { grid-template-columns: repeat(3, 1fr); }
    .wsp-cols-4 .wsp-posts-container { grid-template-columns: repeat(4, 1fr); }
}

/* Card Base */
.wsp-post-card {
    display: flex;
    flex-direction: column;
    background: #ffffff00 !important;
    border-radius: var(--wsp-radius);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-sizing: border-box;
}

.wsp-card-media {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.wsp-card-media img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.wsp-post-card:hover .wsp-card-media img {
    transform: scale(1.03);
}

.wsp-category-badge {
    display: inline-block;
    background: #000000;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 2px;
    margin-bottom: 8px;
}

.wsp-badge-floating {
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 2;
}

.wsp-card-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;	
	background-color:#10151f !important;
}

.wsp-card-title {
    margin: 0 0 8px 0;
    font-size: 1.15rem;
    line-height: 1.35;
    font-weight: 700;
	color:#fff !important;
}

.wsp-card-title a {
    color: #fff !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.wsp-card-title a:hover {
    color: #666;
}

.wsp-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #888888;
    margin-bottom: 10px;
}

.wsp-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.wsp-card-excerpt {
    font-size: 14px;
    line-height: 1.5;
    color: var(--wsp-text);
    margin-bottom: 15px;
}

.wsp-card-excerpt p {
    margin: 0;
}

.wsp-readmore-link {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid #111;
    color: #111;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.wsp-readmore-link:hover {
    background: #111;
    color: #fff;
}

/* ------------------------------------------------
   Design Sample 2: Overlay Card Style
------------------------------------------------ */
.wsp-style-grid-overlay .wsp-post-card {
    position: relative;
    min-height: 320px;
    border-radius: 4px;
}

.wsp-style-grid-overlay .wsp-card-media {
    position: absolute;
    inset: 0;
    height: 100%;
}

.wsp-style-grid-overlay .wsp-card-media img {
    height: 100%;
}

.wsp-style-grid-overlay .wsp-card-body {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 20%, rgba(0,0,0,0.85) 100%);
    color: #fff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 2;
}

.wsp-style-grid-overlay .wsp-card-title a {
    color: #fff;
}

.wsp-style-grid-overlay .wsp-card-meta {
    color: #ddd;
}

.wsp-style-grid-overlay .wsp-card-excerpt {
    color: #ccc;
}

/* ------------------------------------------------
   Design Sample 3: Horizontal List View
------------------------------------------------ */
.wsp-style-list-view .wsp-posts-container {
    grid-template-columns: 1fr !important;
}

.wsp-style-list-view .wsp-post-card {
    flex-direction: row;
    gap: 20px;
    border-bottom: 1px solid var(--wsp-border);
    padding-bottom: 20px;
    border-radius: 0;
}

.wsp-style-list-view .wsp-card-media {
    width: 320px;
    flex-shrink: 0;
}

.wsp-style-list-view .wsp-card-media img {
    height: 190px;
}

.wsp-style-list-view .wsp-card-body {
    padding: 0;
    justify-content: center;
}

@media (max-width: 640px) {
    .wsp-style-list-view .wsp-post-card {
        flex-direction: column;
    }
    .wsp-style-list-view .wsp-card-media {
        width: 100%;
    }
}

/* ------------------------------------------------
   Design Sample 4: Mixed Featured Grid
------------------------------------------------ */
@media (min-width: 900px) {
    .wsp-style-mixed-grid .wsp-posts-container {
        grid-template-columns: repeat(6, 1fr);
    }
    .wsp-style-mixed-grid .wsp-featured-large {
        grid-column: span 3;
    }
    .wsp-style-mixed-grid .wsp-featured-large .wsp-card-media img {
        height: 290px;
    }
    .wsp-style-mixed-grid .wsp-post-card:not(.wsp-featured-large) {
        grid-column: span 2;
    }
    .wsp-style-mixed-grid .wsp-post-card:not(.wsp-featured-large) .wsp-card-media img {
        height: 180px;
    }
}

/* ------------------------------------------------
   AJAX Load More Button
------------------------------------------------ */
.wsp-loadmore-wrapper {
    text-align: center;
    margin-top: 30px;
}

.wsp-loadmore-btn {
    background: #111;
    color: #fff;
    border: none;
    padding: 10px 24px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 2px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s ease;
}

.wsp-loadmore-btn:hover {
    background: #333;
}

.wsp-btn-loader {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: wsp-spin 0.6s linear infinite;
}

@keyframes wsp-spin {
    to { transform: rotate(360deg); }
}