
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: sans-serif;
    font-size: 14px;
    color: #222;
    background-color: #fff;
    line-height: 1.5;
}

.container {
    width: 95%;
    max-width: 960px;
    margin: 0 auto;
    overflow: hidden;
    min-height: 100vh;
}

.sidebar {
    float: left;
    width: 30%;
    min-height: 100vh;
    padding: 15px;
    background: #f2f2f2;
    border-right: 1px solid #ccc;
}

#language-switch {
    text-align: center;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #e8e8e8;
    border: 1px solid #ccc;
    font-size: 13px;
}

#language-switch a {
    color: #2c5aa0;
    text-decoration: none;
    font-weight: bold;
}

#avatar {
    margin-bottom: 20px;
    text-align: center;
}

#avatar img {
    border: 3px solid #2c5aa0;
    border-radius: 50%;
}

/* Responsive: Stack sidebar above content */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 70%;
        text-align: left;
    }
}

.content {
    float: left;
    width: 70%;
    padding: 20px;
}

h1, h2, h3 {
    margin: 20px 0 10px;
    color: #004080;
}

h1 { font-size: 24px; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }

ul {
    margin: 10px 0 20px 20px;
}

a {
    color: #004080;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

footer {
    clear: both;
    font-size: 12px;
    color: #666;
    text-align: right;
    margin-top: 20px;
    padding: 10px;
    border-top: 1px solid #ccc;
}

/* Education section and certifications */
.education-section {
    margin-bottom: 30px;
    clear: both;
}

.education-section .section-title {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    padding: 10px 15px;
    margin-bottom: 20px;
}

.degree-title {
    margin-bottom: 25px;
    padding: 15px;
    background-color: #f9f9f9;
    border-left: 3px solid #2c5aa0;
    border: 1px solid #e0e0e0;
}

.degree-title h4 {
    margin: 0 0 8px 0;
    color: #2c5aa0;
    font-size: 18px;
}

.degree-title p {
    margin: 5px 0;
    color: #666;
}

.degree-title p em {
    color: #555;
    font-style: italic;
}

.two-column-edu {
    width: 100%;
    overflow: hidden;
}

.left-edu-column, .right-edu-column {
    width: 48%;
    float: left;
}

.left-edu-column {
    margin-right: 4%;
}

.two-column-edu h3 {
    color: #2c5aa0;
    font-size: 18px;
    margin: 0 0 15px 0;
    padding: 8px 12px;
    background-color: #e8e8e8;
    border-left: 4px solid #2c5aa0;
}

.edu-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 13px;
    background-color: #fff;
    border: 1px solid #ddd;
}

.edu-table th {
    background-color: #2c5aa0;
    color: white;
    padding: 8px 6px;
    text-align: left;
    font-weight: bold;
    font-size: 12px;
}

.edu-table td {
    padding: 8px 6px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.edu-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.edu-table tr:hover {
    background-color: #f0f8ff;
}

.cert-name { font-weight: bold; color: #2c5aa0; }
.cert-org { color: #666; font-style: italic; }
.cert-year { font-weight: bold; color: #333; }
.cert-link { margin-top: 3px; font-size: 11px; }

.cert-link a {
    color: #2c5aa0;
    text-decoration: none;
}

.cert-link a:hover {
    color: #1a3d6b;
    text-decoration: underline;
}

@media screen and (max-width: 768px) {
    .left-edu-column,
    .right-edu-column {
        width: 100%;
        float: none;
        margin-right: 0;
        margin-bottom: 20px;
    }
    .edu-table {
        font-size: 12px;
    }
    .edu-table th,
    .edu-table td {
        padding: 6px 4px;
    }
    .edu-table th {
        font-size: 11px;
    }
}

@media screen and (max-width: 480px) {
    .edu-table, .edu-table thead, .edu-table tbody, .edu-table th, .edu-table td, .edu-table tr {
        display: block;
    }
    .edu-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    .edu-table tr {
        border: 1px solid #ddd;
        margin-bottom: 10px;
        padding: 8px;
        background-color: #f9f9f9;
    }
    .edu-table td {
        border: none;
        padding: 4px 0;
        position: relative;
        padding-left: 50%;
    }
    .edu-table td:before {
        content: attr(data-label) ": ";
        position: absolute;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: bold;
        color: #2c5aa0;
    }
}