/* *{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body{
    position: relative;
} */

/* Global CSS */

/* .obj-width{
    max-width: 1200px;
    margin: auto;
}

nav{
    background: #2d4c50;
    box-shadow: 0 7px 10px rgba(0, 0, 0, 0.3);
    padding: 0 15px;
}

.navbar{
    display: flex; 
    align-items: center;
    justify-content: space-between;
    padding: 1.3rem 0;
}

.logo{
    color: #fff;
    text-decoration: none;
    letter-spacing: 2px;
    font-size: 2.2rem;
}

#search-input{
    max-width: 400px;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    color: #333;
}

#search-btn{
    padding: 10px 20px;
    background: #138605;
    color: #fff;
    border: none;
    font-size: 18px;
    cursor: pointer;
    border-radius: 5px;
    margin-left: 10px;
}

#blog-container{
    padding: 3rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.blog-card{
    width: 280px;
    border: 1px solid #2d4c50;
    border-radius: 10px;
    cursor: pointer;
    padding: 1rem;
    margin: 10px;
}

.blog-card:hover{
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.3);
}

.blog-card img{
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 5px;
    border-bottom: 1rem;
}

.blog-card h2{
    color: #141414;
    font-size: 1.7rem;
    font-weight: 500;
}

.blog-card h2{
    padding-top: 0.7rem;
    font-size: 1.2rem;
} */

/* @media(max-width: 500px){
    nav{
        padding: 0 20px;
    }

    .navbar .logo{
        font-size: 1.8rem;
    }

    #search-input{
        width: 150px;
        padding: 10px;
    }

    .blog-card{
        width: 100%;
    }
} */



 @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

        *{
            padding: 0;
            margin: 0;
            box-sizing: border-box;
        }

        body{
            position: relative;
            font-family: 'Inter', sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
        }

        /* Global CSS */

        .obj-width{
            max-width: 1200px;
            margin: auto;
        }

        nav{
            background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            padding: 0 15px;
            backdrop-filter: blur(10px);
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .navbar{
            display: flex; 
            align-items: center;
            justify-content: space-between;
            padding: 1.5rem 0;
        }

        .logo{
            color: #fff;
            text-decoration: none;
            letter-spacing: 3px;
            font-size: 2.5rem;
            font-weight: 700;
            background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1);
            background-size: 200% 200%;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            animation: gradient 3s ease infinite;
            transition: all 0.3s ease;
        }

        .logo:hover {
            transform: scale(1.05);
            filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
        }

        @keyframes gradient {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        .search-container {
            display: flex;
            align-items: center;
            gap: 10px;
            background: rgba(255, 255, 255, 0.1);
            padding: 5px;
            border-radius: 50px;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        #search-input{
            max-width: 400px;
            padding: 12px 25px;
            border: none;
            border-radius: 50px;
            font-size: 16px;
            color: #333;
            background: rgba(255, 255, 255, 0.95);
            transition: all 0.3s ease;
            font-family: 'Inter', sans-serif;
            box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1);
        }

        #search-input:focus {
            outline: none;
            box-shadow: 0 0 20px rgba(78, 205, 196, 0.4);
            transform: scale(1.02);
        }

        #search-input::placeholder {
            color: #888;
            font-style: italic;
        }

        #search-btn{
            padding: 12px 25px;
            background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
            color: #fff;
            border: none;
            font-size: 16px;
            cursor: pointer;
            border-radius: 50px;
            margin-left: 0;
            font-weight: 600;
            font-family: 'Inter', sans-serif;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
        }

        #search-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(78, 205, 196, 0.4);
            background: linear-gradient(135deg, #44a08d 0%, #4ecdc4 100%);
        }

        #search-btn:active {
            transform: translateY(0);
        }

        #blog-container{
            padding: 4rem 2rem;
            display: flex;
            justify-content: center;
            align-items: stretch;
            flex-wrap: wrap;
            gap: 30px;
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(10px);
            margin: 2rem auto;
            max-width: 1200px;
            border-radius: 20px;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .blog-card{
            width: 350px;
            background: rgba(255, 255, 255, 0.95);
            border: none;
            border-radius: 20px;
            cursor: pointer;
            padding: 0;
            margin: 0;
            overflow: hidden;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
            position: relative;
        }

        .blog-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(78, 205, 196, 0.1));
            opacity: 0;
            transition: opacity 0.3s ease;
            border-radius: 20px;
        }

        .blog-card:hover::before {
            opacity: 1;
        }

        .blog-card:hover{
            transform: translateY(-15px) scale(1.02);
            box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
        }

        .blog-card img{
            width: 100%;
            height: 220px;
            object-fit: cover;
            border-radius: 0;
            transition: all 0.4s ease;
            filter: brightness(0.9);
        }

        .blog-card:hover img {
            filter: brightness(1) saturate(1.1);
            transform: scale(1.05);
        }

        .blog-card h2{
            color: #2c3e50;
            font-size: 1.4rem;
            font-weight: 600;
            padding: 1.5rem 1.5rem 0.5rem;
            line-height: 1.4;
            font-family: 'Inter', sans-serif;
            transition: color 0.3s ease;
        }

        .blog-card:hover h2 {
            color: #3498db;
        }

        .blog-card p{
            padding: 0 1.5rem 1.5rem;
            font-size: 0.95rem;
            color: #7f8c8d;
            line-height: 1.6;
            font-weight: 400;
            text-align: justify;
        }

        /* Loading animation */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .blog-card {
            animation: fadeInUp 0.6s ease forwards;
        }

        .blog-card:nth-child(1) { animation-delay: 0.1s; }
        .blog-card:nth-child(2) { animation-delay: 0.2s; }
        .blog-card:nth-child(3) { animation-delay: 0.3s; }
        .blog-card:nth-child(4) { animation-delay: 0.4s; }
        .blog-card:nth-child(5) { animation-delay: 0.5s; }

        /* Scrollbar styling */
        ::-webkit-scrollbar {
            width: 8px;
        }

        ::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.1);
        }

        ::-webkit-scrollbar-thumb {
            background: linear-gradient(135deg, #4ecdc4, #44a08d);
            border-radius: 10px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(135deg, #44a08d, #4ecdc4);
        }

        @media(max-width: 768px){
            nav{
                padding: 0 20px;
            }

            .navbar {
                flex-direction: column;
                gap: 1rem;
                padding: 1rem 0;
            }

            .navbar .logo{
                font-size: 2rem;
            }

            .search-container {
                width: 100%;
                justify-content: center;
            }

            #search-input{
                width: 200px;
                padding: 10px 20px;
                font-size: 14px;
            }

            #search-btn {
                padding: 10px 20px;
                font-size: 14px;
            }

            #blog-container {
                margin: 1rem;
                padding: 2rem 1rem;
            }

            .blog-card{
                width: 100%;
                max-width: 400px;
            }
        }

        @media(max-width: 500px){
            .logo {
                font-size: 1.8rem;
            }

            #search-input{
                width: 150px;
                padding: 8px 15px;
            }

            #search-btn {
                padding: 8px 15px;
            }

            .blog-card h2 {
                font-size: 1.2rem;
            }

            .blog-card p {
                font-size: 0.9rem;
            }
        }