/* NewsLight Theme - Progressive News Website */
:root {
    --primary-color: #dc2626; /* Red accent color */
    --secondary-color: #1f2937; /* Dark gray */
    --accent-color: #f59e0b; /* Orange accent */
    --text-color: #111827;
    --light-gray: #f3f4f6;
    --border-color: #e5e7eb;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #ffffff;
}

/* Header Styles */
.navbar-brand {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--secondary-color) !important;
    letter-spacing: -1px;
}

.navbar {
    border-bottom: 3px solid var(--primary-color);
}

.navbar-nav .nav-link {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--secondary-color) !important;
    padding: 0.7rem 1rem !important;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Top Banner */
.bg-danger {
    background-color: var(--primary-color) !important;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Category badges */
.category-badge {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    border-radius: 0;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.category-politics { background-color: #dc2626; }
.category-environment { background-color: #059669; }
.category-social-justice { background-color: #7c3aed; }
.category-nonprofit { background-color: #0ea5e9; }
.category-leadership { background-color: #ea580c; }
.category-community { background-color: #84cc16; }
.category-advocacy { background-color: #ec4899; }
.category-progressive-issues { background-color: #6366f1; }

/* Main Content Layout */
.main-featured {
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
}

/* Article Cards */
.article-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    height: 100%;
    border-radius: 0;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

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

.article-meta {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.article-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.article-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-title a:hover {
    color: var(--primary-color);
}

.article-excerpt {
    color: #4b5563;
    line-height: 1.4;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* Featured Article Styles */
.featured-article .article-image {
    height: 250px;
}

.featured-article .article-title {
    font-size: 1.5rem;
    font-weight: 800;
}

/* Sidebar Styles */
.sidebar {
    background-color: var(--light-gray);
    padding: 1.25rem;
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.sidebar-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-item {
    padding: 0.6rem 0;
    border-bottom: 1px solid #d1d5db;
}

.sidebar-item:last-child {
    border-bottom: none;
}

.sidebar-article-title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.25rem;
}

.sidebar-article-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.sidebar-article-title a:hover {
    color: var(--primary-color);
}

.sidebar-article-meta {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
}

/* Category List */
.category-list {
    list-style: none;
    padding: 0;
}

.category-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    border-bottom: 1px solid #d1d5db;
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.category-list a:hover {
    color: var(--primary-color);
}

.category-count {
    background-color: var(--secondary-color);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Page Headers */
.page-header {
    background-color: var(--light-gray);
    border-left: 4px solid var(--primary-color);
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

/* Pagination */
.pagination {
    justify-content: center;
    margin-top: 2rem;
}

.page-link {
    color: var(--secondary-color);
    border-color: var(--border-color);
    font-weight: 600;
    padding: 0.5rem 0.75rem;
}

.page-link:hover {
    color: var(--primary-color);
    background-color: var(--light-gray);
    border-color: var(--border-color);
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Article Detail Page */
.article-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light-gray);
}

.article-header .category-badge {
    margin-bottom: 1rem;
}

.article-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.article-meta-detail {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.article-content {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
}

.article-content p {
    margin-bottom: 1.25rem;
}

/* Forms */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(220, 38, 38, 0.25);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
}

.btn-primary:hover {
    background-color: #b91c1c;
    border-color: #b91c1c;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Search Results */
.search-results {
    margin-top: 1.5rem;
}

.search-result-item {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border-color);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Admin Panel */
.admin-panel {
    background-color: white;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.8rem;
    }
    
    .article-header h1 {
        font-size: 1.8rem;
    }
    
    .featured-article .article-image {
        height: 200px;
    }
    
    .article-image {
        height: 150px;
    }
    
    .sidebar {
        margin-top: 2rem;
    }
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: #d1d5db;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 3px solid var(--primary-color);
}

.footer a {
    color: #9ca3af;
    text-decoration: none;
}

.footer a:hover {
    color: white;
}

/* Breaking News Banner */
.breaking-news {
    background: linear-gradient(45deg, var(--primary-color), #dc2626);
    color: white;
    padding: 0.5rem 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Social Share Buttons */
.social-share {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.social-share .btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
}

/* Alert Styling */
.alert {
    border-radius: 0;
    border-width: 0 0 0 4px;
    font-weight: 500;
}

.alert-info {
    border-color: var(--primary-color);
    background-color: #fef2f2;
    color: var(--secondary-color);
}

/* Loading States */
.loading {
    text-align: center;
    padding: 3rem 0;
    color: #6b7280;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 3rem 0;
    color: #6b7280;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #d1d5db;
}

/* Slideshow Styles */
.slideshow-image {
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    padding: 15px;
    backdrop-filter: blur(5px);
}

.carousel-caption h5 {
    font-weight: bold;
    margin-bottom: 8px;
    color: #fff;
}

.carousel-caption p {
    margin-bottom: 0;
    color: #f8f9fa;
}

.carousel-indicators {
    margin-bottom: -20px;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
}

.carousel-indicators .active {
    background-color: #dc3545;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-size: 20px 20px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.8;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .slideshow-image {
        height: 250px;
    }
    
    .carousel-caption {
        padding: 10px;
    }
    
    .carousel-caption h5 {
        font-size: 1rem;
    }
    
    .carousel-caption p {
        font-size: 0.875rem;
    }
}