/* ========================================
   Blog Lists Page Styles
   ======================================== */

/* Header Section */
.blog-header {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-header .banner-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.blog-header .container {
    position: relative;
    z-index: 2;
}

.blog-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.blog-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Category Sidebar */
.category-sidebar {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 100px;
}

.category-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e9ecef;
}

.category-list ul {
    margin: 0;
    padding: 0;
}

.category-item {
    margin-bottom: 0.5rem;
}

.category-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #495057;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-link i {
    margin-right: 0.75rem;
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.category-link:hover {
    background: #f8f9fa;
    color: #007bff;
    transform: translateX(5px);
}

.category-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.category-link.active i {
    color: #fff;
}

/* Blog Posts Container */
.blog-posts-container {
    min-height: 400px;
}

/* Blog Card */
.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Blog Image */
.blog-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
}

.blog-category-badge span {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Blog Content */
.blog-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    color: #6c757d;
    font-size: 0.875rem;
}

.meta-item i {
    margin-right: 0.4rem;
    color: #667eea;
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-title a:hover {
    color: #667eea;
}

.blog-excerpt {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-read-more i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.btn-read-more:hover {
    color: #764ba2;
}

.btn-read-more:hover i {
    transform: translateX(5px);
}

/* No Posts Message */
.no-posts {
    padding: 4rem 2rem;
    text-align: center;
}

.no-posts i {
    color: #dee2e6;
}

.no-posts h4 {
    color: #495057;
    margin-bottom: 0.5rem;
}

/* Pagination */
.pagination-wrapper {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.pagination-wrapper .pagination {
    gap: 0.5rem;
}

.pagination-wrapper .page-link {
    border-radius: 8px;
    padding: 0.5rem 1rem;
    color: #667eea;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.pagination-wrapper .page-link:hover {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

.pagination-wrapper .page-item.active .page-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
}

/* Responsive Design */
@media (max-width: 991px) {
    .blog-header h1 {
        font-size: 2.5rem;
    }

    .category-sidebar {
        position: static;
        margin-bottom: 2rem;
    }

    .category-list {
        display: flex;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    .category-list ul {
        display: flex;
        gap: 0.5rem;
        white-space: nowrap;
    }

    .category-item {
        margin-bottom: 0;
    }

    .category-link {
        white-space: nowrap;
    }
}

@media (max-width: 767px) {
    .blog-header h1 {
        font-size: 2rem;
    }

    .blog-header p {
        font-size: 1rem;
    }

    .blog-image {
        height: 200px;
    }

    .blog-title {
        font-size: 1.1rem;
    }

    .blog-content {
        padding: 1.25rem;
    }
}

@media (max-width: 575px) {
    .blog-header {
        min-height: 250px;
    }

    .blog-header h1 {
        font-size: 1.75rem;
    }

    .category-sidebar {
        padding: 1rem;
    }

    .category-title {
        font-size: 1.1rem;
    }

    .blog-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-card {
    animation: fadeInUp 0.5s ease-out;
}

.blog-card:nth-child(1) {
    animation-delay: 0.1s;
}
.blog-card:nth-child(2) {
    animation-delay: 0.2s;
}
.blog-card:nth-child(3) {
    animation-delay: 0.3s;
}
.blog-card:nth-child(4) {
    animation-delay: 0.4s;
}
.blog-card:nth-child(5) {
    animation-delay: 0.5s;
}
.blog-card:nth-child(6) {
    animation-delay: 0.6s;
}
