/* Custom Blog Layout Styles */
.cbl-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.cbl-archive-header {
    margin-bottom: 40px;
    text-align: center;
}

.cbl-archive-title {
    font-size: 2em;
    margin: 0 0 20px;
    color: #333;
}

.cbl-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.cbl-post-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.cbl-post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.cbl-post-thumbnail {
    position: relative;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    background: #f5f5f5;
}

.cbl-post-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cbl-post-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.cbl-post-title {
    font-size: 1.5em;
    margin: 0 0 10px;
    line-height: 1.3;
}

.cbl-post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cbl-post-title a:hover {
    color: #0073aa;
}

.cbl-post-meta {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 15px;
}

.cbl-post-meta a {
    color: #0073aa;
    text-decoration: none;
}

.cbl-post-meta a:hover {
    text-decoration: underline;
}

.cbl-post-excerpt {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #555;
    flex-grow: 1;
}

.cbl-read-more {
    display: inline-block;
    padding: 8px 20px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s ease;
    align-self: flex-start;
}

.cbl-read-more:hover {
    background: #005177;
    color: #fff;
}

.cbl-pagination {
    text-align: center;
    margin-top: 40px;
}
.cbl-pagination .page-numbers {
    display: flex;
    text-decoration: none;
}
.cbl-pagination .page-numbers{
border: 0px solid #ddd;
display: flex;
justify-content: center;
}

.cbl-pagination .page-numbers li{
    text-decoration: none;
    padding: 8px 12px;
    margin: 0 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    transition: all 0.2s ease;
    list-style-type: none;
    display: flex;
    text-decoration: none;
}

.cbl-pagination .page-numbers li:has(.current) {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.cbl-pagination .page-numbers li:hover:not(.current) {
    background: #f5f5f5;
    border-color: #bbb;
    color:#005177
}
.cbl-pagination .page-numbers li:hover{
    cursor: pointer;
}

.cbl-no-posts {
    text-align: center;
    padding: 40px;
    background: #f5f5f5;
    border-radius: 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cbl-posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .cbl-post-title {
        font-size: 1.3em;
    }
    
    .cbl-archive-title {
        font-size: 1.8em;
    }
}

@media (max-width: 480px) {
    .cbl-container {
        padding: 10px;
    }
    
    .cbl-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .cbl-post-title {
        font-size: 1.2em;
    }
    
    .cbl-archive-title {
        font-size: 1.6em;
    }
}
