body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #f4f4f4;
}

header {
    background: #333;
    color: #fff;
    padding: 10px 0;
    text-align: center;
}

.logo img {
    max-width: 150px;
    height: auto;
}

.ad-banner {
    margin: 10px auto;
    width: 728px;
    height: 90px;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    background: #444;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 10px;
    display: block;
}

nav ul li a:hover {
    background: #555;
}

.container {
    display: flex;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.content {
    flex: 3;
    background: #fff;
    padding: 20px;
    margin-right: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.sidebar {
    flex: 1;
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.sidebar h3 {
    margin-top: 0;
}

.newsletter form {
    display: flex;
    flex-direction: column;
}

.newsletter input {
    margin-bottom: 10px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.newsletter button {
    padding: 8px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.newsletter button:hover {
    background: #555;
}

.social-media a {
    margin: 0 10px;
    color: #333;
    text-decoration: none;
}

.popular-posts ul {
    list-style: none;
    padding: 0;
}

.popular-posts ul li {
    margin-bottom: 10px;
}

.popular-posts ul li a {
    color: #333;
    text-decoration: none;
}

footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
}

.footer-links li {
    margin: 0 10px;
}

.footer-links li a {
    color: #fff;
    text-decoration: none;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    .content, .sidebar {
        margin-right: 0;
        margin-bottom: 20px;
    }
    .ad-banner {
        width: 100%;
        height: auto;
    }
}