/* Blog Page Styles */
:root {
    --primary-color: #1d6b92;
    --primary-dark: #165c7e;
    --primary-light: #2587b8;
    --grey-light: #f5f5f5;
    --grey: #666666;
    --white: #ffffff;
}

/* Blog Main Layout */
.blog-main {
    padding-top: 90px; /* Account for header + CTA strip */
    max-width: 1200px;
    margin: 0 auto;
}

/* Blog Hero Section */
.blog-hero {
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)),
                url('assets/logo/logo.jpg');
    background-size: cover;
    background-position: center;
    padding: 4rem 2rem;
    text-align: center;
    border-bottom: 3px solid var(--primary-color);
    margin: 2rem auto;
}

.blog-hero h1 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.blog-hero p {
    font-size: 1.4rem;
    color: var(--text-color);
    max-width: 800px;
    margin: 0 auto;
}

/* Posts Grid */
.featured-posts,
.latest-posts {
    padding: 4rem 2rem;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.post-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(29, 107, 146, 0.2);
}

.post-card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    margin: 1rem auto;
}

.post-content {
    padding: 1.5rem;
}

.post-content h3 {
    font-size: 1.5rem;
    line-height: 1.4;
    margin: 1rem 0;
    color: var(--primary-color);
}

.post-content a {
    color: inherit;
    text-decoration: none;
}

.category {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.post-meta {
    display: flex;
    gap: 1rem;
    color: var(--grey);
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Categories Grid */
.blog-categories {
    padding: 4rem 2rem;
    background: var(--grey-light);
    margin: 2rem 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.category-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(29, 107, 146, 0.2);
}

.category-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Newsletter Section */
.newsletter-signup {
    background: var(--primary-color);
    padding: 4rem 2rem;
    text-align: center;
    color: var(--white);
    border-radius: 10px;
    margin: 2rem 0;
}

.signup-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 2rem auto 0;
}

.signup-form input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
}

.signup-form button {
    background: var(--white);
    color: var(--primary-color);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.signup-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Featured Posts */
.featured-posts h2,
.latest-posts h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 2.2rem;
    }

    .blog-hero p {
        font-size: 1.2rem;
    }

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

    .signup-form {
        flex-direction: column;
    }

    .featured-posts,
    .latest-posts,
    .blog-categories {
        padding: 2rem 1rem;
    }

    .post-card img {
        width: 100px;
        height: 100px;
    }

    .post-card h3 {
        font-size: 1.3rem;
    }
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}