/* Base styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    color: #222;
    background-color: #fafafa;
}

/* Headings */
h1 {
    margin-bottom: 0.2em;
    font-size: 2.2em;
}

h2 {
    margin-top: 1.8em;
    border-bottom: 2px solid #ddd;
    padding-bottom: 0.3em;
    font-size: 1.4em;
}

/* Links */
a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Circular GitHub button */
.github-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: 24.5px;
    height: 24px;
}

.github-circle svg {
    width: 100%;
    height: 100%;
    display: block;            /* remove inline spacing */
}

/* Top section layout */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* Profile image */
.profile-pic {
    width: 150px;
    border-radius: 50%;
    border: 2px solid #ddd;
}

/* Lists */
ul {
    padding-left: 20px;
}

/* Horizontal rule */
hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 30px 0;
}

/* Footer text */
small {
    color: #666;
}

/* Responsive tweak */
@media (max-width: 600px) {
    .header {
        flex-direction: column-reverse;
        align-items: flex-start;
    }

    .profile-pic {
        margin-bottom: 15px;
    }
}

.module-desc {
    margin-top: 4px;
    margin-bottom: 6px;
    margin-left: 1.2em
}

.module-dates {
    margin-left: 1.2em;
    margin-left: 10px;
    color: #555;        /* slightly muted color for dates */
    font-style: italic; /* italics already applied in HTML */
    font-size: 0.9em;   /* slightly smaller than main text */
}

.modules-list li {
    margin-bottom: 12px; /* space between modules */
    line-height: 1.5;    /* improves readability */
}
