/* Dark Mode Styles */
body.dark-mode {
    background: #181818;
    color: #e0e0e0;
}
body.dark-mode header {
    background: #222;
    color: #fff;
}
body.dark-mode .container,
body.dark-mode .main-wrapper,
body.dark-mode .sidebar {
    background: #232323 !important;
    color: #e0e0e0;
}
body.dark-mode .news-card,
body.dark-mode .full-article {
    background: #232323;
    color: #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
body.dark-mode .news-card a,
body.dark-mode .full-article a {
    color: #ffb300;
}
body.dark-mode .trending-section {
    background: #2d2d1a;
    border-bottom: 1px solid #444;
}
body.dark-mode .trending-item {
    background: #3a2e0a;
    color: #ffb300;
}
body.dark-mode footer {
    background: #111;
    color: #fff;
}
body.dark-mode input,
body.dark-mode textarea {
    background: #222;
    color: #fff;
    border: 1px solid #444;
}
body.dark-mode .news-card .meta,
body.dark-mode .full-article .meta {
    color: #bbb;
}
/* Responsive Design */
@media (max-width: 900px) {
    .container {
        flex-direction: column;
        padding: 18px;
    }
    main {
        margin-right: 0;
    }
    .sidebar {
        margin-top: 24px;
    }
}

@media (max-width: 600px) {
    header {
        flex-direction: column;
        padding: 14px 0 10px 0;
    }
    header .logo img {
        height: 36px;
        margin-right: 8px;
    }
    header nav {
        margin-top: 10px;
    }
    header nav a {
        margin-left: 10px;
        font-size: 0.98em;
    }
    .container {
        padding: 8px;
        max-width: 100vw;
    }
    .news-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .news-card img {
        height: 90px !important;
    }
    .sidebar {
        padding: 12px;
    }
    .trending-section h2 {
        margin-left: 12px;
    }
    .trending-list {
        margin-left: 12px;
        gap: 10px;
    }
}
body {
    font-family: Arial, sans-serif;
    background: #f8f8f8;
    margin: 0;
    padding: 0;
}
header {
    background: #ff8800;
    color: #fff;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 40px;
    padding-right: 40px;
    box-shadow: 0 2px 8px rgba(255,136,0,0.08);
}
header .logo a {
    color: #fff;
    font-size: 2em;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
}
header .logo img {
    height: 48px;
    margin-right: 12px;
    vertical-align: middle;
}
header nav a {
    color: #fff;
    margin-left: 20px;
    text-decoration: none;
    font-size: 1em;
    font-weight: 500;
    transition: color 0.2s;
}
header nav a:hover {
    color: #222;
}
.container {
    display: flex;
    max-width: 1200px;
    margin: 30px auto;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-radius: 8px;
    padding: 30px;
}
main {
    flex: 3;
    margin-right: 40px;
}
.sidebar {
    flex: 1;
    background: #f1f1f1;
    padding: 20px;
    border-radius: 8px;
}
.news-item {
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
    padding-bottom: 20px;
}
.news-item h2 {
    margin: 0 0 10px 0;
}
.news-item .meta {
    color: #888;
    font-size: 0.9em;
    margin-bottom: 10px;
}
.full-article h1 {
    margin-top: 0;
}
.full-article .meta {
    color: #888;
    font-size: 0.95em;
    margin-bottom: 20px;
}
.full-article .content {
    font-size: 1.1em;
    line-height: 1.7;
}
footer {
    background: #222;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    border-radius: 0 0 8px 8px;
}
footer .social a {
    color: #fff;
    margin: 0 8px;
    text-decoration: none;
}

/* --- News Portal Enhancements --- */
.main-wrapper {
    background: #f8f8f8;
    min-height: 100vh;
}
.trending-section {
    background: #fffbe7;
    border-bottom: 1px solid #ffe6a1;
    padding: 24px 0 8px 0;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.05);
}
.trending-section h2 {
    margin: 0 0 10px 40px;
    color: #d4a200;
    font-size: 1.3em;
    font-weight: bold;
}
.trending-list {
    display: flex;
    gap: 30px;
    margin-left: 40px;
}
.trending-item {
    background: #fff8d1;
    border-radius: 6px;
    padding: 10px 18px;
    box-shadow: 0 1px 4px rgba(212,162,0,0.07);
    font-size: 1em;
    min-width: 220px;
}
.trending-item a {
    color: #b88a00;
    text-decoration: none;
    font-weight: bold;
}
.trending-item .meta {
    color: #a88a00;
    font-size: 0.9em;
    margin-left: 8px;
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 28px;
    margin-top: 18px;
}
.news-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    padding: 22px 18px 18px 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px;
    transition: box-shadow 0.2s;
}
.news-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.13);
}
.news-card h3 {
    margin: 0 0 8px 0;
    font-size: 1.15em;
}
.news-card .meta {
    color: #888;
    font-size: 0.92em;
    margin-bottom: 10px;
}
.news-card p {
    flex: 1;
    margin-bottom: 10px;
}
.read-more {
    color: #0056b3;
    text-decoration: none;
    font-weight: bold;
    margin-top: 8px;
    align-self: flex-start;
    transition: color 0.2s;
}
.read-more:hover {
    color: #003366;
}
