/* Main Content */
main {
    margin-top: 72px;
}

/* Hero Section */
.articles-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.articles-hero .container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 1;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.hero-text {
    margin-bottom: 32px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 16px 24px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.search-input:focus {
    outline: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* Category Tabs */
.articles-categories {
    background: white;
    padding: 40px 0;
    border-bottom: 1px solid #eee;
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.category-tab {
    text-decoration: none;
    background: #f7f4ff;
    color: #4b0082;
    border: 1px solid #ddd;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    font-weight: 500;
}

.category-tab.active {
    background: #4b0082;
    color: white;
}

.category-tab:hover {
    background: #4b0082;
    color: white;
}

/* Articles List */
.articles-list {
    background: #ffffff;
    padding: 60px 0;
}

.articles-content {
    display: flex;
    gap: 40px;
}

/* Left Articles Area */
.articles-left {
    flex: 1;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.article-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 16px;
    width: 260px;
    height: 380px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.card-category {
    background: #f0e6ff;
    color: #7F56D9;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
    display: inline-block;
}

.card-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 12px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: #181D27;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.card-summary {
    font-size: 13px;
    color: #999;
    line-height: 1.4;
    margin: 0 0 8px 0;
    flex: 1;
    overflow: hidden;
}

.card-date {
    font-size: 12px;
    color: #999;
    text-align: center;
    margin-top: auto;
}

/* Right Navigation */
.articles-right {
    width: 300px;
    flex-shrink: 0;
}

.nav-title {
    font-size: 20px;
    font-weight: 600;
    color: #4b0082;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4b0082;
}

.time-nav-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 600px;
    overflow-y: auto;
}

.nav-item {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.nav-item:hover {
    background: #f7f4ff;
    border-color: #4b0082;
}

.nav-date {
    font-size: 12px;
    color: #999;
    margin-bottom: 6px;
}

.nav-title-text {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .articles-content {
        flex-direction: column;
    }

    .articles-right {
        width: 100%;
        order: -1;
    }

    .time-nav-list {
        max-height: 300px;
    }

    .article-card {
        width: 100%;
        height: auto;
        min-height: 380px;
    }
}
