
:root {
    --primary-color: #0a3b6c;
    --secondary-color: #e6eef7;
    --text-color: #333;
    --light-text: #666;
    --border-color: #ddd;
    --accent-color: #0056b3;
    --font-family-key: 'Roboto';
}

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

body {
    font-family: var(--font-family-key), sans-serif;
    background-color: #f5f5f5;
    color: var(--text-color);
    line-height: 1.6;
}

.cv-container {
    display: flex;
    max-width: 1000px;
    margin: 30px auto;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    background-color: #fff;
    position: relative;
    overflow: hidden;
}

.sidebar {
    width: 30%;
    background-color: var(--primary-color);
    color: white;
    padding: 40px 30px;
    position: relative;
}

.sidebar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background-color: #0d4b87;
}

.main-content {
    width: 70%;
    padding: 40px 30px;
}

.profile-img {
    width: 160px;
    height: 160px;
    border-radius: 5px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    margin: 0 auto 25px;
    display: block;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.name {
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.job-title {
    text-align: center;
    font-size: 16px;
    margin-bottom: 35px;
    text-transform: uppercase;
    color: #a3c2e8;
    letter-spacing: 1px;
    font-weight: 500;
    position: relative;
    padding-bottom: 15px;
}

.job-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.3);
}

.section {
    margin-bottom: 35px;
}

.section-title {
    font-size: 18px;
    text-transform: uppercase;
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
    padding-bottom: 8px;
    letter-spacing: 0.5px;
}

.sidebar .section-title {
    color: white;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.sidebar .section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #a3c2e8;
}

.sidebar p {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 15px;
}

.contact-item {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
}

.contact-item i {
    margin-right: 12px;
    min-width: 20px;
    color: #a3c2e8;
}

.contact-item span {
    font-size: 14px;
    line-height: 1.5;
}

.section-header {
    background-color: var(--secondary-color);
    padding: 12px 20px;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 18px;
    color: var(--primary-color);
    letter-spacing: 1px;
    border-left: 4px solid var(--primary-color);
}

.experience-item, .education-item {
    margin-bottom: 25px;
    position: relative;
    padding-left: 20px;
}

.experience-item::before, .education-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

.job-title-date {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.job-company, .education-institution {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 16px;
}

.job-position {
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.job-date, .education-date {
    color: var(--light-text);
    font-style: italic;
    font-size: 14px;
}

.job-description, .education-description {
    margin-top: 10px;
    font-size: 14px;
}

.job-description ul, .skills ul, .education-description ul {
    padding-left: 20px;
    list-style-type: none;
}

.job-description li, .skills li, .education-description li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 15px;
}

.job-description li::before, .skills li::before, .education-description li::before {
    content: '-';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
}

.skill-category {
    margin-bottom: 20px;
    padding-left: 20px;
    width: 100%;
}

.skill-category h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
    font-weight: 600;
}

.language-list {
    list-style-type: none;
    padding-left: 0;
}

.language-item {
    margin-bottom: 10px;
    font-size: 14px;
}

.language-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.language-level {
    height: 6px;
    background-color: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

.language-progress {
    height: 100%;
    background-color: var(--primary-color);
}

.specialty-list {
    list-style-type: none;
    padding-left: 20px;
}

.specialty-item {
    margin-bottom: 10px;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.specialty-item::before {
    content: '-';
    margin-right: 8px;
    color: var(--accent-color);
    font-weight: bold;
}

.download-cv {
    display: flex;
    justify-content: center;
    margin-top: 35px;
    margin-bottom: 35px;
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.download-btn:hover {
    background-color: #0d4b87;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.download-btn i {
    margin-right: 10px;
    font-size: 18px;
}

/* Modal tùy chọn ngôn ngữ */
.language-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.language-modal.active {
    display: flex;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 400px;
    text-align: center;
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.language-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.language-option {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.language-option:hover {
    background-color: var(--primary-color);
    color: white;
}

.language-option i {
    margin-right: 10px;
    font-size: 18px;
}

.close-modal {
    display: inline-block;
    padding: 10px 20px;
    background-color: #f5f5f5;
    color: var(--light-text);
    border: none;
    border-radius: 5px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.close-modal:hover {
    background-color: #e0e0e0;
}

@media (max-width: 768px) {
    .cv-container {
        flex-direction: column;
        margin: 0px 0px 30px 0px ;
        box-shadow: none;
    }
    
    .sidebar, .main-content {
        width: 100%;
    }
    
    .sidebar::after {
        display: none;
    }
    
    .job-title-date {
        flex-direction: column;
    }
    
    .job-date, .education-date {
        margin-top: 5px;
    }

    .download-cv {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: white;
        padding: 15px;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 100;
        margin: 0;
    }
    
    .download-btn {
        width: 100%;
    }

    .modal-content {
        width: 95%;
        padding: 20px;
    }
}

@media print {
    body {
        background-color: white;
    }
    
    .cv-container {
        box-shadow: none;
        margin: 0;
    }

    .download-cv, .language-modal {
        display: none !important;
    }
}