* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: #0066cc;
}

a:hover {
    text-decoration: underline;
}

/* Header */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.header-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.site-title {
    font-size: 28px;
    font-weight: bold;
    color: #d32f2f;
    text-align: center;
}

/* Navigation */
nav {
    background-color: #d32f2f;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    display: block;
    color: white;
    padding: 12px 20px;
    font-weight: 500;
    transition: background-color 0.3s;
}

nav ul li a:hover {
    background-color: #b71c1c;
    text-decoration: none;
}

/* Main Content */
main {
    flex: 1;
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Content Area */
.content {
    flex: 2;
    min-width: 300px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.breaking-news {
    background: #f8d7da;
    padding: 10px;
    border-radius: 5px;
}

.breaking-news h3 {
    color: #721c24;
    display: inline;
    margin-right: 10px;
}

article {
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
}

article h2 {
    margin-bottom: 10px;
    color: #333;
}

.article-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
}

article img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

article p {
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    background: #d32f2f;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: 500;
    transition: background 0.3s;
}

.read-more:hover {
    background: #b71c1c;
    text-decoration: none;
}

/* Aside */
aside {
    flex: 1;
    min-width: 250px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

aside h3 {
    padding-bottom: 10px;
    border-bottom: 2px solid #d32f2f;
    color: #333;
}

.popular-news {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.news-item {
    display: flex;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.news-item img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}

.news-item-content {
    flex: 1;
}

.news-item h4 {
    font-size: 14px;
    margin-bottom: 5px;
}

.news-item p {
    font-size: 12px;
    color: #666;
}

.aside-image {
    text-align: center;
    margin: 10px 0;
}

.aside-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.aside-image figcaption {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.subscribe {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.subscribe input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.subscribe button {
    background: #d32f2f;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-weight: 500;
    transition: background 0.3s;
}

.subscribe button:hover {
    background: #b71c1c;
}

/* Footer */
footer {
    background: #333;
    color: #fff;
    padding: 30px 0;
    margin-top: 40px;
}

.footer-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h3 {
    margin-bottom: 15px;
    color: #fff;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ccc;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #fff;
    text-decoration: none;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.social-links a {
    display: inline-block;
    width: 36px;
    height: 36px;
    background: #d32f2f;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    main {
        flex-direction: column;
    }

    .header-container {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li {
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
}