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

body {
    font-family: 'Arial', sans-serif;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
}

.section-divider {
    width: 100%;
    height: 2px;
    background-color: #ccc;
    margin: 5px 0 10px 0;
}
.container {
    font-size: 14px;
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 20px;
    background: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.name-bar {
    background: #353636;
    grid-column: 1 / span 2;
    color: #fff;
    padding: 10px 20px;
    text-align: left;
}

.summary-content {
    text-align: justify;
    margin-bottom: 10px;
}

header {
    grid-column: 1 / span 2;
    text-align: left;
    padding-bottom: 10px;
}

header h1 {
    font-size: 2.5rem;
    color: #fff;
}

header h2 {
    font-size: 1.6rem;
    color: #fff;
    font-weight: 300;
}

.main-content h4 {
    margin-bottom: 5px;
    font-size: 1rem;
}
.work-history,
.education,
.references {
    margin-top: 5px;
    margin-bottom: 20px;
    text-align: justify;
}

.work-history-item {
    margin-top: 10px;
}

.date-location {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-style: italic;
    font-weight: 500;
}

.reference-grid,
.education-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: 12px;
    column-gap: 10px;
    margin-top: 10px;
}

.reference-grid div,
.education-grid div {
    font-size: 0.95rem;
    line-height: 1.4;
}

.reference-grid strong,
.education-grid strong {
    font-weight: 600;
    color: #333;
}

.reference-grid em,
.education-grid em {
    font-style: italic;
    color: #555;
}

.right-align {
    text-align: right;
}

.responsibilities {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px 30px;
    list-style: disc inside;
    padding-left: 20px;
    margin-top: 5px;
    margin-left: 15px;
}

.responsibilities li {
    padding-left: 5px;
    line-height: 1.5;
}

.main-content, 
.sidebar {
    margin-top: 10px;
}

.sidebar {
    border-left: 2px solid #ddd;
    padding-left: 20px;
}

.sidebar h3 {
    color: #333;
    font-size: 1.2rem;
}

.sidebar h4 {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.sidebar p {
    margin-bottom: 10px;
}
.contact h3,
.languages h3,
.skills h3, 
.soft-skills h3 {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 10px;
    border-bottom: #333;
}

h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

ul {
    list-style-type: disc;
    margin-left: 5px;
    padding: 0;
}

li {
    margin-bottom: 5px;
}

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

a:hover {
    text-decoration: underline;
}

footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #555;
}

@media print {
    body {
        width: 210mm;
        height: 297mm;
        margin: 0;
        padding: 0;
        font-size: 12pt;
    }

    .container {
        width: 190mm;
        margin: 10mm auto;
        padding: 0;
        box-shadow: none !important;
    }

    .section-divider {
        page-break-after: avoid;
    }

    .sidebar {
        border-left: none;
    }

    /* Avoid content being split badly */
    h3, h4, .date-location, ul, p {
        page-break-inside: avoid;
    }

    /* Hide things not needed in print */
    a::after {
        content: "";
    }
}
