/* ===== TEMPLATE: Modern Minimal (ATS Friendly) ===== */
.template-modern {
  padding: 44px 40px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  line-height: 1.5;
}

.template-modern .resume-header {
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 2.5px solid #6C63FF;
}

.template-modern .resume-name {
  font-family: 'Poppins', sans-serif;
  font-size: 30px;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 2px;
  letter-spacing: -0.8px;
  line-height: 1.2;
}

.template-modern .resume-title {
  font-size: 14px;
  color: #6C63FF;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}

.template-modern .resume-contact {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 10.5px;
  color: #6B7280;
}

.template-modern .resume-contact span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.template-modern .resume-contact i {
  color: #6C63FF;
  font-size: 9px;
}

.template-modern .resume-summary {
  font-size: 11px;
  color: #4B5563;
  line-height: 1.7;
  margin-bottom: 22px;
  text-align: center;
  max-width: 92%;
  margin-left: auto;
  margin-right: auto;
  padding: 12px 16px;
  background: #F8F9FC;
  border-radius: 8px;
}

.template-modern .resume-section {
  margin-bottom: 20px;
}

.template-modern .section-title {
  font-family: 'Poppins', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  color: #1a1a2e;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding-bottom: 6px;
  border-bottom: 1.5px solid #E5E7EB;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.template-modern .section-title::before {
  content: '';
  width: 4px;
  height: 14px;
  background: #6C63FF;
  border-radius: 2px;
  flex-shrink: 0;
}

.template-modern .entry {
  margin-bottom: 14px;
  padding-bottom: 10px;
}

.template-modern .entry:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}

.template-modern .entry-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2px;
}

.template-modern .entry-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #1a1a2e;
}

.template-modern .entry-date {
  font-size: 10px;
  color: #9CA3AF;
  white-space: nowrap;
  font-weight: 500;
}

.template-modern .entry-sub {
  font-size: 11px;
  color: #6C63FF;
  font-weight: 600;
  margin-bottom: 4px;
}

.template-modern .entry-desc {
  font-size: 10.5px;
  color: #6B7280;
  line-height: 1.65;
}

.template-modern .skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.template-modern .skill-tag {
  background: linear-gradient(135deg, #EEF0FF, #F3F4F6);
  color: #374151;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 10.5px;
  font-weight: 600;
  border: 1px solid #E5E7EB;
}

/* ===== TEMPLATE: Creative ===== */
.template-creative {
  display: grid;
  grid-template-columns: 195px 1fr;
  min-height: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
}

.template-creative .sidebar {
  background: linear-gradient(180deg, #6C63FF 0%, #4338CA 60%, #312E81 100%);
  color: white;
  padding: 36px 20px 28px;
}

.template-creative .sidebar .resume-name {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 2px;
  line-height: 1.2;
}

.template-creative .sidebar .resume-title {
  font-size: 11px;
  opacity: 0.75;
  margin-bottom: 28px;
  font-weight: 400;
  letter-spacing: 0.3px;
}

.template-creative .sidebar .section-title {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  opacity: 0.55;
  margin-bottom: 12px;
  margin-top: 24px;
  font-weight: 700;
}

.template-creative .sidebar .section-title:first-of-type {
  margin-top: 0;
}

.template-creative .sidebar .contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9.5px;
  margin-bottom: 9px;
  word-break: break-all;
  line-height: 1.4;
}

.template-creative .sidebar .contact-item i {
  width: 14px;
  text-align: center;
  opacity: 0.7;
  font-size: 9px;
  flex-shrink: 0;
}

.template-creative .sidebar .skill-item {
  margin-bottom: 10px;
}

.template-creative .sidebar .skill-name {
  font-size: 10px;
  margin-bottom: 5px;
  font-weight: 500;
}

.template-creative .sidebar .skill-dots {
  display: flex;
  gap: 4px;
}

.template-creative .sidebar .skill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transition: background 0.3s;
}

.template-creative .sidebar .skill-dot.filled {
  background: white;
  box-shadow: 0 0 6px rgba(255,255,255,0.3);
}

.template-creative .main-content {
  padding: 36px 28px 28px;
}

.template-creative .main-content .resume-summary {
  font-size: 11px;
  color: #6B7280;
  line-height: 1.7;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1.5px solid #E5E7EB;
}

.template-creative .main-content .resume-section {
  margin-bottom: 20px;
}

.template-creative .main-content .section-title {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #6C63FF;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.template-creative .main-content .section-title::before {
  content: '';
  width: 4px;
  height: 18px;
  background: linear-gradient(180deg, #6C63FF, #4338CA);
  border-radius: 2px;
}

.template-creative .main-content .entry {
  margin-bottom: 14px;
  padding-left: 16px;
  border-left: 2px solid #E5E7EB;
}

.template-creative .main-content .entry:hover {
  border-left-color: #6C63FF;
}

.template-creative .main-content .entry-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.template-creative .main-content .entry-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #1a1a2e;
}

.template-creative .main-content .entry-date {
  font-size: 9.5px;
  color: #9CA3AF;
  font-weight: 500;
}

.template-creative .main-content .entry-sub {
  font-size: 10.5px;
  color: #6C63FF;
  font-weight: 600;
  margin-bottom: 4px;
}

.template-creative .main-content .entry-desc {
  font-size: 10px;
  color: #6B7280;
  line-height: 1.65;
}

/* ===== TEMPLATE: Corporate ===== */
.template-corporate {
  padding: 0 0 40px;
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
}

.template-corporate .resume-header {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213E 100%);
  color: white;
  padding: 36px 40px 28px;
}

