/* Global styles */ 
body {
    font-family: 'Lexend Giga', sans-serif;
    letter-spacing: 0.05em;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: black; /* Set all text color to black */
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header styles (same as homepage) */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    color: black; /* Text color black */
    position: relative; /* Ensure the background image goes behind it */
    z-index: 1; /* Higher z-index so header and nav appear on top of the background */
    font-weight: bold; /* Make the header text bold */
}

header .logo {
    font-size: 24px;
}

header nav ul {
    list-style-type: none;
    display: flex;
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    color: black; /* Text color black */
    font-size: 18px;
    font-weight: bold; /* Bold text for better readability */
}

h1, h2, h3 {
    letter-spacing: 0.05em;
}

h1 {
    font-size: 25px;
    text-align: center;
}

/* Homepage Specific Styles */
#background-image {
    background-image: url('../assets/images/homepagebg.jpg');
    background-size: cover;
    background-position: center bottom; /* Adjusted position to show more of the bottom */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.6; /* Reduced opacity for better text visibility */
    z-index: -1; /* Position the background image behind the content */
}

/* Homepage Content */
#home {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: black; /* Set text color to black */
    position: relative; /* Ensure the content is above the background image */
    z-index: 0;
    padding-top: 100px; /* Padding to ensure the content starts below the header */
}

#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3); /* Light overlay to make text pop */
    z-index: -1;
}

.preview-columns {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    width: 100%;
    max-width: 800px; /* Limit the width of columns */
}

.preview-column {
    width: 250px;
    margin-right: 20px; /* Add spacing between columns */
}

.preview-column img {
    width: 100%;
}

/* Blog Page Styles */
.blogs-list {
    display: flex;
    flex-direction: column;
    margin-top: 30px;
}

.blogs-list {
    width: 70%;
    margin: 0 auto;
}

.blog-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 20px;
}

.blog-entry img {
    width: 250px; /* Smaller thumbnail */
    height: auto;
    object-fit: cover;
    border-radius: 4px;
}


.blog-entry h2 {
    font-size: 20px;
    margin: 0;
    max-width: 70%; /* Text doesn't stretch too far */
}

.blog-entry h2 a {
    color: black;
    text-decoration: none;
}

.blog-entry h2 a:hover {
    text-decoration: underline;
}


/* About Page */
.about-author {
    width: 65%; /* Set the width of the about-author div */
    margin: 0 auto; /* Center it */
    text-align: center;
}

.about-author img {
    width: 250px;
    height: auto;
    border-radius: 50%;
    margin-bottom: 20px;
}

.about-author h2 {
    font-size: 30px;
    letter-spacing: 0;
}

.about-author p {
    font-size: 25px;
    line-height: 45px;
    text-align: left;
    padding: 0 20px;
}

/* Blog Post Page Specific Styles */
#blog-post {
    padding: 40px 20px;
    text-align: center; /* Center the content */
    width: 100%;
    max-width: 1200px; /* Limit the max width */
    margin: 0 auto;
}

.blog-thumbnail {
    width: 80%;
    max-width: 800px; /* Set maximum image width */
    margin: 20px auto;
    display: block;
    border-radius: 8px;
}

/* Center "Written by Sonny Villani" */
.written-by {
    font-size: 20px;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 40px;
    text-align: center;
}

/* Blog Content */
.blog-content {
    width: 65%;
    margin: 0 auto;
    text-align: left;
    font-size: 16px;
    line-height: 1.8;
}

/* Paragraph styling */
.blog-content p {
    margin-bottom: 20px;
}

.blog-content p:first-of-type {
    margin-top: 0;
}

.blog-content h2 {
    font-size: 2em;
    margin-top: 20px;
}

/* Make sure the blog content is responsive */
@media (max-width: 768px) {
    .blog-content {
        width: 90%; /* On smaller screens, expand to 90% width */
    }

    .blog-thumbnail {
        width: 90%; /* Make image width 90% for smaller screens */
    }

    /* Ensure blog titles and images adjust to smaller screens */
    .blog-entry {
        flex-direction: column; /* Stack title and image vertically on smaller screens */
        align-items: center; /* Center the content */
    }

    .blog-entry img {
        margin-right: 0; /* Remove margin between image and text on smaller screens */
        margin-bottom: 10px; /* Add space between the image and title */
    }

    .blog-entry h2 {
        font-size: 18px; /* Adjust title font size for small screens */
    }
}

/* Contact Page Styles */
.contact-form {
    max-width: 600px;
    margin: 100px auto; /* Center and add top space below header */
    padding: 20px;
    text-align: center;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form label {
    font-size: 16px;
    text-align: left;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    font-size: 16px;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    padding: 12px;
    background-color: black;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
}

.contact-form button:hover {
    background-color: #333;
}
