.archive-header {
    width: 100%;
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.archive-header h1 {
    margin-bottom: 10px;
}

.archive-header p {
    color: #ccc;
    font-size: 1.1rem;
}

.filter-controls {
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap on smaller screens */
    justify-content: center;
    gap: 20px;
    width: 100%;
    margin-bottom: 40px;
}

.search-bar {
    background-color: #2a2a2e;
    border: 1px solid #444;
    border-radius: 8px;
    color: white;
    padding: 12px 16px;
    font-size: 1rem;
    min-width: 300px;
    transition: border-color 0.3s, box-shadow 0.3s;
    margin-bottom: 0px;
    height: 50px;
}

.search-bar:focus {
    outline: none;
    border-color: #76b5c5;
    box-shadow: 0 0 0 3px rgba(118, 181, 197, 0.3);
}

.filter-select {
    background-color: #2a2a2e;
    border: 1px solid #444;
    border-radius: 8px;
    color: white;
    padding: 12px 16px;
    font-size: 1rem;
    cursor: pointer;
}

/* The main grid for the newsletter cards */
.newsletter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    width: 100%;
}

/* Styling for each individual newsletter card */
.newsletter-card {
    background-color: rgb(40, 40, 42);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    text-align: left;
    transition: transform 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}

.newsletter-card:hover {
    transform: translateY(-5px);
    border-color: #76b5c5;
}

.card-meta {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 8px;
}

.card-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.3;
}

.card-abstract {
    font-size: 1rem;
    color: #ccc;
    line-height: 1.6;
    flex-grow: 1; /* Allows abstract to fill space, pushing tags down */
    margin-bottom: 20px;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background-color: #3a3a3e;
    color: #76b5c5;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.card-link {
    text-decoration: none;
    color: inherit;
}