/* Template 04 - Moderno (Modern Dark Teal) */
/* Contemporary and clean design */

/* ====================== */
/* TEMPLATE VARIABLES     */
/* ====================== */
.template-04 {
    --t-primary: #234e52;
    --t-primary-light: #2c7a7b;
    --t-secondary: #38b2ac;
    --t-text: #1a202c;
    --t-text-light: #4a5568;
    --t-bg: #ffffff;
    --t-border: #e2e8f0;

    --t-font-main: 'Open Sans', sans-serif;
    --t-font-heading: 'Montserrat', sans-serif;
    --t-font-size-base: 10pt;
    --t-font-size-sm: 9pt;
    --t-font-size-xs: 8pt;
    --t-font-size-name: 24pt;
    --t-font-size-section: 10pt;

    --t-spacing-base: 12px;
    --t-spacing-sm: 8px;
    --t-spacing-xs: 4px;
    --t-spacing-lg: 16px;
    --t-spacing-xl: 24px;
}

/* ====================== */
/* TEMPLATE BASE          */
/* ====================== */
.template-04 {
    font-family: var(--t-font-main);
    font-size: var(--t-font-size-base);
    color: var(--t-text);
    background: var(--t-bg);
    line-height: 1.5;
    padding: 0;
    width: 100%;
}

/* ====================== */
/* HEADER                 */
/* ====================== */
.template-04 .cv-header {
    background: var(--t-primary);
    color: white;
    padding: var(--t-spacing-sm) var(--t-spacing-lg);
    display: flex;
    flex-direction: column;
}

.template-04 .cv-contact-bar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--t-spacing-base);
    font-size: var(--t-font-size-xs);
    padding: var(--t-spacing-sm) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.template-04 .cv-contact-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.template-04 .cv-contact-item svg {
    width: 11px;
    height: 11px;
    fill: var(--t-secondary);
}

.template-04 .cv-cnh {
    background: var(--t-secondary);
    color: white;
    padding: 2px 10px;
    border-radius: 3px;
    font-size: var(--t-font-size-xs);
    font-weight: 600;
    display: inline-block;
    margin-top: var(--t-spacing-xs);
}

.template-04 .cv-name {
    font-family: var(--t-font-heading);
    font-size: var(--t-font-size-name);
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-align: left;
    padding: var(--t-spacing-base) 0;
}

/* ====================== */
/* MAIN CONTENT           */
/* ====================== */
.template-04 .cv-body {
    padding: var(--t-spacing-lg);
}

.template-04 .cv-section {
    margin-bottom: var(--t-spacing-xl);
    overflow: hidden;
    transition: margin 0.4s ease-out, opacity 0.3s ease;
}

.template-04 .cv-section:last-child {
    margin-bottom: 0;
}

.template-04 .cv-section-header {
    background: transparent;
    color: var(--t-primary);
    font-family: var(--t-font-heading);
    font-size: var(--t-font-size-section);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: var(--t-spacing-xs) 0;
    margin-bottom: var(--t-spacing-base);
    border-bottom: 3px solid var(--t-primary);
    display: flex;
    align-items: center;
    gap: var(--t-spacing-sm);
}

.template-04 .cv-section-header::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--t-secondary);
    border-radius: 2px;
}

.template-04 .cv-section-content {
    padding-left: 0;
}

/* ====================== */
/* EXPERIENCE ENTRIES     */
/* ====================== */
.template-04 .cv-entry {
    display: flex;
    flex-direction: column;
    margin-bottom: var(--t-spacing-lg);
    padding: var(--t-spacing-base);
    background: #f7fafc;
    border-radius: 6px;
    border-left: 4px solid var(--t-secondary);
}

.template-04 .cv-entry:last-child {
    margin-bottom: 0;
}

.template-04 .cv-entry-period {
    font-size: var(--t-font-size-xs);
    color: var(--t-secondary);
    font-weight: 600;
    margin-bottom: var(--t-spacing-xs);
}

.template-04 .cv-entry-title {
    font-weight: 700;
    font-size: 11pt;
    color: var(--t-text);
    margin-bottom: var(--t-spacing-xs);
}

.template-04 .cv-entry-company {
    color: var(--t-primary);
    font-weight: 600;
    font-size: var(--t-font-size-sm);
    margin-bottom: var(--t-spacing-sm);
}

.template-04 .cv-entry-location {
    font-weight: 400;
    color: var(--t-text-light);
}

.template-04 .cv-entry-activities {
    margin-top: var(--t-spacing-sm);
    padding-left: var(--t-spacing-base);
}

.template-04 .cv-entry-activities li {
    position: relative;
    padding-left: var(--t-spacing-base);
    margin-bottom: var(--t-spacing-xs);
    font-size: var(--t-font-size-sm);
    line-height: 1.5;
}

.template-04 .cv-entry-activities li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--t-secondary);
}

/* ====================== */
/* EDUCATION ENTRIES      */
/* ====================== */
.template-04 .cv-education-entry {
    display: flex;
    flex-direction: column;
    padding: var(--t-spacing-sm) var(--t-spacing-base);
    background: #f7fafc;
    border-radius: 4px;
    margin-bottom: var(--t-spacing-sm);
    border-left: 3px solid var(--t-secondary);
}

.template-04 .cv-education-entry:last-child {
    margin-bottom: 0;
}

.template-04 .cv-education-level {
    font-weight: 700;
    margin-bottom: 2px;
}

.template-04 .cv-education-institution {
    font-size: var(--t-font-size-sm);
    color: var(--t-text-light);
}

/* ====================== */
/* SKILLS SECTION         */
/* ====================== */
.template-04 .cv-skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--t-spacing-sm);
}

.template-04 .cv-skill-item {
    background: var(--t-primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: var(--t-font-size-xs);
    font-weight: 500;
}

/* ====================== */
/* OBJECTIVE              */
/* ====================== */
.template-04 .cv-objective-text {
    font-size: var(--t-font-size-sm);
    line-height: 1.6;
    padding: var(--t-spacing-base);
    background: #f7fafc;
    border-radius: 6px;
    border-left: 4px solid var(--t-secondary);
}

/* ====================== */
/* HIDDEN & ANIMATIONS    */
/* ====================== */
.template-04 .cv-section.hidden {
    display: none;
}

.template-04 .cv-section.hiding {
    animation: sectionHideGlow 0.8s ease-out forwards;
}

.template-04 .cv-section.showing {
    animation: sectionShowGlow 0.8s ease-out forwards;
}

/* ====================== */
/* PRINT STYLES           */
/* ====================== */
@media print {
    .template-04 {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}