/* Newspaper Style CSS - Black and White Theme */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* SEO and Accessibility Helpers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000000;
    color: #ffffff;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
    font-weight: bold;
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body {
    font-family: 'Times New Roman', Times, serif;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.6;
    font-size: 16px;
    max-width: 100%;
    overflow-x: hidden;
    word-wrap: break-word;
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent horizontal overflow */
.main-content, .header-content, .footer-content {
    max-width: 100%;
    overflow-x: hidden;
}

/* Header Styles */
.header {
    background: #000000;
    color: #ffffff;
    padding: 20px 0;
    border-bottom: 3px solid #000000;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.site-title {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.site-subtitle {
    font-size: 1.1rem;
    font-weight: normal;
    text-align: center;
    margin-bottom: 20px;
    font-style: italic;
    color: #f0f0f0;
    letter-spacing: 1px;
    line-height: 1.3;
}

.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #cccccc;
}

.search-container {
    display: flex;
    gap: 10px;
}

.search-input {
    padding: 8px 12px;
    border: 1px solid #ccc;
    font-size: 14px;
    width: 250px;
}

.search-btn {
    padding: 8px 16px;
    background: #ffffff;
    color: #000000;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

.search-btn:hover {
    background: #cccccc;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Article Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

/* Ensure grid items don't overflow */
.articles-grid > * {
    min-width: 0;
    overflow-wrap: break-word;
}

/* Individual Article Card */
.article-card {
    border: 2px solid #000000;
    padding: 20px;
    background: #ffffff;
    transition: box-shadow 0.3s;
}

.article-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.article-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 8px;
    border-bottom: 2px solid #000000;
    padding-bottom: 8px;
}

.article-subtitle {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 10px;
    color: #333333;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #666666;
}

.article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border: 1px solid #000000;
    margin-bottom: 15px;
    background: #f5f5f5 url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="150"><rect width="100%" height="100%" fill="%23f0f0f0" stroke="%23ccc" stroke-width="1"/><text x="50%" y="45%" text-anchor="middle" font-family="Arial,sans-serif" font-size="14" fill="%23999">Image</text><text x="50%" y="65%" text-anchor="middle" font-family="Arial,sans-serif" font-size="12" fill="%23999">Placeholder</text></svg>') center/contain no-repeat;
}

.article-preview {
    margin-bottom: 15px;
    line-height: 1.8;
}

.article-tags {
    margin-bottom: 15px;
}

.tag {
    display: inline-block;
    background: #000000;
    color: #ffffff;
    padding: 4px 8px;
    margin: 2px;
    font-size: 0.8rem;
}

.article-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #cccccc;
    gap: 15px;
}

.read-more-btn {
    background: #000000;
    color: #ffffff;
    padding: 8px 16px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: background 0.3s;
    border: 1px solid #000000;
    display: inline-block;
}

.read-more-btn:hover {
    background: #333333;
}

.like-section {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.like-btn {
    background: none;
    border: 1px solid #000000;
    padding: 6px 10px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
    min-width: 35px;
    text-align: center;
}

.like-btn:hover,
.like-btn.liked {
    background: #000000;
    color: #ffffff;
}

.like-count {
    font-weight: bold;
    font-size: 0.9rem;
    min-width: 20px;
}

.share-section {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.share-btn {
    padding: 5px 10px;
    background: #000000;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.8rem;
    transition: background 0.3s;
    white-space: nowrap;
}

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

/* Full Article View */
.full-article {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.full-article .article-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-align: center;
}

.full-article .article-subtitle {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 20px;
}

.full-article .article-meta {
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    font-size: 1rem;
}

.content-section {
    margin-bottom: 30px;
}

.content-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 10px;
    border-bottom: 1px solid #000000;
    padding-bottom: 5px;
}

.content-subtitle {
    font-size: 1.3rem;
    font-style: italic;
    margin-bottom: 15px;
    color: #333333;
}

.content-text {
    margin-bottom: 20px;
    line-height: 1.8;
    text-align: justify;
    font-size: 12pt; /* APA standard font size */
}

.content-text p {
    text-indent: 1em; /* Proper paragraph indent for each paragraph */
    margin-bottom: 1em;
}

.content-text p:first-child {
    text-indent: 1em; /* Ensure first paragraph also gets indent */
}

/* APA Style Formatting */
.apa-references {
    margin-top: 40px;
    border-top: 2px solid #000000;
    padding-top: 30px;
}

.apa-references h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

.apa-reference {
    margin-bottom: 15px;
    padding-left: 0.5in; /* Hanging indent */
    text-indent: -0.5in; /* Hanging indent */
    line-height: 1.8;
    font-size: 12pt;
}

.apa-reference:first-line {
    text-indent: 0; /* Remove indent from first line */
}

/* APA Title formatting */
.full-article .article-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-align: center;
    font-weight: bold;
    line-height: 1.2;
}

