/* Blog Page */
.blog-page {
    max-width: 1200px;
    margin: 180px auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

/* Blog Header Image */
.blog-header img {
    width: 100%;
    max-height: 400px;
    border-radius: 10px;
    margin-bottom: 40px;
}

/* Category Filter */
.category-filter {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background-color: var(--background);
    /* Light background to make it stand out */
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    /* Subtle shadow for depth */
}

.category-filter h3 {
    font-size: 24px;
    font-weight: bold;
    color: var(--text);
    margin-bottom: 20px;
}

/* Category Filter Button */
.category-filter a {
    margin: 10px;
    padding: 12px 24px;
    border: 2px solid var(--primary);
    background-color: var(--white);
    color: var(--primary);
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 600;
}

.category-filter a:hover {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.category-filter a:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--accent);
    /* Highlight the button when it's focused */
}

/* Category Filter Button Active (when clicked) */
.category-filter button:active {
    transform: scale(0.98);
    /* Slightly shrink the button when clicked */
}


/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* Blog Card */
.blog-card {
    background-color: var(--background);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
}

.blog-card img {
    width: 100%;
    height: 180px;
}

/* Blog Content */
.blog-content {
    padding: 20px;
}

/* Blog Meta (Date, Author, etc.) */
.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    margin-bottom: 10px;
}

.blog-meta span {
    color: var(--primary);
}

/* Blog Title */
.blog-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--text);
    margin-bottom: 10px;
}

/* Blog Description */
.blog-desc {
    font-size: 14px;
    color: #444;
    margin-bottom: 15px;
}

/* Read More Link */
.read-more {
    display: inline-block;
    font-size: 14px;
    color: var(--accent);
    font-weight: bold;
    text-decoration: underline;
}

/* Load More Button */
.load-more {
    display: block;
    margin: 40px auto;
    padding: 10px 25px;
    font-size: 16px;
    border-radius: 30px;
}

/* Newsletter Section */
.newsletter {
    background-color: var(--secondary);
    border-radius: 10px;
    padding: 30px;
    margin-top: 60px;
    text-align: center;
}

.newsletter h3 {
    color: var(--text);
    margin-bottom: 10px;
}

.newsletter input {
    padding: 10px;
    width: 250px;
    max-width: 80%;
    margin-right: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.newsletter button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: var(--primary);
    color: var(--white);
    cursor: pointer;
}

/* Responsive Styles for Mobile */
@media(max-width: 600px) {
    .newsletter input {
        width: 100%;
        margin: 10px 0;
    }

    .newsletter button {
        width: 100%;
    }
}