﻿.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-title {
    text-align: center;
    margin: 3rem 0;
}

.page-title h1 {
    font-size: 2.5rem;
    color: #1e3c72;
    margin-bottom: 0.5rem;
}

.page-title p,
.page-title h2 {
    font-size: 1.1rem;
    color: #666;
}

.search-filter-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

.search-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 250px;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: #2a5298;
}

.search-btn {
    padding: 12px 30px;
    background: #2a5298;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background 0.3s;
}

.search-btn:hover {
    background: #1e3c72;
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.category-btn {
    padding: 8px 20px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
    color: #666;
}

.category-btn.active,
.category-btn:hover {
    background: #2a5298;
    color: white;
    border-color: #2a5298;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    padding: inherit;
    flex: 0 0 32.333333%;
    max-width: 31.333333%;
    margin-right: 10px;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.blog-image {
    object-fit: cover;
    cursor: pointer;
}

.blog-content {
    padding: 1.5rem;
}

.blog-content-index {
    padding: 1.5rem;
}

.blog-category {
    display: inline-block;
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.blog-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.blog-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
    white-space: inherit;
}

.blog-title a:hover {
    color: #2a5298;
    text-decoration: underline;
}

.blog-excerpt {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #888;
    /* margin-bottom: 1rem; */
}

.read-more {
    display: inline-block;
    color: #2a5298;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.read-more:hover {
    color: #1e3c72;
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: #666;
    font-size: 1.1rem;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.page-btn {
    padding: 10px 15px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    color: #666;
}

.page-btn:hover,
.page-btn.active {
    background: #2a5298;
    color: white;
    border-color: #2a5298;
}

@media (max-width: 768px) {
    .page-title h1 {
        font-size: 2rem;
    }

    .search-bar {
        flex-direction: column;
    }

    .search-input {
        min-width: 100%;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .category-filters {
        justify-content: flex-start;
    }

    .blog-card {
        flex: 0 0 100%;
        max-width: 100%
    }
}

@media (min-width: 768px) and (max-width: 1280px) {
    .blog-card {
        flex: 0 0 100%;
        max-width: 47%
    }

    #blogGrid {
        justify-content: space-around;
    }
}