.full-article .article-subtitle {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 20px;
    font-style: italic;
    font-weight: normal;
}

/* APA Author and date formatting */
.full-article .article-meta {
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    font-size: 1rem;
    text-align: center;
}

/* APA Section headings */
.content-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 10px;
    border-bottom: 1px solid #000000;
    padding-bottom: 5px;
    margin-top: 25px;
}

.content-subtitle {
    font-size: 1.3rem;
    font-style: italic;
    margin-bottom: 15px;
    color: #333333;
    font-weight: bold;
}

/* APA In-text citations */
.citation {
    font-weight: normal;
    font-style: normal;
}

/* APA Block quotes (for long quotes) */
.blockquote {
    margin: 20px 0;
    padding-left: 0.5in;
    font-style: italic;
    line-height: 1.8;
}

/* APA Figure captions */
.figure-caption {
    font-style: italic;
    text-align: left;
    margin-top: 10px;
    font-size: 11pt;
    line-height: 1.5;
}

/* APA Table formatting */
.apa-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 11pt;
}

.apa-table th,
.apa-table td {
    border: 1px solid #000000;
    padding: 8px 12px;
    text-align: left;
}

.apa-table th {
    background-color: #f0f0f0;
    font-weight: bold;
}

.apa-table caption {
    font-style: italic;
    text-align: left;
    margin-bottom: 10px;
    font-size: 11pt;
}

.content-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border: 1px solid #000000;
    margin: 20px auto;
    display: block;
    background: #f5f5f5 url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="150"><rect width="100%" height="100%" fill="%23f0f0f0" stroke="%23ccc" stroke-width="1"/><text x="50%" y="45%" text-anchor="middle" font-family="Arial,sans-serif" font-size="14" fill="%23999">Content</text><text x="50%" y="65%" text-anchor="middle" font-family="Arial,sans-serif" font-size="12" fill="%23999">Image</text></svg>') center/contain no-repeat;
}

/* Footer */
.footer {
    background: #000000;
    color: #ffffff;
    padding: 40px 0;
    margin-top: 60px;
}

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

.open-content-notice {
    max-width: 800px;
    margin: 0 auto 40px auto;
    padding: 25px;
    background: #1a1a1a;
    border: 2px solid #333333;
    text-align: center;
}

.open-content-notice p {
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 1rem;
}

.open-content-notice p:last-child {
    margin-bottom: 0;
    font-style: italic;
    color: #cccccc;
}

.open-content-notice strong {
    color: #ffffff;
    font-weight: bold;
}

.dataset-notice {
    max-width: 800px;
    margin: 0 auto 40px auto;
    padding: 20px;
    background: #0a0a0a;
    border: 1px solid #2a2a2a;
    text-align: center;
}

.dataset-notice p {
    margin: 0;
    line-height: 1.6;
    font-size: 0.95rem;
    color: #cccccc;
}

.dataset-notice a {
    color: #6ca0dc;
    text-decoration: underline;
}

.dataset-notice a:hover {
    color: #ffffff;
}

.dataset-notice strong {
    color: #ffffff;
    font-weight: bold;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.2rem;
    font-style: normal;
    font-weight: normal;
    line-height: 1.4;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    font-size: 14px;
    font-family: inherit;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.submit-btn {
    background: #ffffff;
    color: #000000;
    padding: 12px 30px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    width: 100%;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #cccccc;
}

.copyright-section {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #333333;
}

.copyright-section p {
    font-size: 0.9rem;
    color: #cccccc;
}

.copyright-section a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
}

.copyright-section a:hover {
    color: #cccccc;
    text-decoration: underline;
}

/* Search Results */
.search-results {
    margin-top: 20px;
}

