body {
    background-color: #f8f9fa;
    font-family: 'Georgia', serif;
    color: #333;
}

/* Header styles */
.newspaper-header {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.newspaper-title {
    font-family: 'Times New Roman', Times, serif;
    font-weight: bold;
    font-size: 2.2rem;
    color: #111;
    margin: 0;
}

.newspaper-date {
    font-style: italic;
    color: #555;
    font-size: 1.1rem;
}

/* Sidebar styles */
.sidebar-section {
    background-color: white;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
}

.sidebar-heading {
    font-family: 'Times New Roman', Times, serif;
    font-size: 1.3rem;
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 10px;
    margin-bottom: 15px;
    color: #111;
}

.recent-articles li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dotted #dee2e6;
    line-height: 1.4;
}

.recent-articles a {
    color: #444;
    text-decoration: none;
}

.recent-articles a:hover {
    color: #0d6efd;
}

/* Article styles */
.article-card {
    border: 1px solid #e9ecef;
    margin-bottom: 30px;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.article-header {
    border-bottom: 3px double #dee2e6;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.article-title {
    font-family: 'Times New Roman', Times, serif;
    font-weight: bold;
    color: #111;
    font-size: 1.8rem;
}

.article-meta {
    color: #666;
    font-style: italic;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.article-category {
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.article-image {
    max-height: 300px;
    width: 100%;
    object-fit: cover;
}

.article-summary {
    line-height: 1.6;
    color: #444;
}

.read-more-btn {
    font-weight: bold;
}

.audio-btn {
    color: #0d6efd;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: color 0.3s;
}

.audio-btn:hover {
    color: #0a58ca;
}

/* Category buttons */
.category-buttons .btn {
    margin-right: 5px;
    margin-bottom: 8px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.category-buttons .btn:hover {
    background-color: #0d6efd;
    color: white;
}

/* Subscription form */
.subscription-form p {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* Ad section */
.ad-placeholder {
    background-color: #f8f9fa;
    border: 1px dashed #ced4da;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #6c757d;
}

/* Footer */
footer {
    background-color: white;
    color: #444;
}

footer a {
    color: #444;
    text-decoration: none;
}

footer a:hover {
    color: #0d6efd;
    text-decoration: underline;
}

.social-icons a {
    font-size: 1.2rem;
    width: 35px;
    height: 35px;
    background-color: #f8f9fa;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.social-icons a:hover {
    background-color: #e9ecef;
    text-decoration: none;
}

/* Dark mode styles */
body.dark-mode {
    background-color: #222;
    color: #eee;
}

.dark-mode .newspaper-header, 
.dark-mode footer,
.dark-mode .sidebar-section,
.dark-mode .article-card,
.dark-mode .card {
    background-color: #333;
    color: #f1f1f1;
    border-color: #444;
}

.dark-mode .newspaper-title {
    color: #f1f1f1;
}

.dark-mode .newspaper-date {
    color: #bbb;
}

.dark-mode .sidebar-heading {
    color: #f1f1f1;
    border-bottom-color: #555;
}

.dark-mode .recent-articles a,
.dark-mode footer a {
    color: #bbb;
}

.dark-mode .recent-articles a:hover,
.dark-mode footer a:hover {
    color: #4d9eff;
}

.dark-mode .recent-articles li {
    border-bottom-color: #444;
}

.dark-mode .article-title {
    color: #f1f1f1;
}

.dark-mode .article-meta,
.dark-mode .article-summary {
    color: #ccc;
}

.dark-mode .article-header {
    border-bottom-color: #555;
}

.dark-mode .ad-placeholder {
    background-color: #2a2a2a;
    border-color: #444;
    color: #aaa;
}

.dark-mode .social-icons a {
    background-color: #444;
}

.dark-mode .social-icons a:hover {
    background-color: #555;
}

.dark-mode .nav-link {
    color: #f1f1f1;
}

.dark-mode .nav-link:hover {
    color: #4d9eff;
}

.dark-mode .navbar-toggler {
    background-color: #555;
    border-color: #777;
}

/* Dark mode toggle button */
.dark-mode-toggle {
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    transition: background-color 0.3s;
}

.dark-mode-toggle i {
    font-size: 1.2rem;
    margin-right: 6px;
}

.dark-mode-toggle.light {
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #dee2e6;
}

.dark-mode-toggle.dark {
    background-color: #333;
    color: #f8f9fa;
    border: 1px solid #555;
}

/* Responsive fixes */
@media (max-width: 992px) {
    .newspaper-title {
        font-size: 1.8rem;
        text-align: center;
    }
    
    .newspaper-date {
        text-align: center;
        margin: 10px 0;
    }
}

@media (max-width: 768px) {
    .col-md-3, .col-md-6 {
        margin-bottom: 20px;
    }
}