/* archive-grouping-styles.css */

.main-content-wrapper {
    max-width: 1200px;
    /* Adjust this value to your preferred max width */
    margin-left: auto;
    /* Centers the content horizontally */
    margin-right: auto;
    /* Centers the content horizontally */
    padding: 0 20px;
    /* Adds side padding on smaller screens */
    box-sizing: border-box;
}

.archive-header {
    text-align: center;
    /* Center the title */
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 40px;
}

.archive-title {
    font-size: 3em;
    font-weight: 500;
    color: #222;
    margin-bottom: 5px;
}

/* --- POST GROUPING HEADER STYLES --- */
.post-group {
    margin-bottom: 50px;
    padding: 20px;
    background-color: #f7f7f7;
    /* Light background for the group section */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    /* Soft shadow */
}

.group-title {
    font-size: 1.8em;
    font-weight: 700;
    color: #1380ec;
    /* Highlight color for the grouping term (Category/Author) */
    margin-top: 0;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 3px double #e0e0e0;
}

/* --- LIST AND ITEM STYLES (Card Layout) --- */
.group-list {
    list-style: none;
    margin: 0;
    padding: 0;
    /* Use a simple grid for a modern look */
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.group-item {
    /* Style the list item as a clean card */
    padding: 20px;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.group-item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}