.search-results h2 {
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.no-results {
    text-align: center;
    color: #666666;
    font-style: italic;
    margin: 40px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .site-title {
        font-size: 1.8rem;
        margin-bottom: 10px;
        word-wrap: break-word;
    }
    
    .site-subtitle {
        font-size: 0.95rem;
        margin-bottom: 15px;
        padding: 0 10px;
        line-height: 1.4;
    }
    
    .header {
        padding: 15px 0;
    }
    
    .header-content {
        padding: 0 15px;
    }
    
    .navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-menu {
        gap: 15px;
        font-size: 0.9rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-menu a {
        font-size: 0.9rem;
        padding: 5px 10px;
        white-space: nowrap;
    }
    
    .search-container {
        flex-direction: row;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .search-input {
        width: 100%;
        flex: 1;
        padding: 6px 10px;
        font-size: 13px;
        min-width: 0;
    }
    
    .search-btn {
        padding: 6px 12px;
        font-size: 13px;
        flex-shrink: 0;
    }
    
    .main-content {
        padding: 0 15px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .article-card {
        padding: 15px;
        word-wrap: break-word;
    }
    
    .article-title {
        font-size: 1.4rem;
        line-height: 1.3;
        word-wrap: break-word;
    }
    
    .article-subtitle {
        font-size: 1.1rem;
        line-height: 1.4;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
    
    .article-image {
        height: 180px;
    }
    
    .full-article .article-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .full-article .article-subtitle {
        font-size: 1.3rem;
    }
    
    .content-title {
        font-size: 1.5rem;
    }
    
    .article-actions {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .read-more-btn {
        text-align: center;
        padding: 10px 20px;
        font-size: 0.9rem;
        order: 1;
    }
    
    .like-section {
        justify-content: center;
        order: 2;
    }
    
    .share-section {
        justify-content: center;
        gap: 6px;
        flex-wrap: wrap;
        order: 3;
    }
    
    .share-btn {
        font-size: 0.75rem;
        padding: 6px 10px;
        min-width: 60px;
    }
    
    .read-more-btn {
        text-align: center;
        padding: 12px 20px;
    }
    
    /* Footer mobile adjustments */
    .footer {
        margin-top: 0px !important;
        padding: 15px 0 !important;
    }
    
    .footer-content {
        padding: 0 15px;
    }
    
    .footer-nav {
        margin-bottom: 15px;
        padding: 10px 0;
    }
    
    .footer-nav ul {
        margin: 0;
        padding: 0;
    }
    
    .open-content-notice {
        margin: 0 auto 15px auto !important;
        padding: 12px !important;
        font-size: 0.85rem;
    }
    
    .dataset-notice {
        margin: 0 auto 15px auto !important;
        padding: 10px !important;
        font-size: 0.8rem;
    }
    
    .contact-form {
        margin-bottom: 15px;
    }
    
    .main-content {
        margin-bottom: 20px !important;
    }
    
    .pagination {
        margin: 15px 0 0 0 !important;
        padding: 10px 0 !important;
    }
    
    .pagination-info {
        margin: 10px 0 !important;
    }
    
    .pagination-info-bottom {
        margin: 10px 0 0 0 !important;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.3rem;
        margin-bottom: 8px;
        letter-spacing: 0.5px;
        line-height: 1.2;
        padding: 0 10px;
        text-align: center;
    }
    
    .header {
        padding: 8px 0;
    }
    
    .header-content {
        padding: 0 10px;
    }
    
    .navigation {
        gap: 8px;
    }
    
    .nav-menu {
        flex-direction: row;
        gap: 8px;
        text-align: center;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .nav-menu a {
        font-size: 0.75rem;
        padding: 6px 10px;
        min-width: 70px;
        text-align: center;
    }
    
    .search-container {
        flex-direction: row;
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
        gap: 5px;
    }
    
    .search-input {
        width: 100%;
        flex: 1;
        font-size: 12px;
        padding: 8px 10px;
        min-width: 0;
    }
    
    .search-btn {
        padding: 8px 12px;
        font-size: 11px;
        flex-shrink: 0;
        min-width: 50px;
    }
    
    .main-content {
        padding: 0 10px;
    }
    
    .article-card {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .article-title {
        font-size: 1.2rem;
        line-height: 1.3;
        margin-bottom: 8px;
    }
    
    .article-subtitle {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 3px;
        font-size: 0.8rem;
        text-align: center;
    }
    
    .article-image {
        height: 150px;
        margin-bottom: 10px;
    }
    
    .article-preview {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .tag {
        font-size: 0.7rem;
        padding: 3px 6px;
        margin: 1px;
    }
    
    .article-actions {
        gap: 12px;
        margin-top: 12px;
        padding-top: 12px;
    }
    
    .read-more-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
        text-align: center;
    }
    
    .like-section {
        justify-content: center;
        gap: 6px;
    }
    
    .like-btn {
        padding: 5px 8px;
        font-size: 0.85rem;
        min-width: 30px;
    }
    
    .like-count {
        font-size: 0.85rem;
    }
    
    .share-section {
        justify-content: center;
        gap: 4px;
        flex-wrap: wrap;
    }
    
    .share-btn {
        font-size: 0.7rem;
        padding: 5px 8px;
        min-width: 55px;
    }
    
    .read-more-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
        text-align: center;
    }
    
    .full-article {
        padding: 20px 10px;
    }
    
    .full-article .article-title {
        font-size: 1.5rem;
        line-height: 1.2;
    }
    
    .full-article .article-subtitle {
        font-size: 1.1rem;
    }
    
    .full-article .article-meta {
        gap: 10px;
        flex-direction: column;
    }
    
    .content-title {
        font-size: 1.3rem;
        line-height: 1.3;
    }
    
    .content-subtitle {
        font-size: 1.1rem;
    }
    
    .content-text {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .contact-form {
        padding: 0 10px;
    }
    
    .open-content-notice {
        margin: 0 10px 30px 10px;
        padding: 20px 15px;
    }
    
    .open-content-notice p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 8px;
        font-size: 13px;
    }
    
    .submit-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .copyright-section {
        margin-top: 20px;
        padding-top: 15px;
    }
    
    .copyright-section p {
        font-size: 0.8rem;
    }
}

/* SEO and Navigation Enhancements */
.breadcrumb {
    margin: 20px 0;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.breadcrumb li {
    font-size: 0.9rem;
}

.breadcrumb li:not(:last-child)::after {
    content: "›";
    margin-left: 8px;
    color: #666;
}

.breadcrumb a {
    color: #000;
    text-decoration: none;
}

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

.breadcrumb li[aria-current="page"] {
    color: #666;
    font-weight: normal;
}

/* Article Tags */
.article-tags {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: #f0f0f0;
    color: #333;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 0.8rem;
    text-decoration: none;
    border: 1px solid #ddd;
}

.tag:hover {
    background: #e0e0e0;
}

/* Performance and Accessibility */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Focus styles for better accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid #000;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    body {
        background: #fff;
        color: #000;
    }
    
    .header {
        background: #000;
        color: #fff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .fade-in {
        animation: none;
    }
    
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* Footer SEO Enhancements */
.footer-nav {
    margin-bottom: 30px;
}

.footer-nav h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    padding-bottom: 5px;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.footer-nav li {
    margin: 0;
}

.footer-nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-nav a:hover {
    color: #cccccc;
    text-decoration: underline;
}

.footer-seo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.footer-seo h4 {
    margin-bottom: 15px;
    font-size: 1rem;
    color: #ccc;
}

.topic-list,
.location-list {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 2;
    column-gap: 15px;
}

.topic-list li,
.location-list li {
    margin-bottom: 8px;
    break-inside: avoid;
}

.topic-list a,
.location-list a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.85rem;
    display: block;
    padding: 2px 0;
}

.topic-list a:hover,
.location-list a:hover {
    color: #999;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer-nav ul {
        flex-direction: column;
        gap: 8px;
    }
    
    .footer-seo {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .topic-list,
    .location-list {
        columns: 1;
    }
}

/* Pagination Styles */
.pagination-info {
    text-align: center;
    margin: 20px 0;
    color: #666;
    font-size: 0.9rem;
}

.pagination {
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
}

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination-numbers {
    display: flex;
    gap: 5px;
    align-items: center;
}

.pagination-btn,
.pagination-number {
    padding: 8px 12px;
    text-decoration: none;
    color: #000;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.pagination-btn:hover,
.pagination-number:hover {
    background: #f5f5f5;
    border-color: #bbb;
}

.pagination-current {
    background: #000;
    color: #fff;
    border-color: #000;
    font-weight: bold;
}

.pagination-current:hover {
    background: #000;
    color: #fff;
}

.pagination-ellipsis {
    padding: 8px 4px;
    color: #666;
}

.pagination-info-bottom {
    text-align: center;
    margin-top: 15px;
    color: #666;
    font-size: 0.85rem;
}

.pagination-prev,
.pagination-next {
    font-weight: 500;
}

@media (max-width: 768px) {
    .pagination-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .pagination-numbers {
        order: 1;
    }
    
    .pagination-prev {
        order: 0;
    }
    
    .pagination-next {
        order: 2;
    }
    
    .pagination-btn,
    .pagination-number {
        padding: 10px 15px;
    }
}

/* Loading and transition effects */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Print styles for newspaper look */
@media print {
    .header, .footer, .search-container, .article-actions { display: none; }
    body { background: white; }
    .article-card { border: 1px solid #000; page-break-inside: avoid; }
}