@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@500&amp;family=Roboto:wght@500&amp;display=swap");

body {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: rgb(2, 0, 36);
    background: linear-gradient(90deg, rgba(2, 0, 36, 1) 0%, rgba(9, 9, 121, 1) 35%, rgba(0, 212, 255, 1) 100%);
}

/* Container Width */
.obj-width {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    background-color: #94bbe9;
    color: #fff;
    box-sizing: border-box;
    flex-wrap: wrap;
}

.nav-links {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    transition: transform 0.3s ease-in-out;
    gap: 1.5rem;
}

.nav-links.active {
    transform: translateX(0);
    /* Adjust this based on your layout */
}

.nav-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1rem;
}

.nav-links li {
    cursor: pointer;
}

.toggle-menu {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
}

.nav-links ul li:hover {
    color: #ff5722;
}

.logo {
    font-size: 1.5rem;
    color: #fff;
    text-decoration: none;
}

/* Search Container */

.search-container {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 300px;
    flex-shrink: 0;
}

.search-container #search-input {
    width: 100%;
    padding: 8px 40px 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.search-container #search-icon {
    position: absolute;
    right: 10px;
    color: #aaa;
    font-size: 1.2rem;
    cursor: pointer;
}

/* Blog Container */

#blog-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 2rem 20px;
    box-sizing: border-box;
}

.blog-card {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
    cursor: pointer;
    padding: 1.2rem;
    box-sizing: border-box;
}

.blog-card:hover {
    transform: scale(1.03);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.blog-card h2 {
    font-weight: 500;
    margin: 16px;
    font-size: 1.25rem;
    color: #333;
}

.blog-card p {
    margin: 0 16px 16px;
    color: #555;
    line-height: 1.5;
}

/* Responsive Design with Media Queries */

@media screen and (max-width: 1024px) {
    .navbar {
        flex-wrap: wrap;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
}

@media screen and (max-width: 768px) {
    .toggle-menu {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        background-color: #333;
        position: absolute;
        top: 60px;
        right: 20px;
        width: 200px;
        border-radius: 5px;
        padding: 1rem;
    }

    .nav-links ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    .nav-links.active {
        display: flex;
    }

    .search-container {
        max-width: 100%;
        margin: 0;
    }

}

@media screen and (max-width: 425px) {
    #blog-container {
        grid-template-columns: 1fr;
    }

    .blog-card {
        padding: 0.5rem;
    }

    .nav-links ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    .search-container {
        display: none;
    }
}