/* Global Resets & Basic Styling */
/* Global Resets & Basic Styling */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #8DA370; /* Muted green from Loe's Blog */
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600; /* Bolder for titles */
    color: #222;
}

a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover, a:focus {
    color: #0056b3;
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header */
header {
    background-color: transparent; /* Transparent header */
    padding: 1.5rem 2rem;
    border-bottom: none; /* No border */
    display: flex;
    justify-content: space-between; /* Align items to ends */
    align-items: center;
    color: #fff; /* White text for header */
}

header h1 {
    margin: 0;
    font-size: 2.5rem; /* Larger title */
    font-weight: 600;
    color: #fff; /* White title */
}

header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-end; /* Align nav to right */
    gap: 1.5rem;
}

header nav li a {
    font-size: 1rem;
    color: #fff; /* White nav links */
    font-weight: 400;
}

header nav li a:hover,
header nav li a.active {
    color: #eee; /* Lighter white on hover */
    font-weight: 500;
}

/* Main Content */
main {
    flex-grow: 1;
    padding: 2rem;
    max-width: 1200px; /* Wider content area */
    margin: 0 auto; /* Center content */
    width: 100%;
    box-sizing: border-box;
}

#hero {
    text-align: center;
    padding: 3rem 1rem;
    margin-bottom: 2rem;
    color: #fff; /* White text for hero section */
}

#hero h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

#hero p {
    font-size: 1.1rem;
    color: #eee;
}

/* Sections (Placeholder Styling) */
section {
    margin-bottom: 3rem;
    padding-top: 0; /* No padding top for sections */
}

section h2 {
    font-size: 1.8rem;
    border-bottom: none; /* No border */
    padding-bottom: 0;
    margin-bottom: 1.5rem;
    color: #fff; /* White section titles */
}

/* Styling for content within sections */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Responsive grid, slightly wider cards */
    gap: 2rem; /* Larger gap between cards */
}

.grid-item {
    background-color: #fff;
    border: none; /* No border */
    border-radius: 8px; /* More rounded corners */
    padding: 0; /* No padding on the card itself, content will have padding */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* Stronger shadow */
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    overflow: hidden; /* Ensures rounded corners apply to image */
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2); /* Stronger shadow on hover */
}

.grid-item img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover; /* Cover the area, might crop */
    border-bottom: none; /* No border */
    margin-bottom: 0; /* No margin below image */
    border-radius: 0; /* No border radius on image */
}

.grid-item-content {
    padding: 1rem 1.2rem; /* Padding for content inside the card */
}

.grid-item h3 {
    font-size: 1.4rem; /* Larger title */
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600; /* Bolder title */
    line-height: 1.3;
}

.grid-item .date {
    font-size: 0.85rem;
    color: #888; /* Lighter color for date */
    margin-bottom: 0.75rem;
    display: block; /* Ensure date is on its own line */
}

.grid-item p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 1rem;
}

.grid-item .read-more {
    font-size: 0.9rem;
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.grid-item .read-more:hover {
    text-decoration: underline;
}

.category-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    background-color: #fff; /* Ensure category cards are white */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.category-card img {
    border-radius: 0; /* No border radius on image */
    margin-bottom: 0;
    height: 180px;
}

.category-card h3 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.category-card p {
    flex-grow: 1;
    margin-bottom: 1rem;
    padding: 0 1rem; /* Add padding to category card text */
}

/* Footer */
footer {
    text-align: center;
    padding: 1.5rem 2rem;
    background-color: transparent; /* Transparent footer */
    border-top: none; /* No border */
    font-size: 0.9rem;
    color: #fff; /* White text for footer */
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 1rem 1.5rem;
        flex-direction: column;
        text-align: center;
    }

    header h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    header nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    main {
        padding: 1.5rem;
    }

    #hero h2 {
        font-size: 2rem;
    }

    .content-grid {
        grid-template-columns: 1fr; /* Single column on small screens */
    }
}
