/* General Body Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background-color: #F8F0E3; /* Light cream/beige for a soft, artisan feel */
    color: #333333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header Styles */
header {
    background-color: #6A5ACD; /* Medium Slate Blue - elegant and rich */
    color: #FFFFFF;
    padding: 1.5em 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

header h1 {
    margin: 0;
    font-size: 2.8em;
    font-family: 'Georgia', serif; /* Classic, elegant font */
    letter-spacing: 2px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Navigation Styles */
nav ul {
    list-style: none;
    padding: 0;
    margin: 1em 0 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

nav a {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    padding: 0.5em 1em;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

nav a:hover, nav a:focus {
    background-color: #8A2BE2; /* Blue Violet - vibrant accent */
    color: #F8F0E3;
}

/* Main Content Area */
main {
    flex: 1;
    max-width: 900px;
    margin: 2em auto;
    padding: 2em;
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Blog Post Styles */
.blog-post h2 {
    color: #6A5ACD; /* Matching header color */
    font-size: 2.2em;
    margin-bottom: 0.8em;
    font-family: 'Georgia', serif;
    text-align: center;
}

.blog-post h3 {
    color: #8A2BE2; /* Blue Violet for subheadings */
    font-size: 1.6em;
    margin-top: 1.5em;
    border-bottom: 2px solid #E0BBE4; /* Soft lavender border */
    padding-bottom: 0.5em;
}

.blog-post p {
    margin-bottom: 1em;
    text-align: justify;
}

.blog-post ul {
    list-style: disc inside;
    margin-bottom: 1em;
    padding-left: 1.5em;
}

.blog-post li {
    margin-bottom: 0.5em;
}

.blog-post a {
    color: #4682B4; /* Steel Blue - a calming, deep blue for links */
    text-decoration: underline;
    font-weight: bold;
    transition: color 0.3s ease;
}

.blog-post a:hover, .blog-post a:focus {
    color: #8A2BE2; /* Blue Violet on hover */
}

/* Table Styles */
.blog-post table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.blog-post th, .blog-post td {
    border: 1px solid #E0BBE4; /* Soft lavender border */
    padding: 12px 15px;
    text-align: left;
}

.blog-post th {
    background-color: #6A5ACD; /* Medium Slate Blue for table headers */
    color: #FFFFFF;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-post tr:nth-child(even) {
    background-color: #F8F0E3; /* Light cream/beige for alternating rows */
}

.blog-post tr:hover {
    background-color: #E0BBE4; /* Soft lavender on row hover */
}

/* Footer Styles */
footer {
    background-color: #6A5ACD; /* Matching header color */
    color: #FFFFFF;
    text-align: center;
    padding: 1.5em 0;
    margin-top: 2em;
    font-size: 0.9em;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    main {
        margin: 1em auto;
        padding: 1em;
    }

    .blog-post h2 {
        font-size: 1.8em;
    }

    .blog-post h3 {
        font-size: 1.4em;
    }

    .blog-post th, .blog-post td {
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5em;
    }

    nav a {
        font-size: 1em;
        padding: 0.4em 0.8em;
    }

    main {
        padding: 0.8em;
    }

    .blog-post h2 {
        font-size: 1.5em;
    }

    .blog-post h3 {
        font-size: 1.2em;
    }
}
