body {
            font-family: sans-serif;
            line-height: 1.6;
            background-color: #f4f4f4;
            margin: 0;
            color: #333;
        }

        /* New Header Styles */
        .header-section {
            position: relative; /* Positioning context for the overlay */
            width: 100%;      /* Make the section full width */
            line-height: 0;   /* Remove potential extra space below the image */
        }

        .header-section img {
            display: block;   /* Remove extra space below image */
            width: 100%;      /* Make image full width */
            height: auto;     /* Maintain aspect ratio */
        }

        .header-text-overlay {
            position: absolute; /* Position over the image */
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)); /* Dark overlay */
            color: white;
            display: flex;
            flex-direction: column;
            justify-content: center; /* Center text vertically */
            align-items: center;   /* Center text horizontally */
            text-align: center;
            padding: 1em;          /* Add some padding */
            line-height: 1.6;      /* Restore normal line height for text */
        }

        .header-text-overlay h1 {
            margin: 0 0 0.5em 0; /* Adjust margin */
            color: white;        /* Ensure white text */
        }

        .header-text-overlay p {
            margin: 0;           /* Remove default paragraph margin */
            font-size: 1.2em;
        }

        /* Container styles remain the same */
        .container {
            background-color: #fff;
            padding: 2em;
            border-radius: 8px;
            box-shadow: 0 0 10px rgba(0,0,0,0.1);
            max-width: 800px;
            margin: 2em auto;
            text-align: left;
        }

        .container h1 {
             color: #0056b3;
        }

        /* Card Styles */
        .card {
            background-color: #ffffff;
            border: 1px solid #ddd;
            border-radius: 8px;
            padding: 0; /* Remove padding here, apply to content */
            /* Adjust width for ~3 cards across, considering gap */
            flex: 1 1 calc(33.333% - 1.5em);
            min-width: 250px; /* Prevent cards from becoming too narrow */
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
            overflow: hidden; /* Keep rounded corners with h2 background */
            cursor: pointer; /* Indicate it's clickable */
            transition: box-shadow 0.3s ease; /* Smooth transition for hover */
            margin: 0; /* Remove specific margin-top, handled by grid gap */
        }

        .card h2 {
            color: #0056b3;           /* Use the same blue as container h1 */
            font-size: 1.3em;         /* Slightly smaller than container h1 */
            text-align: center;       /* Center the title */
            background-color: #eee;   /* Light grey background */
            padding: 0.6em 1.5em 0.2em; /* Further reduced bottom padding */
            margin: 0;                /* Remove all margins */
        }

        .card p {
            margin-bottom: 0;         /* Remove default bottom margin for paragraph */
            margin-top: -0.2em;       /* Add negative top margin to pull content up */
            line-height: 1.5;         /* Adjust line height for readability */
            padding: 0.7em 1.5em 1.5em; /* Further reduced top padding, kept sides and bottom */
        }

        /* Date styling for cards */
        .card-date {
            font-size: 0.85em;        /* Smaller font size */
            font-style: italic;       /* Italicize the date */
            color: #666;              /* Lighter color */
            text-align: center;       /* Center the date */
            margin: 0 0 -0.3em 0;     /* Add negative bottom margin to pull content closer */
            padding: 0.1em 1.5em 0;   /* Minimal top padding */
        }

        /* Link styling for cards */
        a.card-link {
            text-decoration: none; /* Remove underline */
            color: inherit;       /* Use default text color */
            display: block;       /* Make the link a block element */
        }

        /* Divider Style (Copied from card-display.html) */
        hr.section-divider {
            border: 0;
            height: 2px;
            background-color: #ccc; /* Grey color */
            margin: 3em 0; /* More vertical space */
        }

/* Card Grid Layout */
.card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5em; /* Spacing between cards */
    margin-top: 1.5em; /* Space above the grid */
}

.card:hover {
     box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Slightly larger shadow on hover */
}

/* Full Text Display Area */
#full-text-display {
    margin-top: 0; /* Remove top margin, handled by hr */
    padding: 1.5em;
    background-color: #f9f9f9; /* Slightly different background */
    border: 1px solid #eee;
    /* border-top removed, replaced by hr */
    border-radius: 8px;
    display: none; /* Hidden by default */
    clear: both; /* Ensure it appears below floated/flex items if any */
}

#full-text-display h3 {
    margin-top: 0;
    color: #0056b3;
}