*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:Arial, sans-serif;
    background:#0f172a;
    color:#ffffff;
    line-height:1.7;
}

.container{
    width:90%;
    max-width:1200px;
    margin:auto;
}

header{
    background:#111827;
    padding:20px 0;
    position:sticky;
    top:0;
    z-index:100;
}

.nav-container{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.logo a{
    color:#38bdf8;
    text-decoration:none;
    font-size:28px;
    font-weight:bold;
}

nav ul{
    list-style:none;
    display:flex;
    gap:25px;
}

nav a{
    color:#ffffff;
    text-decoration:none;
    transition:.3s;
}

nav a:hover{
    color:#38bdf8;
}

.hero{
    padding:120px 0;
    text-align:center;
    background:linear-gradient(135deg,#0f172a,#1e293b);
}

.hero h1{
    font-size:56px;
    margin-bottom:20px;
}

.hero p{
    max-width:800px;
    margin:auto;
    font-size:20px;
    color:#cbd5e1;
}

.btn{
    display:inline-block;
    margin-top:30px;
    background:#38bdf8;
    color:#000;
    padding:14px 30px;
    text-decoration:none;
    border-radius:8px;
    font-weight:bold;
}

.btn:hover{
    background:#0ea5e9;
}

.categories,
.latest-posts,
.about,
.newsletter{
    padding:80px 0;
}

.categories h2,
.latest-posts h2,
.about h2,
.newsletter h2{
    text-align:center;
    margin-bottom:40px;
    font-size:38px;
}

.category-grid,
.posts-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:25px;
}

.card,
.post-card{
    background:#1e293b;
    padding:25px;
    border-radius:12px;
    transition:.3s;
}

.card:hover,
.post-card:hover{
    transform:translateY(-5px);
}

.card h3,
.post-card h3{
    margin-bottom:15px;
    color:#38bdf8;
}

.post-card a{
    color:#38bdf8;
    text-decoration:none;
}

.about{
    text-align:center;
}

.about p{
    max-width:900px;
    margin:auto;
    color:#cbd5e1;
}

.newsletter{
    text-align:center;
}

.newsletter form{
    margin-top:25px;
}

.newsletter input{
    width:320px;
    max-width:90%;
    padding:14px;
    border:none;
    border-radius:8px;
}

.newsletter button{
    padding:14px 25px;
    background:#38bdf8;
    border:none;
    border-radius:8px;
    cursor:pointer;
    margin-left:10px;
    font-weight:bold;
}

footer{
    background:#111827;
    text-align:center;
    padding:30px 0;
}

.footer-links{
    margin-top:15px;
}

.footer-links a{
    color:#38bdf8;
    margin:0 10px;
    text-decoration:none;
}

@media(max-width:768px){

    .nav-container{
        flex-direction:column;
        gap:20px;
    }

    nav ul{
        flex-wrap:wrap;
        justify-content:center;
    }

    .hero h1{
        font-size:36px;
    }

    .hero p{
        font-size:18px;
    }

    .newsletter button{
        margin-top:10px;
        margin-left:0;
    }
}