* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.7;
    background-color: #f0f0f0;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

header {
    background: #444;
    color: #fff;
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header h1 {
    font-weight: 700;
    letter-spacing: 2px;
    margin-left: 10px;
}

nav {
    position: relative;
}

.menu-icon {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-icon span {
    background: #fff;
    height: 3px;
    margin: 5px 0;
    width: 25px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    padding: 5px 10px;
    transition: background 0.3s ease;
}

nav a:hover {
    background: #666;
    border-radius: 5px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .menu-icon {
        display: flex;
    }

    nav ul {
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        background: #444;
        width: 200px;
        display: none;
        padding: 20px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }

    nav ul.showing {
        display: flex;
    }

    nav a {
        padding: 10px 20px;
        text-align: right;
    }
}
main {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0;
}

.blog-content {
    flex: 1;
    min-width: 60%;
}

.blog-content article {
    background: #fff;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.blog-content img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 15px;
}

.ad-inline {
    margin: 20px 0;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.sidebar {
    flex: 0.3;
    min-width: 30%;
}

.sidebar .ad {
    background: #fff;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}

footer {
    background: #444;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    margin-top: 30px;
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    main {
        flex-direction: column;
    }

    .blog-content {
        min-width: 100%;
    }

    .sidebar {
        min-width: 100%;
    }
}
