/* Standard Blog - Modern Layout */

body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    margin: 0;
    padding: 0;
    background: #f4f6f9;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

a:hover {
    color: #0066ff;
}

/* Header */
header {
    background: #222;
    color: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .logo {
    font-size: 22px;
    font-weight: bold;
    color: #0ABAB5;
}

header .logo span {
  color: #8A2BE2;
}


header nav {
    display: flex;
    gap: 20px;
}

header nav a {
    color: #fff;
    font-weight: 500;
}

header nav a:hover {
    color: #00aaff;
}

/* Mobile Menu */
.nav-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

@media(max-width:768px){
    header nav {
        display: none;
        flex-direction: column;
        background: #111;
        position: absolute;
        width: 100%;
        top: 60px;
        left: 0;
        padding: 15px;
    }

    header nav.active {
        display: flex;
    }

    .nav-toggle {
        display: block;
        color: #00aaff;
    }
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 70px 20px;
    background: linear-gradient(135deg, #00aaff, #004080);
    color: #fff;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.hero p {
    font-size: 18px;
}

/* Posts Grid */
.posts {
    width: 90%;
    max-width: 1100px;
    margin: 50px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.post {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.post img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.post-content {
    padding: 20px;
}

.post-content h2 {
    margin-bottom: 10px;
    color: #004080;
}

.post-content p {
    font-size: 15px;
    line-height: 1.6;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background: #222;
    color: #ccc;
    margin-top: 50px;
}
