body {
    padding: 20px;
    margin: 0 auto;
    margin-left: 290px;
    margin-right: 290px;
    max-width: 1000px;
    font-family: 'Oxanium', sans-serif;
    color: #3f5972;
    line-height: 1.5;
}

.header {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.title-section {
    flex: 1;
}

.contact-info {
    display: flex;
    gap: 15px;
    align-items: center;
}

.contact-info a {
    font-size: 1.5em;
    color: #006699;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #3f5972;
    text-decoration: none;
}

.subtitle {
    color: #777;
    margin-top: 0;
}

.sidebar-left {
    position: fixed;
    left: 20px;
    top: 20px;
    width: 250px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.sidebar-right {
    position: fixed;
    right: 20px;
    top: 20px;
    width: 250px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.table-of-contents {
    background-color: #f5f5f5;
    border: 1px solid #006699;
    border-radius: 5px;
    padding: 15px 20px;
}

.table-of-contents h3 {
    margin-top: 0;
    color: #006699;
    font-size: 1.3em;
}

.table-of-contents ul {
    list-style-type: none;
    padding-left: 0;
    margin: 10px 0;
}

.table-of-contents > ul > li {
    margin-bottom: 8px;
}

.table-of-contents ul ul {
    padding-left: 20px;
    margin-top: 5px;
}

.table-of-contents ul ul li {
    margin-bottom: 5px;
    font-size: 0.95em;
}

.table-of-contents a {
    color: #006699;
    text-decoration: none;
}

.table-of-contents a:hover {
    text-decoration: underline;
    color: #3f5972;
}

.sidebar-skills {
    background-color: #f5f5f5;
    border: 1px solid #006699;
    border-radius: 5px;
    padding: 15px 20px;
}

.sidebar-skills h3 {
    margin-top: 0;
    color: #006699;
    font-size: 1.3em;
}

.sidebar-skills ul {
    list-style-type: none;
    padding-left: 0;
    margin: 10px 0;
    font-size: 0.85em;
}

.sidebar-skills li {
    margin-bottom: 8px;
}

.sidebar-skills ul ul {
    padding-left: 15px;
    margin-top: 5px;
}

.sidebar-skills ul ul li {
    margin-bottom: 5px;
    font-size: 0.95em;
}

h1, h2, h3, h4 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #006699;
}

h1 {
    font-size: 2em;
}

h2 {
    font-size: 1.7em;
    border-bottom: 1px solid #006699;
    padding-bottom: 5px;
}

h3 {
   font-size: 1.5em;
}

h4 {
   font-size: 1.3em;
}


article {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px dotted #ccc;
}

article:last-child {
    border-bottom: none;
}

ul {
    padding-left: 20px;
}

li {
    margin-bottom: 5px;
}

.company {
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 5px;
}

.period {
    color: #777;
    font-style: italic;
    margin-top: 0;
    margin-bottom: 10px;
}

.skills {
    margin: 10px 0;
}

a {
    color: #006699;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

strong {
    color: #006699;
}

#professional-summary p {
    font-size: 1.1em;
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    body {
        margin-left: 20px;
        margin-right: 20px;
        padding: 10px;
    }

    .sidebar-left,
    .sidebar-right {
        display: none;
    }

    .mobile-only {
        display: block;
    }

    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-info {
        margin-top: 10px;
    }

    h1 {
        font-size: 1.5em;
    }

    h2 {
        font-size: 1.3em;
    }

    h3 {
        font-size: 1.2em;
    }

    h4 {
        font-size: 1.1em;
    }
}

@media print {
    body {
        padding: 0;
        margin-left: 20px;
        margin-right: 20px;
        font-size: 12pt;
    }

    .sidebar-left,
    .sidebar-right {
        display: none;
    }

    a {
        color: #000;
        text-decoration: none;
    }

    .skills p {
        margin: 5px 0;
    }
}
