:root {
    --primary: #3c2a21;
    --secondary: #fd920e;
    --light: #f8fafc;
    --dark: #3c2a21;
}

.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.bg-secondary { background-color: var(--secondary) !important; }
.border-primary { border-color: var(--primary) !important; }
.border-secondary { border-color: var(--secondary) !important; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.3;
    color: var(--dark);
    background: #e9ecef;
    font-size: 10pt;
}

.container {
    max-width: 210mm;
    min-height: 297mm;
    margin: 0 auto;
    padding: 15mm 8mm;
    background: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.main-content {
    display: flex;
    gap: 20px;
}

.sidebar {
    width: 38%;
    flex-shrink: 0;
}

.content {
    width: 62%;
    flex-grow: 1;
}

.header.hero {
    background-color: var(--secondary) !important;
    color: var(--dark) !important;
}

.section-title {
    color: var(--primary);
    font-size: 1.1em;
    margin-bottom: 0.8rem;
    padding-bottom: 4px;
    position: relative;
    text-transform: uppercase;
    font-weight: 700;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
}
.sidebar .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.experience-item {
    transition: transform 0.2s;
    border-radius: 8px !important;
}
.experience-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
}

.experience-list {
    padding-left: 0;
    margin-top: 5px;
}
.experience-list li {
    font-size: 0.95em;
    line-height: 1.4;
    padding-left: 0;
}

@media print {
    body {
        margin: 0;
        padding: 0;
        font-size: 9pt;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .container {
        max-width: 100%;
        min-height: 100vh;
        margin: 0;
        padding: 3mm;
        box-shadow: none;
    }

    .main-content {
        display: flex;
        flex-direction: row; 
        gap: 10px;
    }

    .sidebar {
        width: 35%;
        flex-shrink: 0;
    }
    
    .content {
        width: 65%;
        flex-grow: 1;
        padding-left: 10px !important; 
    }
    
    .header.hero {
        padding: 0.6rem !important;
        margin-bottom: 0.5rem !important;
    }
    .header h1 {
        margin-bottom: 0.2rem !important;
        font-size: 1.2em;
    }
    .header .contact-info {
        gap: 0.5rem !important;
        font-size: 0.8em;
    }

    .section-title {
        margin-bottom: 0.5rem;
    }
    
    .experience-item, .education-item {
        margin-bottom: 0.3rem !important;
        padding: 0.4rem !important;
        border-radius: 4px !important;
    }

    .experience-list li {
        font-size: 0.9em;
        line-height: 1.2;
    }

    .section, .experience-item, .skills-section {
        page-break-inside: avoid;
    }
    
    .header.hero {
        background-color: #f7a63b !important; 
    }
}