/* ==========================================================================
   REAL RESUME — 23 DISTINCT PROFESSIONAL RESUME TEMPLATES
   Calibrated for exact 210mm x 297mm (A4) rendering and PDF print output
   ========================================================================== */

/* --- Universal Template Reset & Typography Scale --- */
.resume-paper {
  font-family: var(--resume-font, 'Plus Jakarta Sans', sans-serif);
  color: var(--resume-text, #1e293b);
  line-height: var(--resume-line-height, 1.45);
  font-size: var(--resume-font-size, 10.5pt);
  background: #ffffff;
  padding: var(--resume-padding, 20mm 18mm);
  position: relative;
  box-sizing: border-box;
}

.resume-paper a {
  color: inherit;
  text-decoration: none;
}

.resume-paper h1, .resume-paper h2, .resume-paper h3, .resume-paper h4 {
  margin: 0;
  line-height: 1.2;
}

/* --- Base Component Styles for All Templates --- */
.cv-header-name {
  font-size: 22pt;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--resume-header-color, #0f172a);
}

.cv-header-title {
  font-size: 12pt;
  font-weight: 600;
  color: var(--resume-accent, #2563eb);
  margin-top: 3px;
}

.cv-contact-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 9pt;
  color: #475569;
  margin-top: 8px;
}

.cv-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cv-section {
  margin-top: 14px;
}

.cv-section-title {
  font-size: 11pt;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--resume-heading-color, #0f172a);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cv-entry {
  margin-bottom: 10px;
}

.cv-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.cv-entry-title {
  font-size: 10.5pt;
  font-weight: 700;
  color: #0f172a;
}

.cv-entry-subtitle {
  font-size: 9.5pt;
  font-weight: 600;
  color: var(--resume-accent, #2563eb);
}

.cv-entry-meta {
  font-size: 9pt;
  color: #64748b;
  white-space: nowrap;
}

.cv-bullet-list {
  margin-top: 4px;
  padding-left: 16px;
  list-style-type: disc;
}

.cv-bullet-list li {
  font-size: 9.5pt;
  color: #334155;
  margin-bottom: 3px;
  line-height: 1.4;
}

.cv-skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.cv-skill-tag {
  font-size: 8.5pt;
  background-color: #f1f5f9;
  color: #1e293b;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 500;
  border: 1px solid #e2e8f0;
}

/* ==========================================================================
   TEMPLATE 1: ATS SOFTWARE ENGINEER (High ATS Readability, Classic Single Column)
   ========================================================================== */
.template-ats-software-engineer {
  --resume-font: 'Inter', sans-serif;
  --resume-accent: #1e3a8a;
  padding: 18mm 18mm;
}
.template-ats-software-engineer .cv-header-name {
  text-align: center;
  font-size: 24pt;
  letter-spacing: -0.01em;
}
.template-ats-software-engineer .cv-header-title {
  text-align: center;
  font-size: 11.5pt;
  color: #334155;
}
.template-ats-software-engineer .cv-contact-bar {
  justify-content: center;
  border-bottom: 1.5px solid #0f172a;
  padding-bottom: 10px;
  margin-bottom: 10px;
}
.template-ats-software-engineer .cv-section-title {
  border-bottom: 1px solid #0f172a;
  padding-bottom: 2px;
  font-size: 10.5pt;
}

/* ==========================================================================
   TEMPLATE 2: MODERN FULL-STACK DEVELOPER (Sleek Two-Column with Left Tech Column)
   ========================================================================== */
.template-modern-fullstack {
  --resume-font: 'Plus Jakarta Sans', sans-serif;
  --resume-accent: #2563eb;
  padding: 0;
  display: grid;
  grid-template-columns: 70mm 140mm;
  min-height: 297mm;
}
.template-modern-fullstack .cv-col-sidebar {
  background-color: #0f172a;
  color: #f8fafc;
  padding: 20mm 12mm;
}
.template-modern-fullstack .cv-col-sidebar .cv-header-name {
  color: #ffffff;
  font-size: 18pt;
}
.template-modern-fullstack .cv-col-sidebar .cv-header-title {
  color: #60a5fa;
  font-size: 10.5pt;
}
.template-modern-fullstack .cv-col-sidebar .cv-contact-bar {
  flex-direction: column;
  gap: 8px;
  color: #cbd5e1;
  margin-top: 14px;
}
.template-modern-fullstack .cv-col-sidebar .cv-section-title {
  color: #93c5fd;
  border-bottom: 1px solid #334155;
  padding-bottom: 4px;
  margin-top: 18px;
  font-size: 9.5pt;
}
.template-modern-fullstack .cv-col-sidebar .cv-skill-tag {
  background-color: #1e293b;
  color: #e2e8f0;
  border-color: #334155;
}
.template-modern-fullstack .cv-col-main {
  padding: 20mm 15mm;
  background-color: #ffffff;
}
.template-modern-fullstack .cv-col-main .cv-section-title {
  border-bottom: 2px solid var(--resume-accent);
  padding-bottom: 3px;
}

/* ==========================================================================
   TEMPLATE 3: MINIMALIST BACKEND DEVELOPER (Monospace Accents, Dense & Clean)
   ========================================================================== */
.template-minimalist-backend {
  --resume-font: 'JetBrains Mono', monospace;
  font-size: 9pt;
  padding: 16mm 16mm;
}
.template-minimalist-backend .cv-header-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18pt;
  font-weight: 700;
}
.template-minimalist-backend .cv-section-title {
  font-size: 10pt;
  background-color: #f8fafc;
  border-left: 3px solid #0f172a;
  padding: 3px 8px;
}
.template-minimalist-backend .cv-bullet-list li {
  font-size: 8.5pt;
}

/* ==========================================================================
   TEMPLATE 4: OPEN-SOURCE & PROJECTS DEVELOPER (Repo & Architecture Focused)
   ========================================================================== */
.template-open-source-dev {
  --resume-font: 'Plus Jakarta Sans', sans-serif;
  --resume-accent: #0ea5e9;
  padding: 18mm 18mm;
}
.template-open-source-dev .cv-header-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 16px 20px;
  border-radius: 6px;
  margin-bottom: 14px;
}
.template-open-source-dev .cv-header-banner .cv-header-name {
  color: #ffffff;
}
.template-open-source-dev .cv-header-banner .cv-header-title {
  color: #38bdf8;
}
.template-open-source-dev .cv-header-banner .cv-contact-bar {
  color: #94a3b8;
}
.template-open-source-dev .cv-section-title {
  color: #0284c7;
  border-bottom: 1.5px solid #e0f2fe;
  padding-bottom: 4px;
}

