/* --- CV DOCUMENT (THE A4 PAPER) --- */
/* pdf-strip:start */
#cv-document {
  background-color: white;
  width: 210mm;
  min-height: 297mm;
  padding: 10mm 15mm;
  /* Matches mPDF margins (Top/Bottom 10, Left/Right 15) */
  box-shadow: var(--shadow-lg);
  box-sizing: border-box;
  position: relative;
  /* A4 Sayfa kılavuz çizgileri (Her 297mm'de bir kesik çizgi gösterir) */
  background-image: repeating-linear-gradient(to bottom,
      transparent,
      transparent 296.5mm,
      #cbd5e1 296.5mm,
      #cbd5e1 297mm);
}

#cv-document::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.02);
  pointer-events: none;
}
/* pdf-strip:end */

#cv-document {
  font-family: "Times New Roman", Times, freeserif, serif;
  font-size: 11pt;
  color: #000;
}

#cv-document h1 {
  text-align: center;
  font-size: 26pt;
  margin-bottom: 2px;
  font-weight: normal;
  letter-spacing: 0.5px;
}

#cv-document .cv-title {
  text-align: center;
  font-size: 11pt;
  font-style: italic;
  color: var(--theme-color, #333);
  margin-top: 0;
  margin-bottom: 6px;
}

#cv-document .contact-info {
  text-align: center;
  font-size: 10.5pt;
  margin-bottom: 20px;
  color: #333;
}

#cv-document .contact-info a {
  color: var(--theme-link-color, #2563eb);
  text-decoration: none;
}

#cv-document a {
  color: var(--theme-link-color, #2563eb);
  text-decoration: none;
}

#cv-document .section-title {
  font-size: 11.5pt;
  font-weight: bold;
  text-transform: uppercase;
  border-bottom: 1px solid #000;
  margin-top: 18px;
  margin-bottom: 12px;
  padding-bottom: 3px;
  letter-spacing: 0.5px;
}

/* ATS-friendly table row — two-column layout, correct PDF reading order */
#cv-document .item-row {
  width: 100%;
  border-collapse: collapse;
  font-size: 11pt;
  line-height: 1.4;
  margin: 0;
  padding: 0;
  page-break-inside: avoid;
}

#cv-document .item-row td {
  padding: 0;
  vertical-align: top;
  font-size: 11pt;
  line-height: 1.4;
}

#cv-document .item-row tr {
  page-break-inside: avoid;
}

#cv-document .item-row .item-right {
  text-align: right;
  white-space: nowrap;
  padding-left: 8px;
}

#cv-document .item-row .bold {
  font-weight: bold;
}

#cv-document .item-row .italic {
  font-style: italic;
}

#cv-document .item-details {
  font-size: 10.5pt;
  margin-bottom: 8px;
  line-height: 1.5;
}

#cv-document ul {
  margin-top: 4px;
  margin-bottom: 12px;
  padding-left: 18px;
}

#cv-document ol {
  margin-top: 4px;
  margin-bottom: 12px;
  padding-left: 18px;
}

#cv-document li {
  margin-bottom: 4px;
}

#cv-document .mb-2 {
  margin-bottom: 8px;
}

#cv-document .skills-text,
#cv-document .summary-text {
  font-size: 10.5pt;
  line-height: 1.6;
}

/* CV Document Template Variations */
#cv-document.template-harvard {
  font-family: "Times New Roman", Times, freeserif, serif;
}

#cv-document.template-harvard h1 {
  color: var(--theme-color, #000);
}

#cv-document.template-harvard .cv-title {
  color: var(--theme-color, #333);
}

#cv-document.template-modern {
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, freesans, sans-serif;
}

#cv-document.template-modern h1 {
  text-align: left;
  color: var(--theme-color, #1e40af);
  font-weight: bold;
}

#cv-document.template-modern .contact-info {
  text-align: left;
  color: #475569;
}

#cv-document.template-modern .cv-title {
  text-align: left;
  color: var(--theme-color, #1e40af);
}

