body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #e0e0e0; /* Updated to match indexStyle.css */
    color: #333;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

.app-container {
    width: 100%;
    max-width: 420px;
    min-height: 100vh;
    background-color: #ffffff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    position: relative;
    padding-bottom: 70px; /* Space for bottom navigation bar */
}

/* Status Bar (Consistent) */
.status-bar-placeholder {
    padding: 5px 15px; display: flex; justify-content: space-between; align-items: center;
    font-size: 14px; color: #000; height: 30px; background-color: #ffffff;
}
.status-bar-placeholder .time { font-weight: 500; }
.notch-placeholder {
    width: 10px; height: 10px; background-color: #000; border-radius: 50%;
    position: absolute; left: 50%; transform: translateX(-50%); top: 10px;
}
.status-icons i { margin-left: 8px; }

/* Page Header for News */
.app-header-news {
    background-color: #fff; /* White background for header area */
    /* border-bottom: 1px solid #f0f0f0; */ /* Removed to match searchStyle.css .app-header */
}
.main-header-news {
    display: flex;
    justify-content: space-between; /* Changed to match searchStyle.css .main-header */
    align-items: center;
    padding: 10px 15px; /* Changed to match searchStyle.css .main-header */
    /* height: 26px; */ /* Removed to match searchStyle.css .main-header (no fixed height) */
}
.main-header-news h1 {
    font-size: 1.05em; /* Match search.html h1 */
    font-weight: 600; /* Match search.html h1 */
    margin: 0;
    color: #1c1c1e; /* Match search.html h1 */
    text-align: center;
    flex-grow: 1;
}
/* Optional: if you add icons back like search.html
.main-header-news .header-icon {
    font-size: 1.2em;
    color: #444;
}
.main-header-news .header-icon-link {
    text-decoration: none;
} */


/* Search and Filter Section for News */
.search-filter-section-news {
    padding: 10px 15px 15px 15px;
    background-color: #fff; /* White background */
    /* border-bottom: 1px solid #f0f0f0; */ /* Optional separator */
}
.search-bar-news { /* Style like search.html's search bar */
    display: flex;
    align-items: center;
    background-color: #f0f2f5;
    border-radius: 10px;
    padding: 10px 15px;
    margin-bottom: 15px;
}
.search-bar-news input {
    flex-grow: 1;
    border: none;
    background-color: transparent;
    outline: none;
    font-size: 0.95em;
    color: #333;
}
.search-bar-news input::placeholder {
    color: #8e8e93;
}
.search-icon-news {
    color: #8e8e93;
    font-size: 0.95em;
}

.topic-filter-buttons-news { /* Style like search.html's filter buttons */
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.topic-filter-buttons-news::-webkit-scrollbar {
    display: none;
}
.topic-filter-btn {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    color: #555;
    padding: 7px 14px;
    border-radius: 18px;
    font-size: 0.85em;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.topic-filter-btn.active {
    background-color: #e6f5e7;
    color: #34c759;
    border-color: #d0e8d2;
    font-weight: 600;
}

/* News Feed Content */
.news-feed-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 15px; /* Padding around the list of articles */
    background-color: #ffffff; /* Match page background */
}

.news-article-card {
    background-color: #ffffff; /* White card */
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    margin-bottom: 20px;
    overflow: hidden; /* To contain the "See more" bar and clip overflowing pseudo-elements */
    position: relative; /* For the "New!" badge */
}

.news-article-card.is-new::after {
    content: "New!";
    position: absolute;
    top: 50px;
    right: -18px; /* Changed from -30px to make the badge visible */
    /*background-color: #ff3b30; /*Red for "New!" badge */
    color: #34c759;
    padding: 3px 30px 3px 10px; /* Padding to make the slanted effect */
    font-size: 0.90em;
    font-weight: bold;
    transform: rotate(40deg) translateY(-50%);
    transform-origin: top right;
    line-height: 1.2;
}


.article-main-content {
    padding: 15px;
    display: flex;
    gap: 15px;
}

.article-image-placeholder {
    width: 80px; /* Approximate from image */
    height: 80px;
    background-color: #e0e0e0;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8em;
    color: #777;
    flex-shrink: 0;
    text-align: center;
}

.article-text-content {
    flex-grow: 1;
}
.article-text-content h3 {
    font-size: 1.05em;
    font-weight: 600;
    margin: 0 10px 3px 0;
}
.article-meta {
    font-size: 0.8em;
    color: #777;
    margin-bottom: 8px;
}
.article-topic-tag {
    display: inline-block;
    border: 1px solid #b0b0b0;
    color: #555;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    margin-bottom: 10px;
}

.article-summary {
    font-size: 0.9em;
    color: #333;
    line-height: 1.5;
    text-align: justify; /* Align text to both left and right */
    /* For text truncation:
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    */
    margin: 0; /* Keep existing margin rule */
    padding: 0 15px 15px 15px; /* Add padding: 0 top, 15px right, 15px bottom, 15px left */
}

.see-more-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 10px 15px;
    background-color: #f0f2f5; /* Light grey bar */
    border-top: 1px solid #e8e8e8;
}
.see-more-button {
    background: none;
    border: none;
    color: #333;
    font-weight: 500;
    font-size: 0.9em;
    cursor: pointer;
}
.see-more-button i {
    margin-left: 5px;
}