/* News feed container */
.news-feed {
    max-width: 800px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
}

.news-article {
    margin: 15px 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}
.article-image {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    display: block;
}
.news-article.active {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Article header */
.article-header {
    padding: 15px;
    background: #f8f9fa;
    cursor: pointer;
    transition: background 0.3s ease;
}

.article-header:hover {
    background: #f1f3f5;
}

.article-title {
    margin: 0;
    color: #1a0dab;
    font-size: 1.2em;
}

.article-meta {
    margin-top: 8px;
    font-size: 0.9em;
    color: #70757a;
}

.article-meta time {
    margin-left: 15px;
}

/* Article content */
.article-content {
    padding: 15px;
    border-top: 1px solid #eee;
    background: #fff;
}

.article-content h2 {
    font-size: 1.2rem;
    line-height: 1.4;
    margin: 0 0 10px 0;
    color: #1a1a1a;
}

.meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: #666;
}

.source {
    font-weight: 600;
}

time {
    color: #888;
}
.news-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    margin-bottom: 15px;
    border-radius: 4px;
}

.external-link {
    display: inline-block;
    margin-top: 15px;
    color: #1a0dab;
    text-decoration: none;
    font-weight: bold;
}

.external-link:hover {
    text-decoration: underline;
}

/* Date navigation */
.date-nav {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    padding: 10px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.nav-button {
    padding: 8px 15px;
    background: #f0f0f0;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: background 0.3s ease;
}

.nav-button:hover {
    background: #e0e0e0;
}

/* Error messages */
.news-error {
    color: #dc3545;
    padding: 20px;
    border: 1px solid #f8d7da;
    border-radius: 4px;
    margin: 20px 0;
}

/* No articles message */
.no-articles {
    text-align: center;
    padding: 40px 0;
    color: #666;
    font-style: italic;
}

.excerpt {
    font-size: 1rem;
    line-height: 1.5;
    color: #444;
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    padding: 8px 16px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.read-more:hover {
    background: #0056b3;
}

/* Tablet Styles (768px - 1023px) */
@media (min-width: 768px) {
    .news-article {
        display: flex;
        gap: 20px;
        margin: 20px 0;
    }

    .article-image {
        width: 40%;
        max-height: 250px;
        min-width: 300px;
    }

    .article-content {
        padding: 20px 20px 20px 0;
        flex: 1;
    }

    .article-content h2 {
        font-size: 1.4rem;
    }

    .meta {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* Desktop Styles (1024px and up) */
@media (min-width: 1024px) {
    .news-article {
        max-width: 1200px;
        margin: 25px auto;
    }

    .article-image {
        width: 35%;
        max-height: 300px;
    }

    .article-content h2 {
        font-size: 1.6rem;
    }

    .excerpt {
        font-size: 1.1rem;
    }

    .read-more {
        padding: 10px 20px;
        font-size: 1rem;
    }
}

/* Special Cases */
@media (max-width: 480px) {
    .article-image {
        max-height: 180px;
    }

    .article-content h2 {
        font-size: 1.1rem;
    }

    .excerpt {
        font-size: 0.95rem;
    }
}

/* Orientation-specific adjustments */
@media (orientation: landscape) and (max-width: 767px) {
    .article-image {
        max-height: 250px;
    }
}