/* Template Specific Section Titles */
#cv-document.template-harvard .section-title {
  font-size: 11.5pt;
  font-weight: bold;
  text-transform: uppercase;
  border-bottom: 1px solid var(--theme-color, #000);
  color: var(--theme-color, #000);
  margin-top: 18px;
  margin-bottom: 12px;
  padding-bottom: 3px;
  letter-spacing: 0.5px;
}

#cv-document.template-modern .section-title {
  font-size: 12pt;
  font-weight: bold;
  text-transform: uppercase;
  border-bottom: none;
  border-left: 4.5px solid var(--theme-color, #2563eb);
  padding-left: 8px;
  margin-top: 18px;
  margin-bottom: 12px;
  color: var(--theme-color, #1e40af);
  letter-spacing: 0.5px;
}

/* CV Header Layouts (using tables for mPDF compatibility) */
.cv-header-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0;
}

.cv-header-table td {
  padding: 0;
  vertical-align: middle;
}

.cv-header-text {
  text-align: left;
}

#cv-document .cv-header-table h1 {
  text-align: left;
  margin: 0;
}

#cv-document .cv-header-table .contact-info {
  text-align: left;
  margin: 5px 0 0 0;
}

#cv-document .cv-header-table .cv-title {
  text-align: left;
  margin: 0 0 4px 0;
}

.cv-photo-td {
  width: 95px;
  padding-left: 15px;
  text-align: right;
}

.cv-photo-td-left {
  width: 95px;
  padding-right: 15px;
  text-align: left;
}

.cv-photo {
  width: 85px;
  height: 105px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  display: block;
}

.template-modern .cv-photo {
  border: 1px solid var(--theme-color, #2563eb);
  border-radius: 6px;
}

/* Minimalist Template Styles */
#cv-document.template-minimalist {
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, freesans, sans-serif;
}

#cv-document.template-minimalist h1 {
  text-align: left;
  color: var(--theme-color, #334155);
  font-weight: 700;
  letter-spacing: 0;
}

#cv-document.template-minimalist .contact-info {
  text-align: left;
  color: #64748b;
}

#cv-document.template-minimalist .cv-title {
  text-align: left;
  color: var(--theme-color, #475569);
}

#cv-document.template-minimalist .section-title {
  font-size: 10.5pt;
  font-weight: bold;
  text-transform: uppercase;
  border-bottom: none;
  padding-bottom: 0;
  margin-top: 20px;
  margin-bottom: 10px;
  color: var(--theme-color, #475569);
  letter-spacing: 1.5px;
}

.template-minimalist .cv-photo {
  border: 1px solid var(--theme-color, #94a3b8);
  border-radius: 4px;
}

/* Creative Template Styles */
#cv-document.template-creative {
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, freesans, sans-serif;
}

#cv-document.template-creative .cv-header-banner {
  background-color: var(--theme-color, #0f172a);
  border-radius: 6px;
  padding: 18px 20px;
  margin-bottom: 20px;
}

#cv-document.template-creative .cv-header-table-creative {
  margin-bottom: 0;
}

#cv-document.template-creative .cv-header-table-creative td {
  border: none;
  background: transparent;
}

#cv-document.template-creative h1 {
  text-align: left;
  color: #ffffff !important;
  font-weight: 800;
  font-size: 24pt;
  margin: 0;
  letter-spacing: 0;
}

#cv-document.template-creative .contact-info {
  text-align: left;
  color: #cbd5e1 !important;
  font-size: 10pt;
  margin-top: 6px;
  margin-bottom: 0;
}

#cv-document.template-creative .cv-title {
  text-align: left;
  color: #ffffff !important;
  font-size: 10.5pt;
  margin-top: 2px;
  margin-bottom: 4px;
}

#cv-document.template-creative .contact-info a {
  color: var(--theme-link-color, #38bdf8) !important;
  /* sky-400 */
}

#cv-document.template-creative .section-title {
  font-size: 11.5pt;
  font-weight: bold;
  text-transform: uppercase;
  border-bottom: 1px solid #e2e8f0;
  border-left: 5px solid var(--theme-color, #0d9488);
  padding-left: 10px;
  padding-bottom: 3px;
  margin-top: 22px;
  margin-bottom: 12px;
  color: var(--theme-color, #0f172a);
  letter-spacing: 0.5px;
}

.template-creative .cv-photo {
  border: 2px solid var(--theme-color, #0d9488);
  border-radius: 50%;
  width: 80px;
  height: 80px;
  object-fit: cover;
}
