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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #ffffff;
    color: #1a1a1a;
    line-height: 1.6;
}

.header {
    background-color: #f8f9fa;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e0e0e0;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

.logo-link:hover {
    opacity: 0.8;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
}

.back-link {
    color: #666;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.back-link:hover {
    color: #000;
}

.hero {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    padding: 60px 40px;
    text-align: center;
}

.hero-title {
    font-size: 18px;
    margin-bottom: 30px;
    color: #333;
    font-weight: 400;
}

.search-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 18px 20px 18px 50px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #ffffff;
    color: #1a1a1a;
    outline: none;
}

.search-input:focus {
    border-color: #999;
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

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

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

.category-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 35px;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

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

.category-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #1a1a1a;
}

.article-list {
    list-style: none;
}

.article-item {
    margin-bottom: 18px;
}

.article-link {
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    transition: color 0.2s;
    cursor: pointer;
}

.article-link:hover {
    color: #000;
}

.arrow {
    color: #999;
    font-size: 18px;
    margin-left: 10px;
    flex-shrink: 0;
}

.category-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    font-size: 13px;
    color: #666;
}

.view-all {
    color: #666;
    cursor: pointer;
    transition: color 0.2s;
}

.view-all:hover {
    color: #000;
}

.featured-section {
    margin-top: 60px;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #1a1a1a;
}

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

.featured-article {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    text-decoration: none;
    color: #333;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.featured-article:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    color: #000;
}

/* Article Page Styles */
.article-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 40px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

.article-main {
    min-width: 0;
}

.article-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

@media (max-width: 968px) {
    .article-container {
        grid-template-columns: 1fr;
    }
    
    .article-sidebar {
        position: static;
    }
}

.article-header {
    margin-bottom: 40px;
}

.article-category {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.article-title {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.3;
}

.article-content {
    font-size: 16px;
    color: #333;
    line-height: 1.8;
}

.article-content h2 {
    font-size: 24px;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
    margin-left: 30px;
    margin-bottom: 20px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content a {
    color: #0066cc;
    text-decoration: none;
}

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

.article-content strong {
    font-weight: 600;
    color: #1a1a1a;
}

.related-articles {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #e0e0e0;
}

.related-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.related-list {
    list-style: none;
}

.related-item {
    margin-bottom: 12px;
}

.related-link {
    color: #0066cc;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
    display: block;
    transition: color 0.2s;
}

.related-link:hover {
    color: #0052a3;
    text-decoration: underline;
}

/* Search Results Styles */
.search-results {
    margin-bottom: 40px;
}

.search-header {
    margin-bottom: 30px;
}

.search-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.search-result-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px 25px;
    text-decoration: none;
    display: block;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.search-result-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #0066cc;
}

.search-result-category {
    font-size: 12px;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.search-result-title {
    font-size: 16px;
    color: #1a1a1a;
    font-weight: 500;
    line-height: 1.5;
}

.search-result-title mark {
    background-color: #fff59d;
    color: #1a1a1a;
    padding: 2px 4px;
    border-radius: 3px;
}

.search-no-results {
    text-align: center;
    padding: 60px 20px;
}

.search-no-results h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.search-no-results p {
    font-size: 16px;
    color: #666;
}

@media (max-width: 768px) {
    .categories {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 40px 20px;
    }

    .container,
    .article-container {
        padding: 40px 20px;
    }

    .header {
        padding: 15px 20px;
    }

    .article-title {
        font-size: 28px;
    }
}

