/* Blog Page Styles */
:root {
    --blog-primary: #012C4A;
    --blog-secondary: #21B8AB;
    --blog-text: #2C3E50;
    --blog-light: #F8F9FA;
    --blog-white: #FFFFFF;
    --blog-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --blog-transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(1, 44, 74, 0.842), rgba(1, 44, 74, 0.842)), url('../images/Home/blogs.png') no-repeat center center;
    height: 50vh;
    padding: 8rem 2rem;
    text-align: center;
    color: var(--blog-white);
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-section p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Blog Posts Section */
.blog-posts {
    padding: 5rem 2rem;
    background: var(--blog-light);
}

.blog-posts  .container {
    max-width: 1200px;
    margin: 0 auto;
}

.blog-post {
    background: var(--blog-white);
    border-radius: 12px;
    box-shadow: var(--blog-shadow);
    margin-bottom: 3rem;
    overflow: hidden;
    transition: var(--blog-transition);
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.post-meta {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #666;
}

.post-meta .date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-meta .category {
    background: var(--blog-secondary);
    color: var(--blog-white);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

.post-content {
    padding: 2rem;
}

.post-content h2 {
    color: var(--blog-primary);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.post-content h3 {
    color: var(--blog-text);
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
}

.post-content p {
    color: var(--blog-text);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Newsletter Section */
.newsletter-signup {
    background: var(--blog-primary);
    padding: 5rem 2rem;
    text-align: center;
    color: var(--blog-white);
}

.newsletter-signup h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.newsletter-signup p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.signup-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.signup-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
}

.btn-primary {
    background: var(--blog-secondary);
    color: var(--blog-white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--blog-transition);
}

.btn-primary:hover {
    background: #1a9589;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
    }
    
    .post-content h2 {
        font-size: 1.75rem;
    }
    
    .signup-form {
        flex-direction: column;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .post-content {
        padding: 1.5rem;
    }
    
    .newsletter-signup h2 {
        font-size: 2rem;
    }
}


 body {
        font-family: Arial, sans-serif;
        background-color: #f4f6f8;
        color: #333;
        margin: 0;
        padding: 0;
    }

    header {
        background-color: #27ae60;
        color: white;
        padding: 40px 20px;
        text-align: center;
    }

    header h1 {
        margin-bottom: 10px;
        font-size: 2.5rem;
    }

    .blog-section {
        display: flex;
        flex-wrap: wrap;
        margin: 40px auto;
        max-width: 1200px;
        overflow: hidden;

    }

    .blog-section:nth-child(even) {
        flex-direction: row-reverse;
    }

    .blog-image {
        flex: 1 1 40%;
        min-height: 300px;
        background-size: cover;
        background-position: center;
    }

    .blog-content {
        flex: 1 1 60%;
        padding: 30px;
    }

    .blog-content h2 {
        color: #2d3436;
        margin-bottom: 15px;
    }

    .blog-content p {
        font-size: 16px;
        line-height: 1.7;
    }

   @media screen and (max-width: 1024px) {
    .hero-section {
        height: auto;
        padding: 4rem 1.5rem;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section p {
        font-size: 1.1rem;
    }

    .blog-section {
        flex-direction: column !important;
        margin: 20px auto;
        align-items: center;
    }

    .blog-image,
    .blog-content {
        flex: 1 1 80%;
        width: 80%;
    }

    .blog-image {
        min-height: 250px;
    }

    .blog-content {
        padding: 20px;
    }

    .blog-content h2 {
        font-size: 1.8rem;
    }

    .blog-content p {
        font-size: 1rem;
    }
}

@media screen and (max-width: 768px) {
    .hero-section {
        padding: 3rem 1rem;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .blog-content h2 {
        font-size: 1.6rem;
    }

    .blog-content p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}

@media screen and (max-width: 480px) {
    .hero-section h1 {
        font-size: 1.6rem;
    }

    .hero-section p {
        font-size: 0.95rem;
    }

    .blog-content h2 {
        font-size: 1.3rem;
    }

    .blog-content p {
        font-size: 0.9rem;
    }
}