.template-corporate .resume-name {
  font-family: 'Poppins', sans-serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.template-corporate .resume-title {
  font-size: 13px;
  opacity: 0.65;
  margin-bottom: 16px;
  font-weight: 400;
  letter-spacing: 0.5px;
}

.template-corporate .resume-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 10.5px;
  opacity: 0.8;
}

.template-corporate .resume-contact span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.template-corporate .resume-body {
  padding: 28px 40px 0;
}

.template-corporate .resume-summary {
  font-size: 11px;
  color: #4B5563;
  line-height: 1.7;
  margin-bottom: 24px;
  padding: 14px 18px;
  background: #F8F9FC;
  border-left: 4px solid #1a1a2e;
  border-radius: 0 8px 8px 0;
}

.template-corporate .resume-section {
  margin-bottom: 22px;
}

.template-corporate .section-title {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: #1a1a2e;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  padding-bottom: 8px;
  margin-bottom: 14px;
  border-bottom: 2.5px solid #1a1a2e;
}

.template-corporate .entry {
  margin-bottom: 16px;
}

.template-corporate .entry:last-child {
  margin-bottom: 0;
}

.template-corporate .entry-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2px;
}

.template-corporate .entry-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #1a1a2e;
}

.template-corporate .entry-date {
  font-size: 9.5px;
  color: #6B7280;
  background: #F3F4F6;
  padding: 3px 12px;
  border-radius: 12px;
  font-weight: 600;
}

.template-corporate .entry-sub {
  font-size: 10.5px;
  color: #6B7280;
  font-weight: 500;
  margin-bottom: 4px;
}

.template-corporate .entry-desc {
  font-size: 10.5px;
  color: #6B7280;
  line-height: 1.65;
}

.template-corporate .skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.template-corporate .skill-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 14px;
  background: #F8F9FC;
  border-radius: 8px;
  font-size: 10.5px;
  border: 1px solid #F0F1F3;
}

.template-corporate .skill-item .skill-name {
  font-weight: 600;
  color: #374151;
}

.template-corporate .skill-item .skill-level {
  font-size: 9.5px;
  color: #9CA3AF;
  font-weight: 500;
}

/* ===== Print-specific template overrides ===== */
#print-container .template-modern {
  padding: 36px 32px;
  width: 210mm;
  min-height: 297mm;
}

#print-container .template-modern .resume-name {
  font-size: 26pt;
}

#print-container .template-modern .resume-title {
  font-size: 12pt;
}

#print-container .template-modern .resume-contact {
  font-size: 9pt;
}

#print-container .template-modern .section-title {
  font-size: 11pt;
}

#print-container .template-modern .entry-name {
  font-size: 10.5pt;
}

#print-container .template-modern .entry-sub {
  font-size: 9.5pt;
}

#print-container .template-modern .entry-desc,
#print-container .template-modern .resume-summary {
  font-size: 9pt;
}

#print-container .template-modern .entry-date {
  font-size: 8.5pt;
}

#print-container .template-modern .skill-tag {
  font-size: 9pt;
}

#print-container .template-creative {
  width: 210mm;
  min-height: 297mm;
  grid-template-columns: 65mm 1fr;
}

#print-container .template-creative .sidebar .resume-name {
  font-size: 17pt;
}

#print-container .template-creative .sidebar .resume-title {
  font-size: 9pt;
}

#print-container .template-creative .sidebar .section-title {
  font-size: 7.5pt;
}

#print-container .template-creative .sidebar .contact-item {
  font-size: 8pt;
}

#print-container .template-creative .sidebar .skill-name {
  font-size: 8.5pt;
}

#print-container .template-creative .main-content .section-title {
  font-size: 11pt;
}

#print-container .template-creative .main-content .entry-name {
  font-size: 10.5pt;
}

#print-container .template-creative .main-content .entry-sub {
  font-size: 9pt;
}

#print-container .template-creative .main-content .entry-desc,
#print-container .template-creative .main-content .resume-summary {
  font-size: 9pt;
}

#print-container .template-creative .main-content .entry-date {
  font-size: 8pt;
}

#print-container .template-corporate {
  width: 210mm;
  min-height: 297mm;
}

#print-container .template-corporate .resume-header {
  padding: 28px 32px 22px;
}

#print-container .template-corporate .resume-name {
  font-size: 24pt;
}

#print-container .template-corporate .resume-title {
  font-size: 11pt;
}

#print-container .template-corporate .resume-contact {
  font-size: 9pt;
}

#print-container .template-corporate .resume-body {
  padding: 22px 32px 0;
}

#print-container .template-corporate .section-title {
  font-size: 10pt;
}

#print-container .template-corporate .entry-name {
  font-size: 10.5pt;
}

#print-container .template-corporate .entry-sub {
  font-size: 9pt;
}

#print-container .template-corporate .entry-desc,
#print-container .template-corporate .resume-summary {
  font-size: 9pt;
}

#print-container .template-corporate .entry-date {
  font-size: 8pt;
}

#print-container .template-corporate .skill-item {
  font-size: 9pt;
}


/* ===== New Sections (Languages, Awards, Volunteer, Publications, Custom) ===== */

/* Languages grid */
.resume-page .langs-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-size: 13px;
}
.resume-page .lang-item {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}
.resume-page .lang-prof {
  color: #6B7280;
  font-size: 12px;
  font-style: italic;
}

/* Creative template: languages in sidebar already use contact-item style */
.template-creative .sidebar .lang-item {
  color: rgba(255, 255, 255, 0.9);
}

/* Publications: link styling inside resume */
.resume-page .entry-name a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.resume-page .entry-name a:hover {
  opacity: 0.8;
}
