/* Basic Reset & Box-Sizing */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Georgia, serif; /* Old school feel */
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    max-width: 960px; /* Constrain content width */
    margin: 20px auto; /* Center the content */
    padding: 0 20px;
}

header {
    background-color: #ddd;
    padding: 20px;
    text-align: center;
    border-bottom: 2px solid #bbb;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

header h1 a {
    text-decoration: none;
    color: #333;
}

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

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

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

nav ul li a:hover {
    color: #000;
}

main {
    background-color: #fff;
    padding: 30px;
    border: 1px solid #ccc;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

section, article {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #eee;
}

section:last-child, article:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

h2, h3 {
    color: #444;
    margin-bottom: 15px;
}

h2 {
    font-size: 2em;
}

h3 {
    font-size: 1.5em;
}

p {
    margin-bottom: 1em;
}

img {
    max-width: 100%; /* Make images responsive within their container */
    height: auto;
    display: block; /* Remove extra space below images */
    margin: 15px 0; /* Add some spacing around images */
    border: 1px solid #eee;
}

ul {
    margin-left: 20px;
    margin-bottom: 1em;
}

a {
    color: #007bff; /* Standard link color */
    text-decoration: underline;
}

a:hover {
    color: #0056b3;
    text-decoration: none;
}

footer {
    text-align: center;
    padding: 20px;
    color: #777;
    font-size: 0.9em;
    border-top: 1px solid #eee;
}

/* Specific styles for featured project list on homepage */
.featured-projects ul {
    list-style: none;
    padding: 0;
}

.featured-projects li {
    margin-bottom: 30px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 20px;
}

.featured-projects li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Container for the image, caption, and text */
.profile-pic {
    /* `overflow: hidden` is a great way to contain floats */
    overflow: hidden;
    padding: 20px;
    margin-bottom: 20px;
}

/* Float the entire figure element to the left */
.profile-pic .profile-figure {
    float: left;
    margin-right: 20px;
    margin-bottom: 10px;
    max-width: 400px; /* Or whatever width you want the figure to be */
}

/* Style the image inside the figure */
.profile-pic img {
    /* The image itself does not need a float now */
    max-width: 100%;
    height: auto;
    display: block; /* Ensures the image is a block element */
}

/* Style for the text content */
.profile-pic .profile-text {
    /* This content will now wrap around the floated figure */
    overflow: hidden; /* Or clear: left; to place it below the figure */
}