body {
    margin: 0;
    background: #ffffff;
    color: #222;
    font-family: 'Poppins';
}

header {
    padding-top: 2rem;
    text-align: center;
    background: #f9f9f9;
    border-bottom: 1px solid #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header h1 {
    font-family: Montserrat;

    font-size: 2.5rem;
    margin-bottom: 0.3rem;
}

header p {
    color: #666;
    font-size: 1rem;
    margin-bottom: 3rem;
    font-family: Montserrat;

}

.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.hero-article {
    background: #000;
    color: #fff;
    padding: 2rem;
    border-radius: 10px;
    background-image: url('images/blog1.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.hero-article::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.hero-article-content {
    position: relative;
    z-index: 1;
    display: flex;
}

.hero-article-text {
    max-width: 600px;
}

.hero-article-content img {
    width: 100%;
    max-height: 300px;
    margin-left: 30px;
    border: 1px solid white;
}

.hero-article h2 {
    font-size: 2rem;
    font-family: Montserrat;

}

.hero-article p {
    font-size: 1rem;
    color: #ddd;
    font-family: Montserrat;

}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.card {
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.card:hover {
    transform: translateY(-6px);
}

.card img {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
}

.card-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-content h3 {
    font-family: Montserrat;

    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #111;
}

.card-content p {
    font-size: 0.9rem;
    color: #555;
    font-family: Montserrat;
    max-width: 600px;

}

.card-content span.date {
    font-size: 0.75rem;
    color: #4b4b4b;
    display: block;
    margin-top: 0.5rem;
    font-family: Montserrat;
    text-shadow: 0 0 1px rgb(0, 0, 0);
}


.blog-nav ul li a {
    color: white;
    text-decoration: none;
    font-family: Montserrat;

}

.blog-nav ul li a:hover {
    background-color: white;
    padding: 10px;
    color: black;

}

.card-whole {
    display: flex;
    justify-content: space-between;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: rgb(255, 255, 255);
    margin-right: 20px;
}

/* By default, hide the menu on small screens */
.blog-nav {
    display: none;
}

/* Show it when .active is toggled by the button */
.blog-nav.active {
    display: flex;

}



/* Optional: make sure it's responsive */
@media (min-width: 768px) {
    .blog-nav {
        display: block !important;
        /* always show on desktop */
    }

    .menu-toggle {
        display: none;
        /* hide the hamburger on large screens */
    }

    .blog-nav-links {
        display: flex;
        flex-direction: column;
    }
}

/* Mobile-first default */
.blog-nav {
    display: none;
    width: 100%;
    background-color: #222;
    /* dark background for dropdown */
    padding: 1rem 0;
}

.blog-nav.active {
    display: block;
}

.blog-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.blog-nav-links li a {
    color: white;
    text-decoration: none;
    font-family: Montserrat;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease-in-out;
}

.blog-nav-links li a:hover {
    background-color: white;
    color: black;
    border-radius: 5px;
}

/* Menu button */
.menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: rgb(0, 0, 0);
    /* Adjust to match your header background */
    margin: 10px auto;
}

/* Desktop layout */
@media (min-width: 768px) {
    .blog-nav {
        display: block !important;
        background: black;
    }

    .blog-nav-links {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }

    .menu-toggle {
        display: none;
    }
}