* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #ffffff;
    color: #2c2c2c;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, #3a3a3a 0%, #5a5a5a 100%);
    color: #ffffff;
    padding: 60px 0;
    margin-bottom: 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: -1px;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Main Layout */
main {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

/* Filters */
.filters {
    background: #f8f8f8;
    padding: 30px;
    border-radius: 8px;
    height: fit-content;
    position: sticky;
    top: 20px;
    border: 1px solid #e5e5e5;
}

.filters h2 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    font-weight: 400;
    color: #3a3a3a;
}

.filter-section {
    margin-bottom: 30px;
}

.filter-section h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #5a5a5a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#timeFilter {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    background: white;
    font-size: 0.95rem;
    color: #2c2c2c;
    cursor: pointer;
    transition: border-color 0.2s;
}

#timeFilter:hover {
    border-color: #5a5a5a;
}

#tagFilters {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tag-filter {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 6px 0;
    transition: opacity 0.2s;
}

.tag-filter:hover {
    opacity: 0.7;
}

.tag-filter input[type="checkbox"] {
    margin-right: 10px;
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.tag-filter label {
    cursor: pointer;
    font-size: 0.9rem;
    color: #4a4a4a;
}

.clear-btn {
    width: 100%;
    padding: 12px;
    background: #3a3a3a;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.2s;
}

.clear-btn:hover {
    background: #5a5a5a;
}

/* Blogs Grid */
.blogs-container {
    min-height: 400px;
}

.blogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.blog-card {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.blog-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #e5e5e5;
}

.blog-info {
    padding: 20px;
}

.blog-title {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 12px;
    color: #2c2c2c;
    line-height: 1.3;
}

.blog-date {
    font-size: 0.85rem;
    color: #7a7a7a;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.blog-date::before {
    content: "📅";
    margin-right: 6px;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: #f0f0f0;
    color: #4a4a4a;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #7a7a7a;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 1024px) {
    main {
        grid-template-columns: 1fr;
    }

    .filters {
        position: static;
    }

    .blogs-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .blogs-grid {
        grid-template-columns: 1fr;
    }
}