/* Basic CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

@font-face {
    font-family: 'Kenyan Coffee'; /* Give your font a name */
    src: url('fonts/kenyan_coffee/Kenyan Coffee.ttf') format('truetype'); /* Adjust the path and format */
}

body {
    font-family: 'Kenyan Coffee', sans-serif;
    background-color: #FDF8ED; /* Light cream background */
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    display: flex;              /* Arranges children (h1 and nav) in a row */
    justify-content: space-between; /* Pushes the h1 to the left and nav to the right */
    align-items: center;        /* Vertically centers the items */
    padding: 1rem 2rem;         /* Adds some spacing around the header */
    background-color: #f8f8f8;  /* Optional: adds a light background color */
}

/* 2. Style the logo/title area */
header h1 a {
    display: flex;              /* Aligns the image and text inside the link */
    align-items: center;
    text-decoration: none;      /* Removes the underline from the link */
    color: rgb(74, 43, 18);                /* Sets the text color */
}

/* 3. Style your image */
header h1 img {
    height: 60px;               /* Sets the height of your image */
    width: 60px;                /* Sets the width of your image */
    margin-right: 15px;         /* Adds space between the image and the title */
    object-fit: cover;   
    border: 2px solid rgb(74, 43, 18);
}

/* 4. Style the navigation links */
header nav ul {
    list-style: none;           /* Removes the default bullet points */
    margin: 0;
    padding: 0;
    display: flex;              /* Lays out the list items in a row */
}

header nav ul li {
    margin-left: 25px;          /* Adds space between each navigation item */
}

header nav ul li a {
    text-decoration: none;
    color: #555;
    font-weight: bold;
}

nav ul {
    list-style: none;
}

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

nav a {
    text-decoration: none;
    color: #FDF8ED; /* Cream link color */
    font-weight: bold;
    font-size: 1.1em; /* Example size */
}

nav a:hover {
    color: #8D5F3D; /* Lighter brown on hover - sienna */
}

.container {
    max-width: 960px;
    margin: 1.5rem auto;
    overflow: auto; /* Changed from hidden to auto */
    padding: 0 2rem;
    flex: 1; /* Allows container to grow and push footer down */
    padding-bottom: 15px;
}

section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #fff; /* White background for sections for contrast */
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

section h2 {
    margin-top: 15px;
    color: rgb(74, 43, 18); /* Dark Brown for section titles */
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1.5em; /* Example size */
}

/* Project styling for index.html */
.project {
    background: #8D5F3D; /* Light brown for project cards */
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: 8px; /* Increased radius */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 1.5rem; /* Space between image and text */
}

.project img {
    width: 100%;
    max-width: 200px; /* Max width for thumbnail */
    height: auto;
    border: 2px solid #4A2B12; /* Darker border */
    border-radius: 4px; /* Rounded corners for image */
    margin-bottom: 0; /* Removed bottom margin as gap is used */
}

.project div {
    flex: 1;
}

.project h3 {
    color: #4A2B12; /* Dark Brown heading for project title */
    margin-bottom: 0.5rem; /* Reduced margin */
    font-size: 1.5em;
}
.project h3 a {
    color: black;
}
.project h3 a:hover {
    color: #4A2B12;
    text-decoration: underline;
}

.project p {
    font-size: 1em;
    color: black;
}

#Blog { /* Targeting the Update section by its ID */
    background: #B8926B; /* Set background to purple */
    width: 960px;
}

#Blog h2 {
    color: #000000;
    text-shadow: -1px 0 #FDF8ED, 0 1px #FDF8ED, 1px 0 #FDF8ED, 0 -1px #FDF8ED;
    text-align: left;
}

/* New styling for the blog section to arrange content and image */
.blog-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blog-section .blog-text {
    color: rgb(0, 0, 0);
    flex: 1;
    padding-right: 1.5rem; /* Space between text and image */
}

.blog-section .blog-image {
    margin-top: 22px;
    width: 200px; /* Adjust the image width as needed */
    flex-shrink: 0; /* Prevents the image from shrinking */
}

.blog-section .blog-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 2px solid #000; /* Optional border for the image */
}


#contact {
    background: #FDF8ED;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 960px; /* Ensure it doesn't exceed header width */
}

footer {
    font-family: 'Kenyan Coffee', sans-serif;
    color: #FDF8ED; /* Cream text color */
    background-color: #4A2B12; /* Dark Brown footer */
    padding: 1rem;
    max-width: 928px;
    border-radius: 24px;
    margin: 1rem auto; /* Centered footer */
    text-align: center;
    width: calc(100% - 2rem); /* Adjust width to fit within viewport if needed */
    max-width: 960px; /* Ensure it doesn\'t exceed header width */
}