:root {
    --primary-color: #2563eb;
    --secondary-color: #3b82f6;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --light-bg: #f8fafc;
    --border-color: #e2e8f0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--light-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    border-radius: 4px;
}

.hero-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.hero-banner h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-banner p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.card {
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.card-title {
    font-weight: 600;
    color: #1e293b;
}

.card-text {
    color: #64748b;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
}

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

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

.category-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #e0f2fe;
    color: #0369a1;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.category-badge.active {
    background-color: var(--primary-color);
    color: white;
}

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

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

.post-title {
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
}

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

.post-meta {
    font-size: 0.85rem;
    color: #94a3b8;
}

.post-meta i {
    margin-right: 0.25rem;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #e2e8f0;
}

.avatar-sm {
    width: 32px;
    height: 32px;
}

.avatar-lg {
    width: 80px;
    height: 80px;
}

.pagination {
    margin-top: 2rem;
}

.page-link {
    color: var(--primary-color);
}

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

.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #334155;
}

.article-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

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

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.sidebar-card {
    position: sticky;
    top: 80px;
}

.comment-item {
    padding: 1rem;
    background-color: #f8fafc;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.comment-content {
    margin-top: 0.5rem;
    color: #475569;
}

.reply-form {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.resource-card {
    text-align: center;
    padding: 1.5rem;
}

.resource-card .logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    background-color: #e2e8f0;
}

.verified-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background-color: #dcfce7;
    color: #15803d;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.news-type-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.news-type-badge.news { background-color: #dbeafe; color: #1d4ed8; }
.news-type-badge.research { background-color: #f3e8ff; color: #7c3aed; }
.news-type-badge.policy { background-color: #fef3c7; color: #b45309; }
.news-type-badge.event { background-color: #dcfce7; color: #15803d; }

footer a:hover {
    color: white !important;
    text-decoration: none;
}

@media (max-width: 768px) {
    .hero-banner h1 {
        font-size: 1.75rem;
    }
    
    .hero-banner {
        padding: 2rem 0;
        text-align: center;
    }
    
    .sidebar-card {
        position: static;
        margin-top: 2rem;
    }
}
