*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, Helvetica, sans-serif;
}

body{
    background:#f8f9fb;
    color:#333;
}

.navbar{
    background:#ffffff;
    color:white;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 8%;
    position:sticky;
    top:0;
    z-index:1000;
}

.logo img{
    height:55px;
    width:auto;
}

.logo{
    display:flex;
    align-items:center;
    gap:12px;
}

.nav-links{
    display:flex;
    list-style:none;
    gap:30px;
}

.nav-links a{
    text-decoration:none;
    color:#8c3688;
    font-weight:bold;
}

.hero{
    background:linear-gradient(135deg,#8c3688,#b65ab0);
    color:white;
    text-align:center;
    padding:100px 20px;
}

.hero h1{
    font-size:52px;
    margin-bottom:20px;
}

.hero p{
    font-size:20px;
    max-width:800px;
    margin:auto;
    margin-bottom:30px;
}

.hero input{
    width:500px;
    max-width:90%;
    padding:15px;
    border:none;
    border-radius:8px;
}

#searchInput{
    width:500px;
    padding:15px;
    border:1px solid #ddd;
    border-radius:8px;
    transition:0.3s;
}

#searchInput:focus{
    outline:none;
    border:2px solid #8c3688;
    box-shadow:0 0 15px rgba(141,55,136,0.4);
}

.featured{
    padding:80px 8%;
}

.featured h2{
    text-align:center;
    color:#8c3688;
    margin-bottom:40px;
    font-size:40px;
}

.date{
    color:#777;
    font-size:14px;
    margin-bottom:10px;
}

.articles-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:30px;
}

.article-card{
    background:white;
    border-radius:15px;
    overflow:hidden;
    box-shadow:0 5px 20px rgba(0,0,0,.08);
    transition:.3s;
}

.article-card:hover{
    transform:translateY(-8px);
    box-shadow:0 10px 25px rgba(0,0,0,0.15);
}

.article-card img{
    width:100%;
    height:220px;
    object-fit:cover;
}

.article-content{
    padding:20px;
}

.article-content h3{
    margin-bottom:10px;
}

.article-content p{
    margin-bottom:15px;
    color:#666;
}

.read-btn{
    display:inline-block;
    background:#8c3688;
    color:white;
    text-decoration:none;
    padding:10px 20px;
    border-radius:6px;
    margin-top:10px;
}


.categories{
    padding:80px 8%;
}

.categories h2{
    text-align:center;
    color:#8c3688;
    margin-bottom:40px;
    font-size:40px;
}

.category-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    gap:20px;
}

.category-grid div{
    background:white;
    text-align:center;
    padding:20px;
    border-radius:10px;
    font-weight:bold;
    box-shadow:0 2px 10px rgba(0,0,0,.08);
    cursor:pointer;
}

.newsletter{
    background:#8c3688;
    color:white;
    text-align:center;
    padding:80px 20px;
}

.newsletter h2{
    margin-bottom:15px;
}

.newsletter p{
    margin-bottom:20px;
}

.newsletter input{
    padding:15px;
    width:300px;
    border:none;
    border-radius:6px;
}

.newsletter button{
    padding:15px 25px;
    border:none;
    border-radius:6px;
    margin-left:10px;
    cursor:pointer;
}

.contact-section{
    margin-top:60px;
    background:linear-gradient(135deg,#8c3688,#b86ab1);
    color:white;
    padding:50px;
    border-radius:0px;
    text-align:center;
}

.contact-section h2{
    color:white;
    margin-bottom:20px;
    font-size:36px;
}

.contact-section p{
    font-size:18px;
    margin:10px 0;
}

footer{
    background:#8c3688;
    color:white;
    text-align:center;
    padding:25px;
}

/* Mobile Responsive */

@media (max-width: 768px) {

    .hero h1{
        font-size: 36px;
        line-height: 1.2;
    }

    .hero p{
        font-size: 16px;
        padding: 0 15px;
    }

    #searchInput{
        width: 90%;
        max-width: 100%;
        box-sizing: border-box;
    }

     /* Navbar */

    .navbar{
        flex-direction:column;
        padding:15px;
        gap:15px;
    }

    .nav-links{
        flex-wrap:wrap;
        justify-content:center;
        gap:15px;
        padding:0;
    }

    /* Newsletter */

    .newsletter input{
        width:90%;
        max-width:100%;
        margin-bottom:10px;
        box-sizing:border-box;
    }

    .newsletter button{
        width:90%;
        margin-left:0;
    }

}