/* ==========================================================================
   TEMPLATE 5: EXPERIENCED STAFF / PRINCIPAL ENGINEER (High-Density Leadership)
   ========================================================================== */
.template-staff-engineer {
  --resume-font: 'Inter', sans-serif;
  --resume-accent: #1e40af;
  padding: 18mm 20mm;
}
.template-staff-engineer .cv-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 2px solid #1e40af;
  padding-bottom: 12px;
}
.template-staff-engineer .cv-section-title {
  font-size: 11pt;
  color: #1e40af;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

/* ==========================================================================
   TEMPLATE 6: CAMPUS PLACEMENT RESUME (Education & Academic Projects First)
   ========================================================================== */
.template-campus-placement {
  --resume-font: 'Outfit', sans-serif;
  --resume-accent: #0284c7;
  padding: 16mm 16mm;
}
.template-campus-placement .cv-header-name {
  font-size: 20pt;
  color: #0c4a6e;
  text-align: center;
}
.template-campus-placement .cv-header-title {
  text-align: center;
  font-size: 11pt;
  color: #0284c7;
}
.template-campus-placement .cv-contact-bar {
  justify-content: center;
  margin-bottom: 12px;
}
.template-campus-placement .cv-section-title {
  background-color: #f0f9ff;
  color: #0369a1;
  border-left: 4px solid #0284c7;
  padding: 4px 10px;
  font-size: 10pt;
}

/* ==========================================================================
   TEMPLATE 7: COMPUTER SCIENCE FRESHER (Competencies & Capstone Showcase)
   ========================================================================== */
.template-cs-fresher {
  --resume-font: 'Plus Jakarta Sans', sans-serif;
  --resume-accent: #6366f1;
  padding: 18mm 18mm;
}
.template-cs-fresher .cv-section-title {
  color: #4f46e5;
  border-bottom: 1.5px solid #e0e7ff;
  padding-bottom: 3px;
}
.template-cs-fresher .cv-skill-tag {
  background-color: #eef2ff;
  color: #3730a3;
  border-color: #c7d2fe;
}

/* ==========================================================================
   TEMPLATE 8: INTERNSHIP APPLICATION RESUME (Clean University Student Layout)
   ========================================================================== */
.template-internship-application {
  --resume-font: 'Inter', sans-serif;
  --resume-accent: #059669;
  padding: 18mm 18mm;
}
.template-internship-application .cv-section-title {
  color: #047857;
  border-bottom: 1.5px solid #d1fae5;
  padding-bottom: 3px;
}
.template-internship-application .cv-skill-tag {
  background-color: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}

/* ==========================================================================
   TEMPLATE 9: ACADEMIC & RESEARCH RESUME (Merriweather Serif, Publications Focus)
   ========================================================================== */
.template-academic-research {
  --resume-font: 'Merriweather', serif;
  --resume-accent: #334155;
  font-size: 10pt;
  line-height: 1.55;
  padding: 20mm 20mm;
}
.template-academic-research .cv-header-name {
  font-family: 'Merriweather', serif;
  font-size: 20pt;
  font-weight: 700;
  text-align: center;
}
.template-academic-research .cv-header-title {
  font-family: 'Merriweather', serif;
  font-style: italic;
  text-align: center;
  color: #475569;
}
.template-academic-research .cv-contact-bar {
  justify-content: center;
  border-bottom: 1px solid #94a3b8;
  padding-bottom: 10px;
}
.template-academic-research .cv-section-title {
  font-family: 'Merriweather', serif;
  font-size: 10.5pt;
  border-bottom: 1px solid #cbd5e1;
  padding-bottom: 2px;
}

/* ==========================================================================
   TEMPLATE 10: GENERAL ENTRY-LEVEL RESUME (Universal & Accessible)
   ========================================================================== */
.template-entry-level-general {
  --resume-font: 'Plus Jakarta Sans', sans-serif;
  --resume-accent: #2563eb;
  padding: 18mm 18mm;
}
.template-entry-level-general .cv-section-title {
  border-bottom: 1.5px solid #bfdbfe;
  padding-bottom: 3px;
}

/* ==========================================================================
   TEMPLATE 11: DATA ANALYST (KPI & SQL/Tableau Focused)
   ========================================================================== */
.template-data-analyst {
  --resume-font: 'Inter', sans-serif;
  --resume-accent: #0d9488;
  padding: 18mm 18mm;
}
.template-data-analyst .cv-section-title {
  color: #0f766e;
  border-bottom: 1.5px solid #ccfbf1;
  padding-bottom: 3px;
}

/* ==========================================================================
   TEMPLATE 12: DATA SCIENTIST (Algorithms, Models, Quantitative Lift)
   ========================================================================== */
.template-data-scientist {
  --resume-font: 'Plus Jakarta Sans', sans-serif;
  --resume-accent: #7c3aed;
  padding: 18mm 18mm;
}
.template-data-scientist .cv-section-title {
  color: #6d28d9;
  border-bottom: 1.5px solid #ede9fe;
  padding-bottom: 3px;
}

/* ==========================================================================
   TEMPLATE 13: MACHINE LEARNING ENGINEER (MLOps, PyTorch, Latency Metrics)
   ========================================================================== */
.template-ml-engineer {
  --resume-font: 'JetBrains Mono', 'Inter', monospace;
  --resume-accent: #2563eb;
  padding: 18mm 18mm;
}
.template-ml-engineer .cv-header-name {
  font-family: 'Outfit', sans-serif;
  font-size: 22pt;
}
.template-ml-engineer .cv-section-title {
  border-left: 3px solid #2563eb;
  padding-left: 8px;
  background-color: #f8fafc;
  padding-top: 3px;
  padding-bottom: 3px;
}

/* ==========================================================================
   TEMPLATE 14: AI RESEARCH & DEVELOPMENT (Dual Affiliations & Preprints)
   ========================================================================== */
.template-ai-researcher {
  --resume-font: 'Inter', sans-serif;
  --resume-accent: #4338ca;
  padding: 20mm 20mm;
}
.template-ai-researcher .cv-section-title {
  color: #3730a3;
  border-bottom: 1px solid #c7d2fe;
  padding-bottom: 3px;
}

/* ==========================================================================
   TEMPLATE 15: BUSINESS INTELLIGENCE ANALYST (Executive Reporting & ETL)
   ========================================================================== */
.template-bi-analyst {
  --resume-font: 'Plus Jakarta Sans', sans-serif;
  --resume-accent: #0369a1;
  padding: 18mm 18mm;
}
.template-bi-analyst .cv-section-title {
  color: #075985;
  border-bottom: 1.5px solid #bae6fd;
  padding-bottom: 3px;
}

/* ==========================================================================
   TEMPLATE 16: BUSINESS ANALYST (Stakeholder & Agile Focused)
   ========================================================================== */
.template-business-analyst {
  --resume-font: 'Inter', sans-serif;
  --resume-accent: #1e3a8a;
  padding: 18mm 18mm;
}
.template-business-analyst .cv-section-title {
  border-bottom: 1.5px solid #e2e8f0;
  padding-bottom: 3px;
}

/* ==========================================================================
   TEMPLATE 17: FINANCIAL ANALYST (Wall Street Corporate Serif & Modeling)
   ========================================================================== */
.template-financial-analyst {
  --resume-font: 'Merriweather', serif;
  font-size: 9.5pt;
  padding: 18mm 20mm;
}
.template-financial-analyst .cv-header-name {
  font-family: 'Merriweather', serif;
  text-align: center;
  font-size: 22pt;
  letter-spacing: 0.02em;
}
.template-financial-analyst .cv-header-title {
  text-align: center;
  font-style: italic;
  font-size: 11pt;
  color: #1e293b;
}
.template-financial-analyst .cv-contact-bar {
  justify-content: center;
  border-top: 1px solid #0f172a;
  border-bottom: 1px solid #0f172a;
  padding: 6px 0;
  margin: 10px 0;
}
.template-financial-analyst .cv-section-title {
  font-family: 'Merriweather', serif;
  font-size: 10pt;
  border-bottom: 1px solid #94a3b8;
  padding-bottom: 2px;
}

/* ==========================================================================
   TEMPLATE 18: MANAGEMENT CONSULTANT (McKinsey / BCG Case Impact)
   ========================================================================== */
.template-management-consultant {
  --resume-font: 'Inter', sans-serif;
  --resume-accent: #0f172a;
  padding: 18mm 20mm;
}
.template-management-consultant .cv-header-name {
  font-size: 22pt;
  font-weight: 800;
  color: #0f172a;
}
.template-management-consultant .cv-section-title {
  border-bottom: 1.5px solid #0f172a;
  padding-bottom: 3px;
}

/* ==========================================================================
   TEMPLATE 19: MARKETING & GROWTH PROFESSIONAL (CAC/LTV & Campaign Lift)
   ========================================================================== */
.template-marketing-growth {
  --resume-font: 'Outfit', sans-serif;
  --resume-accent: #e11d48;
  padding: 18mm 18mm;
}
.template-marketing-growth .cv-header-title {
  color: #e11d48;
}
.template-marketing-growth .cv-section-title {
  color: #be123c;
  border-bottom: 1.5px solid #fecdd3;
  padding-bottom: 3px;
}
.template-marketing-growth .cv-skill-tag {
  background-color: #fff1f2;
  color: #9f1239;
  border-color: #fecdd3;
}

/* ==========================================================================
   TEMPLATE 20: PROJECT MANAGER / PMP (Agile & Budget Scale)
   ========================================================================== */
.template-project-manager-pmp {
  --resume-font: 'Plus Jakarta Sans', sans-serif;
  --resume-accent: #0284c7;
  padding: 18mm 18mm;
}
.template-project-manager-pmp .cv-section-title {
  color: #0369a1;
  border-bottom: 1.5px solid #bae6fd;
  padding-bottom: 3px;
}

/* ==========================================================================
   TEMPLATE 21: PRODUCT DESIGNER (Design Systems & User Research)
   ========================================================================== */
.template-product-designer {
  --resume-font: 'Outfit', sans-serif;
  --resume-accent: #6366f1;
  padding: 18mm 18mm;
}
.template-product-designer .cv-header-name {
  font-size: 26pt;
  letter-spacing: -0.03em;
}
.template-product-designer .cv-section-title {
  color: #4f46e5;
  border-bottom: 2px solid #e0e7ff;
  padding-bottom: 4px;
}

/* ==========================================================================
   TEMPLATE 22: UI/UX DESIGNER (Visual Portfolio & Case Studies)
   ========================================================================== */
.template-ui-ux-designer {
  --resume-font: 'Plus Jakarta Sans', sans-serif;
  --resume-accent: #8b5cf6;
  padding: 0;
  display: grid;
  grid-template-columns: 68mm 142mm;
  min-height: 297mm;
}
.template-ui-ux-designer .cv-col-sidebar {
  background-color: #faf5ff;
  border-right: 1px solid #f3e8ff;
  padding: 20mm 12mm;
}
.template-ui-ux-designer .cv-col-sidebar .cv-header-name {
  font-size: 19pt;
  color: #581c87;
}
.template-ui-ux-designer .cv-col-sidebar .cv-header-title {
  color: #7e22ce;
  font-size: 10pt;
}
.template-ui-ux-designer .cv-col-sidebar .cv-section-title {
  color: #6b21a8;
  border-bottom: 1.5px solid #e9d5ff;
  padding-bottom: 4px;
  margin-top: 18px;
}
.template-ui-ux-designer .cv-col-main {
  padding: 20mm 14mm;
  background-color: #ffffff;
}
.template-ui-ux-designer .cv-col-main .cv-section-title {
  color: #581c87;
  border-bottom: 2px solid #8b5cf6;
  padding-bottom: 4px;
}

/* ==========================================================================
   TEMPLATE 23: EXECUTIVE LEADERSHIP (C-Suite / VP / Strategic Impact)
   ========================================================================== */
.template-executive-leadership {
  --resume-font: 'Inter', sans-serif;
  --resume-accent: #0f172a;
  padding: 20mm 20mm;
}
.template-executive-leadership .cv-header-row {
  border-bottom: 3px solid #0f172a;
  padding-bottom: 12px;
  margin-bottom: 14px;
}
.template-executive-leadership .cv-header-name {
  font-size: 24pt;
  font-weight: 800;
  color: #0f172a;
}
.template-executive-leadership .cv-header-title {
  font-size: 12pt;
  color: #475569;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.template-executive-leadership .cv-section-title {
  font-size: 11pt;
  letter-spacing: 0.1em;
  border-bottom: 1px solid #cbd5e1;
  padding-bottom: 3px;
}
