

@media (max-width: 768px) {

    .news-archive-hero {
        padding: 80px 20px;
    }

    .news-archive-hero h1 {
        font-size: 2.5rem;
        line-height: 1.2;
        letter-spacing: 0.02em;
    }

    .filter-section {
        padding: 40px 20px;
    }

    .filter-tags {
        gap: 20px;
        justify-content: center;
    }

    .filter-tag {
        font-size: 16px;
        line-height: 1.2;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 40px 20px;
        padding: 0 20px;
    }

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

    .article-image {
        height: 240px;
    }

    .article-title {
        font-size: 24px;
        line-height: 1.3;
        letter-spacing: 0.06em;
    }

    .article-excerpt {
        font-size: 18px;
        line-height: 1.55;
        letter-spacing: 0.008em;
    }

    .pagination {
        margin-top: 60px;
    }

    .pagination nav {
        gap: 20px;
    }

    .page-numbers {
        font-size: 16px;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px;
    }

    .related-post-image {
        height: 200px;
    }

    .related-post-title {
        font-size: 20px;
        line-height: 1.4;
        letter-spacing: 0.06em;
    }
}

@media (max-width: 480px) {

    .news-archive-hero {
        padding: 60px 15px;
    }

    .news-archive-hero h1 {
        font-size: 2rem;
        line-height: 1.1;
    }

    .filter-section {
        padding: 30px 15px;
    }

    .search-input {
        padding: 12px 16px;
        font-size: 16px;
    }

    .filter-tags {
        gap: 15px;
    }

    .filter-tag {
        font-size: 14px;
        padding: 8px 12px;
    }

    .news-grid {
        gap: 30px 15px;
        padding: 0 15px;
    }

    .article-image {
        height: 200px;
    }

    .article-title {
        font-size: 20px;
        line-height: 1.2;
    }

    .article-excerpt {
        font-size: 16px;
        line-height: 1.5;
    }

    .read-more-link {
        font-size: 16px;
        padding: 12px 0;
    }

    .related-posts-grid {
        gap: 25px;
        padding: 0 15px;
    }

    .related-post-image {
        height: 180px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px 25px;
        padding: 0 30px;
    }

    .article-image {
        height: 280px;
    }

    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .related-post-image {
        height: 220px;
    }
}

@media (min-width: 1441px) {
    .news-grid {
        gap: 80px 40px;
    }

    .article-image {
        height: 400px;
    }

    .related-posts-grid {
        gap: 40px;
    }

    .related-post-image {
        height: 280px;
    }
}

@media (hover: hover) {
    .article-card:hover {
        transform: translateY(-4px);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .article-card:hover .article-image img {
        transform: scale(1.05);
        transition: transform 0.3s ease;
    }

    .filter-tag:hover {
        transform: translateY(-2px);
        transition: transform 0.2s ease;
    }

    .read-more-link:hover {
        transform: translateX(4px);
        transition: transform 0.2s ease;
    }
}

.search-input:focus,
.date-filter:focus {
    outline: 2px solid #0085d2;
    outline-offset: 2px;
}

.filter-tag:focus {
    outline: 2px solid #0085d2;
    outline-offset: 2px;
    border-radius: 4px;
}

.news-loading {
    padding: 60px 20px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0085d2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media print {
    .filter-section,
    .pagination,
    .related-posts-section {
        display: none;
    }

    .news-grid {
        display: block;
    }

    .news-article {
        break-inside: avoid;
        margin-bottom: 30px;
        border-bottom: 1px solid #ddd;
        padding-bottom: 20px;
    }

    .article-image {
        display: none;
    }
}

@media (prefers-contrast: high) {
    .filter-tag,
    .article-title,
    .article-excerpt {
        color: #000;
    }

    .search-input,
    .date-filter {
        border-color: #000;
    }

    .read-more-link {
        color: #000;
        text-decoration: underline;
    }
}

@media (prefers-reduced-motion: reduce) {
    .article-card:hover,
    .filter-tag:hover,
    .read-more-link:hover {
        transform: none;
        transition: none;
    }

    .article-image img,
    .article-card:hover .article-image img {
        transform: none;
        transition: none;
    }

    .loading-spinner {
        animation: none;
    }
}

/* Dark scheme overrides removed to keep archive light */

.filter-tags::-webkit-scrollbar {
    height: 6px;
}

.filter-tags::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.filter-tags::-webkit-scrollbar-thumb {
    background: #0085d2;
    border-radius: 3px;
}

.filter-tags::-webkit-scrollbar-thumb:hover {
    background: #006eb6;
}

.article-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.social-share-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-share-button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0085d2;
    color: #ffffff;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.social-share-button:hover {
    background-color: #006eb6;
    transform: scale(1.1);
}

.section-spacing {
    padding: 80px 0;
}

.section-spacing-top {
    padding-top: 80px;
}

.section-spacing-bottom {
    padding-bottom: 80px;
}

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

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

.news-grid {
    transition: opacity 0.3s ease;
}

.news-grid.loading {
    opacity: 0.6;
    pointer-events: none;
}

*:focus-visible {
    outline: 2px solid #0085d2;
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 100;
}

.skip-link:focus {
    top: 6px;
}
