/* Blog listing page styles */

.blog-page {
    max-width: 1200px;
    margin: 100px auto 60px auto;
    padding: 0 24px;
}

/* Header */
.blog-header {
    text-align: center;
    margin-bottom: 40px;
}

.blog-header h1 {
    font-size: 42px;
    color: #2C3E50;
    margin-bottom: 12px;
    font-weight: 700;
}

.blog-subtitle {
    font-size: 18px;
    color: #7F8C8D;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Category Filters */
.blog-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.blog-filter-btn {
    padding: 8px 20px;
    border: 2px solid #E0E0E0;
    border-radius: 24px;
    background: transparent;
    color: #555;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.blog-filter-btn:hover {
    border-color: #D4AF37;
    color: #D4AF37;
}

.blog-filter-btn.active {
    background: #D4AF37;
    border-color: #D4AF37;
    color: #fff;
}

/* Search */
.blog-search {
    display: flex;
    max-width: 500px;
    margin: 0 auto 36px auto;
    gap: 8px;
}

.blog-search-input {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    color: #333;
    outline: none;
    transition: border-color 0.2s;
}

.blog-search-input:focus {
    border-color: #D4AF37;
}

.blog-search-btn {
    padding: 10px 16px;
    background: #D4AF37;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
}

.blog-search-btn:hover {
    background: #c4a030;
}

/* Loading */
.blog-loading {
    text-align: center;
    padding: 80px 20px;
    color: #999;
    font-size: 16px;
}

/* Articles Grid */
.blog-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 40px;
}

/* Article Card */
.blog-article-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.blog-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.blog-card-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    opacity: 0.5;
}

.blog-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: #D4AF37;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.blog-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-excerpt {
    font-size: 14px;
    color: #7F8C8D;
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 14px;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.blog-card-author {
    font-weight: 500;
    color: #777;
}

/* Empty State */
.blog-empty {
    text-align: center;
    padding: 80px 20px;
    color: #999;
    font-size: 16px;
}

/* Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 16px;
}

.blog-page-btn {
    min-width: 40px;
    height: 40px;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    background: transparent;
    color: #555;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.blog-page-btn:hover:not(:disabled) {
    border-color: #D4AF37;
    color: #D4AF37;
}

.blog-page-btn.active {
    background: #D4AF37;
    border-color: #D4AF37;
    color: #fff;
}

.blog-page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Results Info */
.blog-results-info {
    text-align: center;
    color: #999;
    font-size: 13px;
    margin-bottom: 40px;
}

/* Responsive */
@media (max-width: 1024px) {
    .blog-articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .blog-page {
        margin-top: 80px;
        padding: 0 16px;
    }

    .blog-header h1 {
        font-size: 30px;
    }

    .blog-subtitle {
        font-size: 15px;
    }

    .blog-articles-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .blog-card-image,
    .blog-card-placeholder {
        height: 160px;
    }

    .blog-filters {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
    }

    .blog-filter-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }
}
