/* Blog Hero Section */
.blog-hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #0e7490 100%);
    padding: 6rem 5% 4rem;
    text-align: center;
    color: white;
}

.blog-hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.blog-hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.search-box {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
}

.search-box input {
    width: 100%;
    padding: 1rem 1rem 1rem 3.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    background: rgba(255, 255, 255, 0.9);
}

.search-box input::placeholder {
    color: #9ca3af;
}

/* Category Filter Section */
.category-filter {
    background: white;
    padding: 2rem 5%;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
}

.filter-container {
    display: flex;
    gap: 1rem;
    max-width: 1400px;
    margin: 0 auto;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.filter-container::-webkit-scrollbar {
    height: 4px;
}

.filter-container::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    background: #f3f4f6;
    color: #4b5563;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    font-size: 0.95rem;
}

.filter-btn:hover {
    background: #e5e7eb;
}

.filter-btn.active {
    background: #1e40af;
    color: white;
}

/* Blog Articles Section */
.blog-articles {
    padding: 3rem 5% 5rem;
    background: #f9fafb;
}

.articles-count {
    max-width: 1400px;
    margin: 0 auto 2rem;
}

.articles-count p {
    color: #6b7280;
    font-size: 0.95rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.blog-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.blog-category {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: #dbeafe;
    color: #1e40af;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.blog-card h3 {
    font-size: 1.4rem;
    color: #1f2937;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.blog-meta {
    display: flex;
    gap: 1.5rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #0e7490 100%);
    padding: 5rem 5%;
    text-align: center;
    color: white;
}

.newsletter-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.newsletter-content p {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
}

.newsletter-form input::placeholder {
    color: #9ca3af;
}

.newsletter-form button {
    padding: 1rem 2.5rem;
    background: white;
    color: #1e40af;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
    font-size: 1rem;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 968px) {
    .blog-hero-content h1 {
        font-size: 2.5rem;
    }

    .blog-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .newsletter-content h2 {
        font-size: 2rem;
    }

    .filter-container {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .blog-hero-content h1 {
        font-size: 2rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form button {
        width: 100%;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }
}