@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&display=swap');

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
}

#header {
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: left !important;
    width: 100%;
}

#sidebar, #main-content {
    box-sizing: border-box;
}

#sidebar {
    float: left;
    width: 20%;
    background: #f8f8f8;
    padding: 20px;
    box-shadow: 2px 0px 5px rgba(0, 0, 0, 0.1);
}

#main-content {
    float: left;
    width: 75%;
    padding: 20px;
}

.post p {
    color: #777;
    font-size: 0.9em;
}

.post p.title {
    font-size: 1.17em; /* Typical size of an h3 */
    font-weight: normal; /* Ensures text is not bold */
    margin: 0; /* Adjust as needed */
    color: black;
}

p.h1-style {
    font-size: 2em;
    font-weight: 600;
    margin: 0.67em 0;
    position: relative;
    display: inline-block;
}

p.h1-style::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    height: 3px;
    width: 50%;
    background-color: #333;
    transition: width 0.3s ease;
}

p.h1-style:hover::after {
    width: 100%;
}

.post {
    background-color: #fff;
    margin-bottom: 20px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s;
}

.post:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Clearfix */
.clearfix::after {
    content: "";
    clear: both;
    display: table;
}

.section {
    margin-bottom: 40px;
}

h1, h2, h3 {
    color: #222;
}

a {
    color: #007BFF;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #0056b3;
}

.post {
    margin-top: 5px;
    margin-bottom: 5px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
    padding-top: 5px;
    padding-left: 10px;
}

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

li {
    margin-bottom: 10px;
}

@media screen and (max-width: 600px) {
    #sidebar, #main-content {
        float: none;
        width: auto;
    }
}

#header .profile-container {
    display: flex !important;
    align-items: center !important;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    text-align: left !important;
    justify-content: flex-start !important;
}

#header .profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 30px;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: block !important;
    position: relative !important;
}

#header .header-text {
    flex: 1;
    text-align: left !important;
    align-items: flex-start !important;
    display: flex !important;
    flex-direction: column !important;
}

#header .header-text h1 {
    margin-top: 0;
    margin-bottom: 10px;
    text-align: left !important;
    width: 100% !important;
}

#header .header-text p {
    margin: 0;
    color: #666;
    text-align: left !important;
    width: 100% !important;
}

/* Responsive design for smaller screens */
@media (max-width: 600px) {
    #header .profile-container {
        flex-direction: column;
        text-align: center !important;
    }
    
    #header .profile-photo {
        margin-right: 0;
        margin-bottom: 20px;
    }

    #header .header-text,
    #header .header-text h1,
    #header .header-text p {
        text-align: center !important;
    }
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    margin-top: 40px;
    clear: both;
    width: 100%;
    box-sizing: border-box;
}

footer p {
    margin: 0;
    color: #666;
    font-size: 0.9em;
}
