/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.nav-brand a {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
}

.nav-brand .tagline {
    font-size: 0.9rem;
    color: #6b7280;
    margin-left: 10px;
    font-weight: 400;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: #4b5563;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #2563eb;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-subscribe {
    background-color: #2563eb;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s;
}

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

.search-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #6b7280;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: white;
    padding: 60px 0;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin-bottom: 20px;
}

.breadcrumb {
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #bfdbfe;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: white;
    font-weight: 500;
}

/* Main Content */
.main-content {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
}

.content-wrapper {
    flex: 1;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.article-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.category-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #2563eb;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.article-content {
    padding: 25px;
}

.article-content h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    line-height: 1.3;
}

.article-content h2 a {
    color: #1f2937;
    text-decoration: none;
}

.article-content h2 a:hover {
    color: #2563eb;
}

.article-excerpt {
    color: #6b7280;
    margin-bottom: 20px;
    font-size: 1rem;
}

.article-meta {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    color: #9ca3af;
}

.article-meta i {
    margin-right: 5px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid #e5e7eb;
}

.page-nav {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    text-decoration: none;
    color: #4b5563;
    font-weight: 500;
    transition: all 0.2s;
}

.page-nav:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
}

.page-numbers {
    display: flex;
    gap: 10px;
}

.page-numbers a,
.page-numbers span {
    padding: 8px 12px;
    text-decoration: none;
    color: #4b5563;
}

.page-numbers a:hover {
    background-color: #f3f4f6;
    border-radius: 6px;
}

.page-numbers a.active {
    background-color: #2563eb;
    color: white;
    border-radius: 6px;
}

/* Sidebar */
.sidebar {
    width: 300px;
}

.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.sidebar-widget h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #1f2937;
}

.sidebar-widget p {
    color: #6b7280;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.popular-articles {
    list-style: none;
}

.popular-articles li {
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.popular-articles li:last-child {
    border-bottom: none;
}

.popular-articles a {
    text-decoration: none;
    color: #1f2937;
    font-weight: 500;
    display: block;
    margin-bottom: 5px;
}

.popular-articles a:hover {
    color: #2563eb;
}

.popular-meta {
    font-size: 0.8rem;
    color: #9ca3af;
}

.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.subscribe-form input {
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-family: inherit;
}

.subscribe-form button {
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.subscribe-form button:hover {
    background-color: #1d4ed8;
}

.categories {
    list-style: none;
}

.categories li {
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
}

.categories a {
    text-decoration: none;
    color: #4b5563;
}

.categories a:hover {
    color: #2563eb;
}

.count {
    background-color: #f3f4f6;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

/* Footer */
.footer {
    background-color: #1f2937;
    color: #f9fafb;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3,
.footer-col h4 {
    margin-bottom: 20px;
    color: white;
}

.footer-col h3 {
    font-size: 1.5rem;
}

.footer-col p {
    color: #d1d5db;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #374151;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: background-color 0.2s;
}

.social-links a:hover {
    background-color: #2563eb;
}

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

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #374151;
    color: white;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: white;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: white;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 992px) {
    .main-content {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .nav-menu {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .pagination {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .page-numbers {
        justify-content: center;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}