body {
    font-size: 18px; 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    line-height: 1.4;
    color: #222;
    margin: 0;
    padding: 0;
    background-color: #fff;
}

.container {
    max-width: 850px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    padding: 20px 0 10px 0; /* Minimal top space */
    border-bottom: 1px solid #eee;
}

header h1 {
    margin: 0;
    font-size: 2rem;
}

.subtitle {
    margin: 2px 0 0 0;
    font-size: 1rem;
    color: #555;
}

/* Picture on left, Text on right */
.profile-flex {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    margin: 20px 0;
}

.profile-img {
    width: 180px; /* Academic standard size */
    height: auto;
    border-radius: 2px;
}

.bio p {
    margin: 0 0 12px 0; /* Tight paragraph spacing */
}

/* Reduced spacing for sections */
h2 {
    font-size: 1.25rem;
    color: #000; /* Changed from blue to black */
    border-left: 3px solid #000; /* Changed accent to black */
    padding-left: 12px;
    margin: 15px 0 10px 0;
}

ul {
    margin: 0;
    padding-left: 20px;
}

li {
    margin-bottom: 4px;
}

hr {
    border: 0;
    border-top: 1px solid #f0f0f0;
    margin: 15px 0; /* Reduced margin between sections */
}

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

a:hover {
    text-decoration: underline;
}

footer {
    padding: 15px 0;
    font-size: 0.8rem;
    color: #999;
}

/* Responsive adjustment for small screens */
@media (max-width: 600px) {
    .profile-flex {
        flex-direction: column;
        align-items: center;
    }
    .profile-img {
        width: 150px;
    }
}
.social-links {
    margin-top: 12px;
    display: flex;
    gap: 15px; /* Reduced gap slightly to fit more icons */
    justify-content: flex-start;
}
