/* Blog Index Styles */
.blog-container {
    background-color: #f8f9fa;
    padding: 40px 0;
    min-height: 100vh;
}

.category-sidebar {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 20px;
    height: fit-content;
}

.category-title {
    color: #dc3545;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #dc3545;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 12px;
}

.category-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
    font-weight: 500;
    text-decoration: none;
}

.category-btn:hover {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.category-btn.active {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 20px;
}

.blog-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #e9ecef;
}

.blog-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-category {
    display: inline-block;
    background: #dc3545;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 10px;
    width: fit-content;
}

.blog-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-card-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.blog-card-author {
    font-size: 12px;
    color: #999;
}

.blog-card-date {
    font-size: 12px;
    color: #999;
}

.blog-card-read-more {
    display: inline-block;
    color: #dc3545;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-card-read-more {
    color: #c82333;
}

.no-posts {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    background: white;
    border-radius: 8px;
}

.blog-header {
    text-align: center;
    margin-bottom: 25px;
}

.blog-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.blog-header p {
    font-size: 16px;
    color: #666;
}

/* Pagination Styles */
.pagination-wrapper {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    flex-wrap: wrap;
    gap: 5px;
}

.pagination .page-item {
    display: inline-block;
}

.pagination .page-link {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #dc3545;
    border-radius: 4px;
    color: #dc3545;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    background: white;
}

.pagination .page-link:hover {
    background-color: #dc3545;
    color: white;
}

.pagination .page-item.active .page-link {
    background-color: #dc3545;
    color: white;
    border-color: #dc3545;
    cursor: default;
}

.pagination .page-link:disabled,
.pagination .page-link[disabled] {
    color: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
    background: #f8f9fa;
}

.pagination-info {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-top: 15px;
}

.pagination-info span {
    font-weight: 600;
    color: #dc3545;
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .category-sidebar {
        position: static;
        margin-bottom: 30px;
    }

    .pagination {
        font-size: 13px;
    }

    .pagination .page-link {
        padding: 6px 10px;
    }
}
