* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

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

.header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-search-form {
    display: flex;
    align-items: center;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 0.25rem;
}

.header-search-input {
    border: none;
    background: transparent;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    width: 180px;
    outline: none;
}

.header-search-btn {
    background: #2563eb;
    border: none;
    color: white;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.header-search-btn:hover {
    background: #1d4ed8;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2563eb;
    text-decoration: none;
    transition: color 0.3s;
}

.logo:hover {
    color: #1d4ed8;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 4px;
}

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

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

.hero-section {
    margin-bottom: 3rem;
}

.featured-article {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.featured-article-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.featured-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
    padding: 2rem;
}

.category-tag {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-decoration: none;
    transition: background 0.3s;
}

.category-tag:hover {
    background: #1d4ed8;
}

.featured-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.featured-excerpt {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.article-meta {
    font-size: 0.875rem;
    opacity: 0.8;
}

.article-meta .author::after {
    content: ' • ';
    margin: 0 0.5rem;
}

.section-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.latest-news {
    margin-bottom: 3rem;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.article-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.article-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

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

.article-info {
    padding: 1.25rem;
}

.article-category {
    display: inline-block;
    color: #2563eb;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.article-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    color: #1f2937;
    transition: color 0.3s;
}

.article-card:hover .article-title {
    color: #2563eb;
}

.article-excerpt {
    color: #6b7280;
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
}

.categories-section {
    margin-bottom: 3rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.category-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.category-count {
    color: #6b7280;
    font-size: 0.9375rem;
}

.breadcrumb {
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
}

.breadcrumb a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.3s;
}

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

.breadcrumb .separator {
    margin: 0 0.5rem;
    color: #6b7280;
}

.breadcrumb .current {
    color: #6b7280;
}

.category-header {
    margin-bottom: 2rem;
}

.category-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.category-description {
    font-size: 1.125rem;
    color: #6b7280;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.pagination-btn {
    padding: 0.5rem 1.5rem;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
}

.pagination-btn:hover:not(:disabled) {
    background: #1d4ed8;
}

.pagination-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.pagination-info {
    color: #6b7280;
}

.article-full {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.article-header {
    margin-bottom: 2rem;
}

.article-title-full {
    font-size: 2.5rem;
    margin: 1rem 0;
    line-height: 1.2;
    color: #1f2937;
}

.article-meta-full {
    font-size: 0.9375rem;
    color: #6b7280;
}

.article-meta-full .author::after,
.article-meta-full .date::after {
    content: ' • ';
    margin: 0 0.5rem;
}

.read-time {
    color: #6b7280;
}

.article-featured-image {
    margin-bottom: 2rem;
}

.article-featured-image img {
    width: 100%;
    border-radius: 12px;
}

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

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

.article-tags,
.article-share {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.tags-label,
.share-label {
    font-weight: 600;
    margin-right: 0.5rem;
}

.tag {
    display: inline-block;
    background: #e5e7eb;
    color: #374151;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    text-decoration: none;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: background 0.3s;
}

.tag:hover {
    background: #d1d5db;
}

.share-btn {
    padding: 0.5rem 1rem;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    margin-right: 0.5rem;
    transition: background 0.3s;
}

.share-btn:hover {
    background: #e5e7eb;
}

.related-articles {
    margin-top: 3rem;
}

.footer {
    background: #1f2937;
    color: #d1d5db;
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}

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

.footer-title {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.footer-desc {
    line-height: 1.6;
}

.footer-heading {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

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

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

@media (max-width: 768px) {
    .header-search-form {
        display: none;
    }
    
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        padding: 1rem 0;
    }
    
    .nav.active {
        display: block;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .featured-image {
        height: 300px;
    }
    
    .featured-title {
        font-size: 1.75rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .article-full {
        padding: 1rem;
    }
    
    .article-title-full {
        font-size: 1.75rem;
    }
    
    .category-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .header-content {
        flex-wrap: wrap;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .featured-content {
        padding: 1rem;
    }
    
    .featured-title {
        font-size: 1.5rem;
    }
    
    .featured-excerpt {
        font-size: 1rem;
    }
}

.page-content {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

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

.content-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.content-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.content-section h2 {
    font-size: 1.5rem;
    color: #2563eb;
    margin-bottom: 1rem;
}

.content-section h3 {
    font-size: 1.25rem;
    color: #333;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.content-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.content-section ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.content-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.content-section a {
    color: #2563eb;
    text-decoration: none;
}

.content-section a:hover {
    text-decoration: underline;
}

.policy-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.search-container {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.search-form {
    margin-top: 1.5rem;
}

.search-input-wrapper {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.search-input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: #2563eb;
}

.search-btn {
    padding: 0.875rem 2rem;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

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

.search-filters {
    display: flex;
    gap: 1rem;
}

.search-filter {
    padding: 0.5rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.9rem;
    background: #fff;
    cursor: pointer;
}

.search-results {
    margin-bottom: 3rem;
}

.search-stats {
    margin-bottom: 1.5rem;
    color: #666;
    font-size: 0.95rem;
}

.no-results {
    text-align: center;
    padding: 3rem;
    background: #fff;
    border-radius: 12px;
}

.no-results p {
    color: #666;
    margin-bottom: 0.5rem;
}

.no-results a {
    color: #2563eb;
}

.trending-section {
    margin-top: 3rem;
}

.trending-section .section-title {
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
}

.trending-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.trending-item {
    display: flex;
    gap: 1rem;
    background: #fff;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.trending-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.trending-item img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.trending-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.trending-category {
    font-size: 0.75rem;
    color: #2563eb;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.trending-title {
    font-size: 0.95rem;
    color: #1a1a1a;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.newsletter-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    padding: 3rem 2rem;
    border-radius: 16px;
    color: #fff;
    text-align: center;
    margin: 3rem 0;
}

.newsletter-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.newsletter-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 1rem 2rem;
    background: #fff;
    color: #2563eb;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.newsletter-form button:hover {
    transform: scale(1.02);
}

.popular-section {
    margin: 3rem 0;
}

.popular-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.popular-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.popular-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.popular-item img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.popular-info {
    padding: 1rem;
}

.popular-category {
    font-size: 0.7rem;
    color: #2563eb;
    font-weight: 600;
    text-transform: uppercase;
}

.popular-title {
    font-size: 0.9rem;
    color: #1a1a1a;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 768px) {
    .trending-grid,
    .popular-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .search-input-wrapper {
        flex-direction: column;
    }
}