/* General Page Styling */
body {
    background-color: #EEEEEE; /* Light gray background */
    font-family: "Neue Haas Grotesk Display Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 11px;
    color: #000000;
    margin: 0;
    padding: 20px 0;
}

/* Grayscale Links */
a {
    color: #000000;
    text-decoration: underline;
}

a:hover {
    text-decoration: none;
    color: #666666; /* Medium gray hover */
}

/* Main Container */
#container {
    width: 760px;
    margin: 0 auto;
    background-color: #FFFFFF;
    border: 1px solid #999999;
}

/* Top Navigation Bar */
#top-nav {
    background-color: #F8F8F8;
    padding: 8px 15px;
    text-align: right;
    border-bottom: 1px solid #DDDDDD;
    font-size: 10px;
}

#top-nav a {
    text-decoration: underline; /* Added back the classic underline */
    font-weight: bold;
}

#top-nav a:hover {
    color: #666666;
}

/* Banner/Header */
#header {
    background-color: #000000;
    color: #FFFFFF;
    padding: 25px 15px;
    border-bottom: 3px solid #333333;
}

#header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

#header p {
    margin: 8px 0 0 0;
    font-size: 13px;
    font-weight: 300;
    opacity: 0.8;
    line-height: 1.4;
}

/* Layout Wrapper */
#content-wrapper {
    display: flex;
    flex-direction: row;
}

/* Left Sidebar */
#sidebar {
    width: 200px;
    background-color: #FFFFFF;
    border-right: 1px dashed #CCCCCC;
    padding: 10px;
}

/* Sidebar Modules */
.module {
    margin-bottom: 15px;
    border: 1px solid #DDDDDD;
    background-color: #FDFDFD;
    padding: 8px;
}

/* Module Headings */
.module h3 {
    margin: -8px -8px 8px -8px;
    padding: 5px;
    background-color: #666666;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.profile-module {
    text-align: center;
}

.buddy-icon {
    width: 150px;
    height: 150px;
    border: 1px solid #000;
    margin-bottom: 10px;
    object-fit: cover; 
}

.link-list {
    list-style-type: square;
    padding-left: 20px;
    margin: 0;
}

.link-list li {
    margin-bottom: 4px;
}

/* Main Blog Content Area */
#main {
    flex: 1;
    padding: 15px;
}

/* Individual Blog Posts */
.post {
    margin-bottom: 25px;
}

.post-date {
    font-weight: bold;
    font-size: 12px;
    color: #666666;
    border-bottom: 1px solid #EEEEEE;
    margin-bottom: 10px;
    padding-bottom: 3px;
}

/* Post Title */
.post-title {
    font-weight: bold;
    font-size: 16px;
    color: #000000;
    margin-bottom: 8px;
    letter-spacing: -0.2px;
}

.post-body {
    line-height: 1.6;
    font-weight: 400;
}

/* Post Footer */
.post-footer {
    text-align: right;
    font-size: 10px;
    color: #999999;
    border-top: 1px dotted #DDDDDD;
    margin-top: 10px;
    padding-top: 5px;
}

/* Main Blog Content Area */
#main {
    flex: 1;
    min-width: 0; /* CRITICAL: This stops flexbox items from bursting out of the container */
    padding: 15px;
}

/* Individual Blog Posts */
.post {
    margin-bottom: 25px;
    width: 100%;
    overflow: hidden; /* Safeguard to clip anything that tries to overflow */
}

.post-date {
    font-weight: bold;
    font-size: 12px;
    color: #666666;
    border-bottom: 1px solid #EEEEEE;
    margin-bottom: 10px;
    padding-bottom: 3px;
}

/* Post Title */
.post-title {
    font-weight: bold;
    font-size: 16px;
    color: #000000;
    margin-bottom: 8px;
    letter-spacing: -0.2px;
}

.post-body {
    line-height: 1.6;
    font-weight: 400;
}

/* Post Footer */
.post-footer {
    text-align: right;
    font-size: 10px;
    color: #999999;
    border-top: 1px dotted #DDDDDD;
    margin-top: 10px;
    padding-top: 5px;
}

/* Perfect Constraints for the Blog Banner */
.post-body img {
    display: block;
    width: 100%;
    max-width: 530px; /* The exact pixel width of your blog text area */
    height: auto;
    margin: 10px 0 15px 0;
    border: 1px solid #000000;
}

/* Styling for the stacked links in the blog post */
.post-links-stack {
    margin-top: 15px;
    line-height: 1.8;
    font-weight: bold;
}
