/* === Entire Shortcode Section === */
.csfw-category-section {
    border: 3px solid #0073aa !important;
    background-color: #fff !important;
    box-sizing: border-box !important;
    transition: box-shadow 0.3s ease !important;
    padding-bottom: 8px !important;
}

.csfw-section-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    text-align: center !important;
    background-color: #e74c3c !important;
    color: #ffffff !important;
    padding: 8px !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
}

/* If header is a link */
.csfw-section-title a {
    color: #ffffff !important;
    text-decoration: none !important;
}

.csfw-section-title a:hover {
    color: #ffffff !important;
    text-decoration: none !important;
}

/* === Posts Wrapper === */
.csfw-posts-wrapper {
    display: grid !important;
    grid-template-columns: repeat(var(--csfw-columns), 1fr) !important;
}

@media (max-width: 992px) {
    .csfw-posts-wrapper {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .csfw-posts-wrapper {
        grid-template-columns: 1fr !important;
    }
}

/* === Individual Post Items === */
.csfw-post-item {
    padding: 2px 6px 0px 6px !important;
    box-sizing: border-box !important;
    display: flex;
    align-items: center;
    gap: 5px;
}

.csfw-post-item::before {
    content: "👉";
}

.csfw-post-item:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08) !important;
    border-color: #0073aa !important;
}

.csfw-post-item img {
    width: 100% !important;
    height: auto !important;
    border-radius: 8px !important;
    margin-bottom: 12px !important;
}

.csfw-post-item h3 {
    font-size: 1em !important;
    font-weight: 600 !important;
    margin: 10px 0 5px !important;
}

.csfw-post-item h3 a {
    text-decoration: none !important;
    color: #222 !important;
}

.csfw-post-item h3 a:hover {
    color: #0073aa !important;
}

.csfw-post-item p {
    font-size: 0.95em !important;
    color: #555 !important;
    line-height: 1.5 !important;
}

/* === "More →" Button at Bottom === */
.csfw-more-wrapper {
    text-align: right !important;
    margin-top: 15px !important;
}

.csfw-more-btn {
    text-decoration: none !important;
    background: #0073aa !important;
    color: #fff !important;
    padding: 10px 18px !important;
    font-weight: 600 !important;
    transition: background 0.3s ease !important;
}

.csfw-more-btn:hover {
    background: #005f8d !important;
}

.csfw-pagination-wrapper {
    text-align: center;
    margin-top: 40px;
}

.csfw-pagination-wrapper .page-numbers {
    display: inline-block;
    margin: 0 4px;
    padding: 6px 10px;
    border: 1px solid #ddd;
    color: #333;
}

.csfw-pagination-wrapper .current {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.csfw-pagination-wrapper a:hover {
    background: #f5f5f5;
}