/* General Body & Typography */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fdfdfd;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header */
.site-header {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    padding: 20px 0;
    margin-bottom: 30px;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header .site-title {
    font-size: 2rem;
    font-weight: 600; /* Match h1 style as requested */
    color: #333;
}

.site-header .site-title:hover {
    text-decoration: none;
}

.site-header .back-to-main-site {
    font-size: 0.9rem; /* Smaller font size */
    font-weight: 400;   /* Normal font weight */
    color: #555;         /* A more subtle color */
}

/* Footer */
.site-footer {
    background-color: #fff;
    border-top: 1px solid #eee;
    padding: 20px 0;
    margin-top: 40px;
    font-size: 0.9em;
    color: #777;
    text-align: center;
}

/* Article List (Cards) */
.article-list {
    display: grid;
    gap: 30px;
}

.article-card {
    background-color: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 0; /* Padding will be on the content div */
    overflow: hidden; /* To contain the image's border-radius */
    transition: box-shadow 0.2s ease-in-out;
}

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

.article-card h2 {
    margin-top: 0;
    font-size: 1.5rem;
}

.article-card h2 a {
    color: #333;
}

.article-card .meta {
    font-size: 0.9em;
    color: #888; /* Lighter grey for the date */
    margin-bottom: 15px;
}

.article-card .summary {
    margin-bottom: 15px;
}

.article-card footer a {
    font-weight: 600;
}

/* Styles for optional article card image */
.article-card-image-link {
    display: block;
}

.article-card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover; /* Crop image to fit */
    border-bottom: 1px solid #eee;
}

.article-card-content {
    padding: 25px;
}

/* Single Article */
.single-article header {
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
    padding-bottom: 20px;
}

.single-article h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.single-article .meta {
    font-size: 0.9em;
    color: #888; /* Lighter grey for the date */
}
.single-article .meta p {
    margin: 0;
}

.single-article .content {
    font-size: 1.1rem;
}

/* Back link on single article page */
.single-article-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.back-link a {
    font-weight: 600;
    font-size: 0.9em;
    color: #555;
}

.single-article-footer .back-link a {
    font-weight: 600;
}

/* Article Tags */
.article-tags {
    font-size: 0.9em;
    color: #888;
    margin-bottom: 25px;
}

.article-tags strong {
    color: #555;
    margin-right: 8px;
}

.article-tags a {
    display: inline-block;
    background-color: #f1f1f1;
    color: #555;
    padding: 4px 10px;
    border-radius: 15px; /* Pill shape */
    margin-right: 5px;
    margin-bottom: 5px;
    text-decoration: none;
    font-weight: 500;
}