.navbar {
    top: 0;
    position: fixed;
    z-index: 1000;
    display: flex;
    height: var(--navbar-height);
    width: 100%;
    align-items: center;
    background-color: rgba(44,62,80,1);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

main {
    flex: 1;
}

.news-header {
    margin-top: var(--page-header-offset);
    text-align: center;
    margin-bottom: 2rem;
    padding: 0 1.5rem;
}

.news-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

.news-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #ddd;
    flex-wrap: wrap;
}

.news-tab-btn {
    padding: 0.8rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    color: #555;
    transition: all 0.3s ease;
    margin: 0 0.5rem;
}

.news-tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: bold;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.news-item {
    display: flex;
    align-items: stretch;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.14);
    box-shadow: 0 4px 6px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    background: #fff;
    cursor: pointer;
}

.news-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
    background-color: #f8fbff;
}

.news-item:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 4px;
}

.news-item-content {
    display: flex;
    flex-direction: column;
    width: 60%;
    padding: 0.5rem 0;
    min-width: 0;
}

.news-image {
    width: 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #f5f7fa;
    border-radius: 10px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.news-date {
    color: var(--secondary-color);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-title {
    font-size: 1.35rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.news-summary {
    color: #555;
    font-size: 0.98rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    flex: 1;
}

.news-meta {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.news-category {
    display: inline-block;
    background: #f0f7ff;
    color: var(--secondary-color);
    padding: 0.25rem 0.85rem;
    border-radius: 999px;
    font-size: 0.9rem;
}

.no-news {
    text-align: center;
    padding: 3rem;
    color: #666;
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.5rem;
}

.pagination-btn {
    min-width: 42px;
    height: 42px;
    padding: 0 0.9rem;
    border: 1px solid rgba(44, 62, 80, 0.16);
    border-radius: 999px;
    background: #fff;
    color: var(--primary-color);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.pagination-btn:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    transform: translateY(-1px);
}

.pagination-btn.active {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
    font-weight: 700;
}

.pagination-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 768px) {
    .news-item {
        flex-direction: column;
        padding: 1rem;
    }

    .news-item-content,
    .news-image {
        width: 100%;
    }

    .news-image {
        order: -1;
    }

    .news-meta {
        gap: 0.75rem;
    }
}

@media (max-width: 640px) {
    .news-container {
        padding: 0 0.8rem 2rem;
    }

    .news-item {
        padding: 0.85rem;
        gap: 0.85rem;
    }

    .news-title {
        font-size: 1.15rem;
        margin-bottom: 0.6rem;
    }

    .news-summary {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .news-image {
        border-radius: 8px;
    }

    .news-pagination {
        gap: 0.45rem;
    }

    .pagination-btn {
        min-width: 38px;
        height: 38px;
        padding: 0 0.75rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .news-tab-btn {
        padding: 0.5rem 0.8rem;
        margin: 0.2rem;
    }
}
