/* --- BASE RESUME RESET --- */
/* These apply to ALL templates to ensure good printing */
#resume-preview {
    font-family: 'Inter', sans-serif;
    color: #333;
    line-height: 1.5;
}

#resume-preview h1, #resume-preview h2, #resume-preview h3 { margin: 0; padding: 0; }
#resume-preview ul { padding-left: 1.2rem; margin: 0.5rem 0; }
#resume-preview p { margin: 0; }


/* =========================================
   TEMPLATE 1: MODERN
   Clean, sans-serif, blue accents, horizontal lines
   ========================================= */
.resume-paper.modern {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.resume-paper.modern h1 {
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #2c3e50;
    margin-bottom: 5px;
}

.resume-paper.modern .preview-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #3498db; /* Bright Blue */
    border-bottom: 2px solid #3498db;
    margin-top: 25px;
    margin-bottom: 10px;
    padding-bottom: 5px;
    text-transform: uppercase;
}

.resume-paper.modern .job-header {
    display: flex; justify-content: space-between;
    font-weight: bold;
    font-size: 1.05rem;
}


/* =========================================
   TEMPLATE 2: CLASSIC (The "Harvard" Look)
   Serif fonts, centered headers, very formal
   ========================================= */
.resume-paper.classic {
    font-family: 'Georgia', 'Times New Roman', serif;
    color: #000;
}

.resume-paper.classic h1 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 10px;
    border-bottom: 1px solid #000;
    padding-bottom: 15px;
}

.resume-paper.classic .contact-info {
    text-align: center;
    font-style: italic;
    margin-bottom: 20px;
}

.resume-paper.classic .preview-section-title {
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 20px;
    margin-bottom: 10px;
    border-bottom: 1px solid #000;
}

.resume-paper.classic .job-header {
    font-weight: bold;
    font-style: italic;
}


/* =========================================
   TEMPLATE 3: CREATIVE (Sidebar Layout)
   Colorful header, grid layout for body
   ========================================= */
.resume-paper.creative {
    font-family: 'Poppins', sans-serif;
    padding: 0 !important; /* Override default padding for full bleed header */
    display: grid;
    grid-template-rows: auto 1fr;
}

/* Header Banner */
.resume-paper.creative .creative-header {
    background: #2d3436;
    color: white;
    padding: 40px;
    text-align: left;
}
.resume-paper.creative h1 { color: #ffeaa7; font-size: 3rem; }
.resume-paper.creative .contact-info { color: #b2bec3; }

/* Body Content */
.resume-paper.creative .creative-body {
    padding: 30px 40px;
    display: grid;
    grid-template-columns: 2fr 1fr; /* Main Content | Sidebar */
    gap: 40px;
}

.resume-paper.creative .preview-section-title {
    color: #e17055; /* Coral Orange */
    font-size: 1.2rem;
    font-weight: 700;
    border-left: 5px solid #e17055;
    padding-left: 10px;
    margin: 20px 0 15px 0;
}


/* =========================================
   TEMPLATE 4: TECH (LaTeX Academic Style)
   Times New Roman, centered header, industry standard
   ========================================= */
.resume-paper.tech {
    font-family: 'Times New Roman', Times, serif;
    line-height: 1.2;
    color: #000;
}

.resume-paper.tech h1 {
    text-align: center;
    font-size: 24pt;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 5px 0;
    font-weight: bold;
    color: #000;
}

.resume-paper.tech .contact-info {
    text-align: center;
    font-size: 10pt;
    margin-top: 5px;
    margin-bottom: 20px;
    color: #000;
}

.resume-paper.tech .preview-section-title {
    font-size: 12pt;
    text-transform: uppercase;
    border-bottom: 1px solid #000;
    margin-top: 15px;
    margin-bottom: 8px;
    padding-bottom: 2px;
    font-weight: bold;
    color: #000;
}

.resume-paper.tech .job-header,
.resume-paper.tech .edu-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 11pt;
    margin-bottom: 2px;
}

.resume-paper.tech .job-header .company,
.resume-paper.tech .edu-header .school {
    font-weight: bold;
}

.resume-paper.tech .job-header .dates,
.resume-paper.tech .edu-header .dates {
    font-style: italic;
    font-size: 10pt;
}

.resume-paper.tech .job-title {
    font-style: italic;
    font-size: 10pt;
    margin-bottom: 4px;
}

.resume-paper.tech ul {
    margin: 2px 0 10px 18px;
    padding: 0;
    font-size: 10pt;
}

.resume-paper.tech li {
    margin-bottom: 2px;
}