/* ==============================================
   CV PAGE - REFACTORED STYLES
   ============================================== */

/* ----------------------------
   1. Main Page Layout
   ---------------------------- */
/* This rule now correctly centers the main content on the CV page */
.cv-page {
    max-width: 1050px;
/*    max-width: var(--container-width);*/
    margin: 0 auto;
    padding: 1rem;
}

/* ----------------------------
   2. CV Section & Entry Styling
   ---------------------------- */
.cv-page h2 {
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 5px;
/*    margin-top: 40px;*/
    margin-bottom: 25px; /* Added margin for better spacing */
    font-size: 1.8em;
    color: #2c3e50;
}

.cv-page .entry {
    display: flex;
    margin-bottom: 30px;
    align-items: flex-start;
}

.cv-page .timeline {
    width: 160px;
    font-weight: 600;
    color: #888;
    flex-shrink: 0;
    padding-top: 3px;
}

.cv-page .content {
/*    max-width: 780px;*/
    flex-grow: 1;
    background-color: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.cv-page .content:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cv-page .position {
    font-size: 1.1em;
    font-weight: bold;
    color: #222;
}

.cv-page .location {
    font-style: italic;
    color: #666;
    margin-top: 4px;
    font-size: 0.95em;
}

.cv-page .host {
    margin-top: 8px;
    font-size: 0.9em;
    color: #555;
}

/* ----------------------------
   3. CV Button with lightbox
   ---------------------------- */
.download-cv {
    text-align: center;
    margin: 0px 0;
}

.cv-button {
    display: inline-block;
    background-color: #2c3e50;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #2c3e50;
    
    font-family: inherit; /* Ensures it uses the page's main font */
    cursor: pointer;      /* This is CRUCIAL - makes it look clickable */
}

.cv-button:hover {
    background-color: transparent;
    color: #2c3e50;
}

.cv-note {
    margin-top: 8px;
    font-size: 0.9em;
    color: #666;
    font-style: italic;
}

/* ----------------------------
   4. Responsive Design
   ---------------------------- */
@media (max-width: 768px) {
    .cv-page main {
        padding: 1rem; /* Less padding on smaller screens */
    }

    .cv-page .entry {
        flex-direction: column;
    }
    
    .cv-page .timeline {
        width: 100%;
        margin-bottom: 5px;
        padding-top: 0;
    }
    
    .cv-page .content {
        padding: 12px 15px;
        width: 100%;
        box-sizing: border-box; /* Ensures padding doesn't add to width */
    }
}
