.cv-row {
  display: table;
  width: 100%;
}

.cv-col {
  display: table-cell;
  width: 50%;
}

.text-muted {
  color: #444;
}

.text-justify {
  text-align: justify;
}

.text-break {
  word-wrap: break-word !important;
  word-break: break-word !important;
}

.cv-layout {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  color: #111;
  line-height: 1.45;
  background: #fafafa;
}
.cv-layout * {
  box-sizing: border-box;
  text-align: left;
  line-height: 1.2;
}
.cv-layout * p {
  text-align: justify;
}
.cv-layout .page-container {
  max-width: 900px;
  margin: 32px auto;
  background: #fff;
  border-radius: 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border-top: 10px solid #0e186f;
  position: relative;
}
.cv-layout header {
  padding: 20px 40px;
  border-bottom: 2px solid #e5e5e5;
  background: #eef3ff;
}
.cv-layout .watermark {
  position: absolute;
  right: 8px;
  top: 8px;
  font-size: 11px;
  opacity: 0.28;
  max-width: 46%;
  line-height: 1.2;
  text-align: right;
}
.cv-layout .watermark-img {
  width: 40px;
  height: 40px;
}
.cv-layout footer {
  height: 80px;
  padding: 20px 20px;
  position: absolute;
  bottom: 0;
}
.cv-layout .watermark-footer {
  font-size: 11px;
  opacity: 0.4;
  line-height: 1.2;
  display: flex;
  gap: 10px;
  align-items: center;
}
.cv-layout .watermark-footer .watermark-qr img {
  width: 50px;
}
.cv-layout .watermark-footer p {
  line-height: 1.2;
  font-size: 12px;
}
.cv-layout .watermark-footer .watermark-logo img {
  width: 120px;
}
.cv-layout h1 {
  font-size: 32px;
  margin: 6px 0;
  font-weight: 700;
  color: #222;
}
.cv-layout ul.contact {
  font-size: 14px;
  margin-bottom: 10px;
  color: #444;
  margin-top: 0;
  list-style: none;
  padding-left: 0;
  text-align: left;
}
.cv-layout main {
  padding: 40px;
}
.cv-layout section {
  margin: 30px 0 30px;
}
.cv-layout .margin-0 {
  margin: 0;
}
.cv-layout h2.section-title {
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: 700;
  border-left: 4px solid #0e186f;
  padding-left: 10px;
  color: #222;
}
.cv-layout h2.section-title i {
  margin-right: 7px;
}
.cv-layout ul {
  margin: 10px 0 0;
  padding-left: 20px;
}
.cv-layout ul.skills-list {
  padding-left: 0;
}
.cv-layout ul.skills-list li {
  display: table;
  width: 100%;
  margin: 10px 0;
}
.cv-layout ul.skills-list li strong {
  display: table-cell;
  width: 70%;
}
.cv-layout ul.skills-list li .stars, .cv-layout ul.skills-list li .badge-indicator {
  display: table-cell;
  width: 30%;
  text-align: right;
}
.cv-layout ul.list-unstyled {
  list-style: none;
  padding-left: 0;
}
.cv-layout ul.list-unstyled li {
  margin-bottom: 7px;
}
.cv-layout ul.list-unstyled li p {
  margin: 0;
}
.cv-layout .item {
  margin: 20px 0;
}
.cv-layout .item-title {
  font-weight: bold;
  font-size: 16px;
  color: #222;
  margin: 0;
}
.cv-layout .item-meta {
  font-size: 13px;
  color: #555;
  margin-bottom: 6px;
  margin-top: 0;
}
.cv-layout .badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.cv-layout .badge {
  background: #eef3ff;
  padding: 6px 10px;
  border: 1px solid #d1dcff;
  border-radius: 6px;
  font-size: 13px;
  display: inline-block;
  margin-right: 5px;
  font-weight: bold;
  color: #0e1870;
  margin-bottom: 5px;
}

.cv-layout .template-stephai {
  background: none;
  border: 0;
  padding-bottom: 10px;
}
.cv-layout .template-stephai main {
  padding: 0 40px 40px 40px;
}
.cv-layout .template-stephai .item-stephai {
  margin-bottom: 10px;
  padding: 12px 16px;
  border: 1px solid #d1dcff;
  border-radius: 8px;
}
.cv-layout .template-harvard .page-container {
  display: flex;
  position: relative;
  border-top: none;
}
.cv-layout .template-harvard .page-container header {
  width: 30%;
  background: #0e186f;
  color: #ffffff;
  display: flex;
  align-items: start;
  justify-content: space-between;
  flex-direction: column;
  margin: 0;
  padding: 20px;
}
.cv-layout .template-harvard .page-container header h1, .cv-layout .template-harvard .page-container header p, .cv-layout .template-harvard .page-container header h2.section-title, .cv-layout .template-harvard .page-container header ul.contact {
  color: #ffffff;
}
.cv-layout .template-harvard .page-container header h2.section-title {
  font-size: 16px;
  padding: 0;
  border: 0;
}
.cv-layout .template-harvard .page-container main {
  width: 70%;
}
.cv-layout .template-harvard .page-container main h2.section-title {
  border-top: 4px solid #0e186f;
  padding: 10px 0;
  border-left: none;
}
.cv-layout .template-harvard .page-container h2.small {
  margin: 0;
}
.cv-layout .template-harvard .page-container ul {
  list-style: none;
  padding-left: 0;
}
.cv-layout .template-harvard .page-container ul.contact {
  font-size: 16px;
}
.cv-layout .template-harvard .page-container ul.contact li {
  padding: 5px 0;
}
.cv-layout .template-harvard .page-container .item-hardvard {
  margin-bottom: 20px;
  display: table;
  width: 100%;
}
.cv-layout .template-harvard .page-container .item-hardvard .period-item {
  display: table-cell;
  width: 100px;
  font-size: 12px;
}
.cv-layout .template-harvard .page-container .item-hardvard ul, .cv-layout .template-harvard .page-container .item-hardvard p {
  margin: 0;
}
.cv-layout .template-harvard .page-container footer {
  width: 70%;
  right: 0;
  padding: 10px;
}
.cv-layout .template-modern header {
  border: 0;
  padding: 20px;
}
.cv-layout .template-modern main {
  padding: 20px 20px 60px 20px;
}
.cv-layout .template-modern h2.small {
  font-size: 18px;
  color: #444444;
  margin: 0;
}
.cv-layout .template-modern section {
  margin: 20px 20px;
}
.cv-layout .template-modern .section-title {
  border-bottom: 2px solid #0e186f;
  padding: 10px 0;
  color: #0e186f;
  border-left: none;
}
.cv-layout .template-modern ul.contact {
  font-size: 16px;
}
.cv-layout .template-modern ul.contact li {
  margin-bottom: 5px;
  text-align: right;
}

@media print {
  .cv-layout {
    background: white;
  }
  .cv-layout .page-container {
    margin: 0;
    padding: 30px;
    box-shadow: none;
  }
  .cv-layout .no-print {
    display: none !important;
  }
  @page {
    size: letter;
    margin: 0;
  }
}
.cv-preview-wrapper {
  width: 216px;
  height: 300px;
  overflow: hidden;
  position: relative;
}
.cv-preview-wrapper .cv-layout {
  transform: scale(0.3);
  transform-origin: top left;
  width: 333.3333333333%;
  height: 1000px;
}
.cv-preview-wrapper .cv-layout .template-container {
  height: 100%;
}
.cv-preview-wrapper .cv-layout .page-container {
  margin: 0;
  pointer-events: none;
  height: 100%;
}
