/* Base CV styling */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans&display=swap');

.cv,
.cv * {
    font-family: 'Open Sans', Arial, sans-serif;
    line-height: 1.5;
    color: #222;
}
.cv {
    padding: 20px;
    margin: 20px auto;
    max-width: 800px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: visible;
    page-break-after: auto;
    color: #222;
    font-family: Arial, sans-serif;
}

.cv .header {
    text-align: center;
    border-bottom: 1px solid #aaa;
    padding-bottom: 10px;
}

.cv h1 {
    margin: 0;
    font-size: 2em;
}

.cv .contact {
    font-size: 14px;
    color: #555;
    margin-top: 5px;
}

.cv .section {
    margin-top: 20px;
    page-break-inside: avoid;
    break-inside: avoid;
    margin-bottom: 20px;
}

.cv .section h2 {
    margin-bottom: 8px;
    border-bottom: 2px solid #444;
    padding-bottom: 4px;
}

/* Template 1 - Two columns with subtle borders */
.template1-container {
    display: flex;
    gap: 30px;
}

.template1-container .left-column,
.template1-container .right-column {
    flex: 1;
}

.template1-container .section.bordered {
    border: 1px solid #888;
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    background: #fafafa;
}

/* Template 2 - Single column strong borders */
.bordered-strong {
    border: 2px solid #666;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 6px;
    background: #f9f9f9;
    color: #222;
}

/* Template 3 - Sidebar layout with dotted borders */
.template3-container {
    display: flex;
    gap: 40px;
}

.sidebar {
    flex: 0 0 250px;
    border-right: 2px solid #888;
    padding-right: 20px;
    color: #333;
}

.main-content {
    flex: 1;
}

.template3-container .section.dotted {
    border: 2px dotted #888;
    padding: 12px 16px;
    margin-bottom: 15px;
    border-radius: 6px;
    background: #fbfbfb;
}
button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
}

@media screen and (max-width: 768px) {
    .cv {
        padding: 15px;
    }

    .template1-container,
    .template3-container {
        display: block;
    }

    .left-column,
    .right-column,
    .sidebar,
    .main-content {
        width: 100%;
        padding: 10px 0;
    }

    .cv .header h1 {
        font-size: 1.5rem;
    }

    button {
        width: 100%;
        margin-bottom: 10px;
    }
}

