* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Georgia, 'Times New Roman', serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.7;
    width: 100%;
    overflow-x: hidden;
}

body > header {
    color: white;
    padding: 0;
    display: flex;
    justify-content: center;
    margin: 0 auto;
    width: 100%;
}

.header-content {
    max-width: 640px;
    width: calc(100% - 20px);
    background-color: #d32f2f;
    padding: 15px 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin: 0 10px;
}

.header-content h1 {
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
}

.header-content h1 a {
    color: white;
    text-decoration: none;
}

.header-content h1 a:hover {
    text-decoration: underline;
}

.header-logo {
    height: 35px;
    width: auto;
    display: block;
}

.container {
    max-width: 660px;
    margin: 20px auto;
    padding: 0 10px;
    width: 100%;
}

.articles-grid {
    display: block;
    width: 100%;
}

.article-card {
    background: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: block;
    margin-bottom: 20px;
    width: 100%;
}

.article-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.article-thumbnail {
    width: 100%;
    max-width: 640px;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background-color: #e0e0e0;
    display: block;
}

.article-date {
    margin-top: 2px;
    margin-bottom: 5px;
    padding: 0 10px;
    font-size: 14px;
    color: #666;
    font-style: italic;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.3;
}

.article-content {
    padding: 0 10px 20px 10px;
}

.article-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.15;
    color: #1a1a1a !important;
    font-family: Arial, Helvetica, sans-serif;
    margin-top: 0;
}

.article-excerpt {
    color: #2c2c2c;
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 18px;
    font-family: Georgia, 'Times New Roman', serif;
}

/* Subheading for top articles */
.article-subheading {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 18px;
    font-weight: normal;
    color: #2c2c2c;
    line-height: 1.5;
    margin-top: 0;
}

/* Video container in article cards */
.article-video {
    width: 100%;
    max-width: 640px;
    aspect-ratio: 16 / 9;
}

.article-video > div {
    width: 100% !important;
    max-width: 640px !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
}

/* Breaking news badge */
.breaking-badge {
    background: #d32f2f;
    color: white;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 10px;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article-card {
    position: relative;
}

.article-card.breaking {
    border-left: 4px solid #d32f2f;
}

.article-card.pinned {
    border-left: 4px solid #ff9800;
}

.article-card.pinned.breaking {
    border-left: 4px solid #d32f2f;
}

.article-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    color: #666;
    font-family: Arial, Helvetica, sans-serif;
}

.no-thumbnail {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 48px;
    width: 100%;
    max-width: 640px;
    aspect-ratio: 16 / 9;
}

/* Mobile responsive */
@media (max-width: 640px) {
    .header-content {
        max-width: 100%;
        width: 100%;
        margin: 0;
    }

    .container {
        padding: 0 15px;
    }

    .article-date {
        padding: 0 15px;
    }

    .article-content {
        padding: 0 15px 20px 15px;
    }

    .article-thumbnail,
    .no-thumbnail {
        max-width: 100%;
        width: 100%;
    }

    .article-title {
        font-size: 24px;
    }

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