/* 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: #ffffff;
}

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

/* Header Styles */
.header {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1a1a1a;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo a:hover {
    color: #0066cc;
}

/* Navigation */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: #555;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #0066cc;
    background-color: #f5f5f5;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.menu-icon span {
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: 0.3s;
}

/* Main Content */
.main {
    padding: 2rem 0;
}

/* Section Titles */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #1a1a1a;
}

/* Featured Articles */
.featured-articles {
    margin-bottom: 4rem;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.featured-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
    line-height: 1.4;
}

.card-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.card-excerpt {
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 2px solid #0066cc;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.read-more:hover {
    background-color: #0066cc;
    color: #ffffff;
}

/* Compact Articles */
.compact-articles {
    margin-bottom: 4rem;
}

.compact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.compact-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.compact-image {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    overflow: hidden;
}

.compact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.compact-content {
    padding: 1rem;
    flex-grow: 1;
}

.compact-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
    line-height: 1.3;
}

.compact-excerpt {
    color: #555;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Category Page Styles */
.category-header {
    margin-bottom: 3rem;
    text-align: center;
    padding: 2rem 0;
    background-color: #f5f5f5;
    border-radius: 8px;
}

.category-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.category-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 1100px;
    margin: 0 auto;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.category-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.category-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-content {
    padding: 1.5rem;
}

.category-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
    line-height: 1.4;
}

.category-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.category-excerpt {
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: 1px solid #e5e5e5;
}

.pagination-info {
    color: #666;
    font-size: 0.9rem;
}

.pagination-controls {
    display: flex;
    gap: 0.5rem;
}

.pagination-item {
    display: inline-block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: #555;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.pagination-item:hover {
    background-color: #f5f5f5;
    color: #0066cc;
}

.pagination-item.current {
    background-color: #0066cc;
    color: #ffffff;
    border-color: #0066cc;
}

.pagination-next {
    display: inline-block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: #0066cc;
    border: 1px solid #0066cc;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.pagination-next:hover {
    background-color: #0066cc;
    color: #ffffff;
}

/* Article Page Styles */
.article {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 3rem;
}

.article-header {
    padding: 2rem 2rem 1rem;
}

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

.article-category a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a1a1a;
    line-height: 1.2;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    color: #666;
    font-size: 0.9rem;
}

.article-image {
    width: 100%;
    margin-bottom: 2rem;
}

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

.image-caption {
    padding: 1rem 2rem;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    background-color: #f5f5f5;
}

.article-content {
    padding: 0 2rem 2rem;
}

.article-lead {
    font-size: 1.2rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.article-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: #1a1a1a;
}

.article-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #555;
}

.article-tags {
    padding: 0 2rem 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background-color: #f5f5f5;
    color: #555;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.article-navigation {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.back-link {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.back-link:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background-color: #f5f5f5;
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
    border-top: 1px solid #e5e5e5;
}

.footer p {
    color: #666;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        padding: 0.8rem 0;
    }
    
    .logo a {
        font-size: 1.5rem;
    }
    
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #ffffff;
        border-top: 1px solid #e5e5e5;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
    }
    
    .nav-menu a {
        padding: 1rem 2rem;
        border-radius: 0;
        border-bottom: 1px solid #f5f5f5;
    }
    
    .menu-icon {
        display: flex;
    }
    
    .menu-toggle:checked + .menu-icon span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .menu-toggle:checked + .menu-icon span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle:checked + .menu-icon span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .menu-toggle:checked ~ .nav {
        display: block;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .compact-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .compact-card {
        flex-direction: column;
    }
    
    .compact-image {
        width: 100%;
        height: 150px;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .category-title {
        font-size: 2rem;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .article-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .article-content {
        padding: 0 1.5rem 1.5rem;
    }
    
    .image-caption {
        padding: 1rem 1.5rem;
    }
    
    .article-tags {
        padding: 0 1.5rem 1.5rem;
    }
    
    .pagination {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .pagination-controls {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .card-content {
        padding: 1rem;
    }
    
    .compact-content {
        padding: 0.8rem;
    }
    
    .category-content {
        padding: 1rem;
    }
    
    .article-image img {
        height: 250px;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}