body {
    font-family: 'Inter', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f8f9fa;
    color: #333;
}

header, footer {
    background-color: #e42014;
    color: white;
    padding: 10px 20px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-left {
    display: flex;
    align-items: center;
}

.logo-circle {
    background-color: white;
    border-radius: 50%;
    height: 36px;
    width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.logo-circle img {
    height: 24px;
    width: 24px;
}

.navbar-right a {
    color: white;
    text-decoration: none;
    margin-left: 15px;
    font-weight: 500;
    transition: 0.3s;
}

.navbar-right a:hover {
    text-decoration: underline;
}

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

h2, h3 {
    color: #e42014;
    margin-top: 20px;
}

ul {
    list-style: none;
    padding: 0;
}

ul li {
    background: white;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

button, input[type="submit"] {
    background-color: #e42014;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 15px;
    margin-top: 5px;
    transition: 0.3s;
}

button:hover, input[type="submit"]:hover {
    background-color: #b31710;
}

textarea, input[type="text"], input[type="password"], input[type="file"] {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.login-container {
    max-width: 400px;
    margin: 50px auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
#articles-container {
    background: white;
    padding: 10px;
    margin-top: 10px;
    border-radius: 5px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.1);
}
.theme-block {
    margin-bottom: 30px;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    border-left: 5px solid #e42014;
}

.theme-title {
    margin-top: 0;
    font-size: 1.4em;
    color: #333;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.article-card {
    padding: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.article-header {
    font-weight: bold;
    margin-bottom: 5px;
}

.article-meta {
    font-size: 0.85em;
    color: #666;
}

.article-actions {
    margin-top: 5px;
}

.btn-read {
    display: inline-block;
    padding: 3px 8px;
    font-size: 0.9em;
    background-color: #e42014;
    color: white;
    border-radius: 4px;
    text-decoration: none;
}

.btn-read:hover {
    background-color: #c4110c;
}
.theme-block {
    margin-bottom: 30px;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    border-left: 5px solid #e42014;
}

.theme-title {
    margin-top: 0;
    font-size: 1.4em;
    color: #333;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.articles-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.article-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s ease;
}

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

.article-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.article-card .meta {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.article-card .summary {
    font-size: 0.95rem;
}

.articles-container {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-top: 1rem;
}

.article-line {
    border-bottom: 1px solid #ddd;
    padding: 0.6rem 0.3rem;
    cursor: pointer;
    transition: background 0.2s;
}

.article-line:hover {
    background-color: #f8f8f8;
}

.article-main {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    font-size: 0.95rem;
}

.title {
    flex-grow: 1;
    font-weight: 500;
    color: #0056b3;
    text-decoration: none;
}

.source, .date, .priority {
    font-size: 0.85rem;
    color: #666;
}

.summary {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #333;
}

.hidden {
    display: none;
}

#load-more-btn {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 4px;
}

#load-more-btn:hover {
    background-color: #0056b3;
}
.toggle-summary {
    border: none;
    background: white;
    color: black;
    font-size: 1rem;
    cursor: pointer;
    padding: 0 4px;
    margin-right: 0.3rem;
    line-height: 1;
}
.toggle-summary:focus {
    outline: 1px solid #ccc;
}
