/* styles.css */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}

header {
    position: relative;
    background-color: #4a4a4a;
    padding: 20px;
    text-align: center;
    color: white;
    min-height: 180px; /* Ensures the header has enough height */
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Fills the header properly */
    background-image: url('/blog-project/blog-header-02.jpeg');
    background-size: cover;
    background-position: center;
    opacity: 0.6;
    z-index: -1;
    display: block;
}

h1 {
    color: #000000;
    font-family: 'Courier New', monospace;
    font-size: 3em;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.3em;
}

main {
    width: 80%;
    margin: 60px auto;
}

.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post {
    background-color: #5497b137;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.post img {
    float: left; /* Float the image to the left */
    margin-right: 15px; /* Add some space between the image and the text */
    width: 40%;
    height: 325px;
    border-radius: 5px;
}

.post h2 a {
    color: #333;
    text-decoration: none;
}

.date-time {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px;
    position: relative;
    bottom: 0;
    width: 100%;
}

a {
    color: #3d92f3;
    text-decoration: none;
}

a:hover {
    color: #f5a6ed;
}

p, 
.detail {
    line-height: 2.5; /* Adjust as needed */
    margin-bottom: 25px;
}  