/* General Page Setup */
body {
    margin: 0;
    font-family: "Georgia", serif;
    background-color: #f9f7f1;
    color: #111;
}

/* Navigation Bar */
.navbar {
    background-color: #111;
    color: white;
    padding: 0.6rem 0;
    border-bottom: 3px solid #b22222;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.navbar a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease;
}

.navbar a:hover {
    color: #ff5555;
}

/* Logo */
.logo-container img {
    display: block;
    margin: 1rem auto;    /* space above/below */
    width: 500px;         /* bigger main logo */
    max-width: 95%;       /* responsive on smaller screens */
    height: auto;
}


/* Headline + Tagline */
.headline {
    text-align: center;
    font-size: 2rem;
    margin: 0.5rem 0;
    color: #222;
}

.tagline {
    text-align: center;
    font-style: italic;
    color: #555;
    margin-bottom: 2rem;
}

/* Main Content */
.content {
    max-width: 900px;   /* Slightly wider for more space */
    margin: 0 auto;
    background-color: #fff;
    padding: 2rem;
    border: 1px solid #ccc;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 8px;
}

/* Section Headings */
.content h2 {
    color: #b22222;
    border-bottom: 2px solid #b22222;
    padding-bottom: 0.3rem;
}

/* Articles Grid */
.articles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Up to 5 across on large screens */
    gap: 20px;
    margin-top: 20px;
}

/* Article Card */
.article-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: transform 0.2s;
}

.article-card:hover {
    transform: translateY(-3px);
}

/* Article Thumbnail */
.article-thumb {
    width: 100%;       /* Fill card width */
    height: 130px;     /* Fixed smaller height */
    object-fit: cover; /* Keep proportions, crop excess */
}

/* Article Text */
.article-text {
    padding: 15px;
}

.article-text h3 a {
    text-decoration: none;
    color: #000;
}

.article-text h3 a:hover {
    text-decoration: underline;
}

.article-text .meta {
    font-size: 0.85em;
    color: #555;
    margin-bottom: 10px;
}

/* Footer */
footer {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    padding: 1rem;
    margin-top: 2rem;
    border-top: 1px solid #ccc;
}

/* Responsive tweaks */
@media (max-width: 600px) {
    .headline {
        font-size: 1.5rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .logo-container img {
        width: 90%;
    }
}
