:root {
    --secondary: #a29bfe;
    --accent: #fd79a8;
    --dark: #2d3436;
    --light: #f5f6fa;
    --text: #2d3436;
    --text-light: #636e72;
}

/* Hero Section */
.blog-hero {
    padding: 6rem 0;
    text-align: center;
    background: linear-gradient(rgba(108, 92, 231, 0.1), rgba(108, 92, 231, 0.05));
}

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

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

/* blog post section  */

.blog-posts {
    padding: 3rem 3rem;
}

.blog-container {
    display: flex;
    height: 18rem;
    background: rgb(232, 245, 255);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2rem;
}

.blog-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.blog-image-container {
    width: 40%;
    overflow: hidden;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 10px;
}

.blog-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.blog-content {
    flex: 1;
    padding: 2rem 3rem;
}

.blog-content h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.blog-content h1 a {
    text-decoration: none;
    color: var(--primary);
}

.blog-content h1 a:hover {
    text-decoration: underline;
}

.blog-content p a {
    text-decoration: none;
    color: var(--primary);
}

.blog-content p a:hover {
    text-decoration: underline;
}

.blog-content p {
    color: var(--text-light);
}

.title {
    display: flex;
    gap: 3rem;
    padding: 10px 0;
}

.category {
    background-color: rgb(241, 150, 150);
    padding: 2px;
    border-radius: 3px;
    text-align: center;
}



/* newletter */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.newsletter-form input {
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
}

.newsletter-form button {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background-color: var(--secondary);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .blog-container {
        flex-direction: column;
        height: auto;
    }

    .blog-image-container {
        width: 100%;
        height: 100%;
        overflow: hidden;
        border-top-left-radius: 8px;
        border-top-right-radius: 8px;
    }

    .blog-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }



    .title {
        font-size: 10px;
        gap: 2rem;
        padding-top: 20px;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 6rem 0 2rem;
    }

    .blog-hero h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {

    .blog-hero h1 {
        font-size: 1.8rem;
    }

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

    .blog-content h1 {
        font-size: 1.5rem;
    }
}