p, h1, h2, h3, h4, h5, h6, button {
    font-family: "Roboto", serif;
}

body {
    background-color: #f5f5f9;
    background-size: cover;
    width: auto; 
    overflow-x: hidden;
    font-family: "Roboto", serif;
    margin: 0px;
}

.nav-bar {
    width: 100%;
    display: inline-block;
    background-color: #1C539F;
    font-family: "Roboto", serif;
    font-weight: 700 !important;
    padding-top: 10px;
}

.nav-content .logo-touch-target {
    display: inline-flex;
    height: 60%;
    width: 350px;
}

.nav-content {
    display: flex;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-content .nav-logo {
    height: 60px;
    margin: 0;
}

.nav-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-logo img {
    width: 200px;
}

.nav-content nav {
    display: block;
    width: 100%;
    text-align: right;
    padding-top: 0px;
    padding-right: 0px;
}

.profile {
    background-color: #1d539f !important;
    text-align: center;
    height: 320px;
    margin-bottom: 50px;
}

.profile h1 {
        font-size: 50px;
        font-weight: 700;
        color: white;
}

.profile img {
        border-radius: 50%;
        max-width: 100%;
        max-height: 100%;
        margin-left: auto;
        margin-right: auto;
        display: block;        
        padding: 20px;
}

.profile .profile-picture {
    margin-bottom: 30px;
    height: 200px;
}

.banner {
    padding: 20px 0px 50px 0px;
    height: 150px;
    background-color: #1d539f;
}

.banner .logo {
    max-width:180px;
    max-height:60px;
    width: auto;
    height: auto;
}

.banner .title {
    color: white;
    font-size: 50px;
    font-weight: 700;
}

/* Content sections */
.section {
    max-width: 900px;
    margin: 0 auto 50px auto;
    padding: 0 20px;
}

.section h2 {
    color: #1d539f;
    font-size: 28px;
    border-bottom: 2px solid #e2e8f3;
    padding-bottom: 8px;
}

.about p {
    font-size: 18px;
    line-height: 1.7;
    color: #333;
}

/* Timeline-style entry cards (work experience, education) */
.entry {
    background: #fff;
    border: 1px solid #e2e8f3;
    border-radius: 8px;
    padding: 18px 22px;
    margin-bottom: 18px;
}

.entry-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}

.entry-head h3 {
    margin: 0;
    color: #1d539f;
    font-size: 20px;
}

.entry-dates {
    color: #6b7280;
    font-size: 14px;
    white-space: nowrap;
}

.entry-subtitle {
    margin: 2px 0 10px 0;
    font-weight: 500;
    color: #444;
}

.entry-description {
    margin: 0 0 12px 0;
    line-height: 1.6;
    color: #333;
}

.entry-tags {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.entry-tags li {
    background: #e8eef7;
    color: #1d539f;
    font-size: 13px;
    padding: 3px 10px;
    border-radius: 999px;
}

/* Hobbies grid */
.hobby-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.hobby-card {
    background: #fff;
    border: 1px solid #e2e8f3;
    border-radius: 8px;
    overflow: hidden;
}

.hobby-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.hobby-body {
    padding: 14px 16px;
}

.hobby-body h3 {
    margin: 0 0 6px 0;
    color: #1d539f;
    font-size: 18px;
}

.hobby-body p {
    margin: 0;
    color: #333;
    line-height: 1.5;
    font-size: 15px;
}

.button-link {
    display: inline-block;
    background: #1d539f;
    color: #fff;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 500;
}

.button-link:hover {
    background: #16407c;
}

/* Dynamic nav links */
.nav-links a {
    color: #cdddf3;
    text-decoration: none;
    font-weight: 700;
    margin-left: 24px;
    padding-bottom: 6px;
}

.nav-links a:hover {
    color: #ffffff;
}

.nav-links a.active {
    color: #ffffff;
    border-bottom: 3px solid #ffffff;
}

/* Places visited map */
#map {
    height: 420px;
    border-radius: 8px;
    border: 1px solid #e2e8f3;
}

/* Timeline form */
.timeline-form {
    background: #fff;
    border: 1px solid #e2e8f3;
    border-radius: 8px;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-row label {
    font-weight: 500;
    color: #1d539f;
    font-size: 14px;
}

.timeline-form input,
.timeline-form textarea {
    font-family: "Roboto", serif;
    font-size: 15px;
    color: #333;
    padding: 10px 12px;
    border: 1px solid #cdddf3;
    border-radius: 6px;
    background: #fbfcfe;
}

.timeline-form input:focus,
.timeline-form textarea:focus {
    outline: none;
    border-color: #1d539f;
    box-shadow: 0 0 0 3px rgba(29, 83, 159, 0.15);
}

.timeline-form textarea {
    resize: vertical;
    min-height: 72px;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.timeline-form button {
    background: #1d539f;
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
}

.timeline-form button:hover {
    background: #16407c;
}

.timeline-form button:disabled {
    opacity: 0.6;
    cursor: default;
}

.timeline-status {
    font-size: 14px;
    color: #4b7bc4;
}

.timeline-status.is-error {
    color: #b23b3b;
}

/* Timeline posts */
.timeline-posts {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.timeline-post {
    display: flex;
    gap: 14px;
    background: #fff;
    border: 1px solid #e2e8f3;
    border-radius: 8px;
    padding: 16px 18px;
}

.timeline-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e8eef7;
    flex-shrink: 0;
}

.timeline-body {
    flex: 1;
    min-width: 0;
}

.timeline-post-head {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 10px;
}

.timeline-name {
    font-weight: 700;
    color: #1d539f;
}

.timeline-email {
    color: #6b7280;
    font-size: 14px;
}

.timeline-date {
    color: #9aa4b2;
    font-size: 13px;
    margin-left: auto;
    white-space: nowrap;
}

.timeline-content {
    margin: 8px 0 0 0;
    line-height: 1.6;
    color: #333;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.timeline-empty {
    color: #6b7280;
}