.cv-showcase-v10 {
  --cv-v10-ink: #142b45;
  --cv-v10-muted: #60758b;
  --cv-v10-line: #dbe5ee;
  --cv-v10-soft: #f5f8fb;
}

.cv-template-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
  margin: 24px 0 28px;
}

.cv-template-filters button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 43px;
  padding: 8px 15px;
  border: 1px solid var(--cv-v10-line);
  border-radius: 999px;
  background: #fff;
  color: var(--cv-v10-ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.cv-template-filters button b {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #eaf1f7;
  color: #49647c;
  font-size: 11px;
}

.cv-template-filters button.is-active {
  border-color: #135fa7;
  background: #135fa7;
  color: #fff;
}

.cv-template-filters button.is-active b {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.cv-template-catalog {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.cv-template-catalog > article {
  display: grid;
  grid-template-rows: 310px 1fr;
  overflow: hidden;
  border: 1px solid var(--cv-v10-line);
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(16, 42, 67, 0.07);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cv-template-catalog > article:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(16, 42, 67, 0.12);
}

.cv-template-catalog > article[hidden] {
  display: none;
}

.cv-template-card-preview {
  position: relative;
  display: grid;
  place-items: center;
  padding: 28px;
  background: linear-gradient(145deg, #edf3f8, #f9fbfd);
}

.cv-template-recommended {
  position: absolute;
  z-index: 2;
  top: 15px;
  inset-inline-start: 15px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #ff9f1c;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

.cv-template-thumb {
  position: relative;
  display: grid;
  grid-template-rows: 25% 1fr;
  width: 122px;
  aspect-ratio: 0.72;
  overflow: hidden;
  border: 1px solid #c9d5e0;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 13px 28px rgba(16, 42, 67, 0.18);
}

.cv-template-thumb.is-large {
  width: 175px;
}

.cv-template-thumb__head {
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 12%;
  border-bottom: 3px solid var(--tpl-accent);
}

.cv-template-thumb__head > i {
  display: block;
  width: 67%;
  height: 5px;
  border-radius: 5px;
  background: var(--tpl-accent);
}

.cv-template-thumb__head > i + i {
  width: 43%;
  height: 3px;
  background: #9aaaba;
}

.cv-template-thumb__photo {
  position: absolute;
  top: 9%;
  inset-inline-end: 9%;
  width: 21%;
  aspect-ratio: 1;
  border: 2px solid #fff;
  border-radius: 50%;
  background: linear-gradient(145deg, #f0b891, #704b3f);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.cv-template-thumb__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10%;
  padding: 11%;
}

.cv-template-thumb__body b,
.cv-template-thumb__body em {
  display: grid;
  align-content: start;
  gap: 7px;
  font-style: normal;
}

.cv-template-thumb__body i {
  display: block;
  height: 4px;
  border-radius: 5px;
  background: #d6dee6;
}

.cv-template-thumb__body b i:first-child,
.cv-template-thumb__body em i:first-child {
  width: 54%;
  height: 5px;
  background: var(--tpl-accent);
}

.cv-template-thumb--sidebar {
  grid-template-rows: 1fr;
}

.cv-template-thumb--sidebar .cv-template-thumb__head {
  position: absolute;
  z-index: 1;
  top: 0;
  inset-inline-end: 0;
  width: 67%;
  height: 25%;
  border-bottom: 3px solid var(--tpl-accent);
}

.cv-template-thumb--sidebar .cv-template-thumb__body {
  grid-template-columns: 33% 1fr;
  height: 100%;
  padding: 0;
  gap: 0;
}

.cv-template-thumb--sidebar .cv-template-thumb__body b {
  padding: 84% 18% 18%;
  background: #3f4650;
}

.cv-template-thumb--sidebar .cv-template-thumb__body b i {
  background: rgba(255, 255, 255, 0.45);
}

.cv-template-thumb--sidebar .cv-template-thumb__body em {
  padding: 35% 12% 12%;
}

.cv-template-thumb--soft-fill .cv-template-thumb__head,
.cv-template-thumb--tech-fill .cv-template-thumb__head,
.cv-template-thumb--soft-green .cv-template-thumb__head,
.cv-template-thumb--soft-purple .cv-template-thumb__head,
.cv-template-thumb--arabic-band .cv-template-thumb__head {
  background: #edf6fb;
}

.cv-template-thumb--dark-fill .cv-template-thumb__head,
.cv-template-thumb--accent-fill .cv-template-thumb__head,
.cv-template-thumb--accent-band .cv-template-thumb__head {
  background: #26313c;
}

.cv-template-thumb--gold-rule .cv-template-thumb__head {
  border-top: 5px solid #c5a13a;
  border-bottom-color: #c5a13a;
}

.cv-template-thumb--budapest .cv-template-thumb__body b {
  background: #3f3f46;
}

.cv-template-thumb--budapest .cv-template-thumb__head {
  border-bottom-color: #f59e0b;
}

.cv-template-thumb--copenhagen .cv-template-thumb__body b {
  background: #dcedf0;
}

.cv-template-thumb--copenhagen .cv-template-thumb__body b i {
  background: #6f9ca5;
}

.cv-template-card-copy {
  display: grid;
  align-content: start;
  padding: 19px;
}

.cv-template-card-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.cv-template-card-labels span {
  color: #0b6d57;
  font-size: 10px;
  font-weight: 900;
}

.cv-template-card-labels b {
  padding: 5px 8px;
  border-radius: 7px;
  background: #edf3f8;
  color: #4d647a;
  font-size: 10px;
}

.cv-template-card-copy h3 {
  margin: 10px 0 5px;
  color: var(--cv-v10-ink);
  font-size: 20px;
}

.cv-template-card-copy p {
  min-height: 48px;
  margin: 0;
  color: var(--cv-v10-muted);
  font-size: 13px;
  line-height: 1.7;
}

.cv-template-card-copy > small {
  margin: 9px 0 12px;
  color: #34516b;
  font-weight: 700;
}

.cv-template-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 15px;
}

.cv-template-card-actions .cv-cta,
.cv-template-card-actions .cv-secondary {
  min-height: 43px;
  padding: 8px 10px;
  font-size: 12px;
}

.cv-profession-starters {
  margin-top: 60px;
  padding-top: 35px;
  border-top: 1px solid var(--cv-v10-line);
}

.cv-profession-starter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.cv-profession-starter-grid article {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px;
  border: 1px solid var(--cv-v10-line);
  border-radius: 14px;
  background: #fff;
}

.cv-profession-starter-grid img {
  width: 62px;
  height: 62px;
  border-radius: 12px;
  object-fit: cover;
}

.cv-profession-starter-grid h3 {
  margin: 3px 0;
  color: var(--cv-v10-ink);
  font-size: 15px;
}

.cv-profession-starter-grid span {
  color: #0b6d57;
  font-size: 9px;
  font-weight: 900;
}

.cv-profession-starter-grid a {
  color: #135fa7;
  font-size: 11px;
  font-weight: 800;
}

.cv-template-modal {
  position: fixed;
  z-index: 999999;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(10, 25, 40, 0.72);
  backdrop-filter: blur(5px);
}

.cv-template-modal[hidden] {
  display: none;
}

.cv-template-modal__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1.05fr);
  width: min(960px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.3);
}

.cv-template-modal__panel > [data-template-modal-preview] {
  display: grid;
  place-items: center;
  min-height: 580px;
  padding: 45px;
  background: linear-gradient(145deg, #edf3f9, #f9fbfd);
}

.cv-template-modal__panel .cv-template-thumb {
  width: min(300px, 85%);
}

.cv-template-modal__copy {
  display: grid;
  align-content: center;
  padding: 46px;
}

.cv-template-modal__copy > span {
  color: #0b6d57;
  font-size: 12px;
  font-weight: 900;
}

.cv-template-modal__copy h2 {
  margin: 10px 0;
  color: var(--cv-v10-ink);
  font-size: clamp(26px, 4vw, 38px);
}

.cv-template-modal__copy p,
.cv-template-modal__copy li {
  color: var(--cv-v10-muted);
  line-height: 1.8;
}

.cv-template-modal__copy > div {
  display: flex;
  gap: 9px;
  margin-top: 18px;
}

.cv-template-modal__close {
  position: absolute;
  z-index: 3;
  top: 14px;
  inset-inline-end: 14px;
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border: 0;
  border-radius: 50%;
  background: #edf2f6;
  color: #142b45;
  font-size: 25px;
  cursor: pointer;
}

.cv-photo-manager {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin: 15px 0;
  padding: 14px;
  border: 1px solid #d8e2eb;
  border-radius: 13px;
  background: #fff;
}

.cv-photo-manager__preview {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border-radius: 50%;
  background: #eaf0f5;
  color: #6c7f91;
  font-size: 10px;
  font-weight: 800;
}

.cv-photo-manager__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cv-photo-manager__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

.cv-photo-manager__actions label,
.cv-photo-manager__actions button {
  display: inline-flex !important;
  width: auto !important;
  min-height: 37px;
  margin: 0 !important;
  padding: 7px 11px !important;
  border: 1px solid #b9c8d6;
  border-radius: 8px;
  background: #fff;
  color: #21415e;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.cv-output-advice {
  margin: 14px 0;
  padding: 12px 14px;
  border-inline-start: 4px solid #135fa7;
  border-radius: 8px;
  background: #eef6ff;
  color: #31536f;
  font-size: 12px;
  line-height: 1.7;
}

.cv-template-picker-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 11px;
}

.cv-template-picker-filters button {
  padding: 7px 11px;
  border: 1px solid #c7d4df;
  border-radius: 999px;
  background: #fff;
  color: #38536b;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.cv-template-picker-filters button.is-active {
  border-color: #135fa7;
  background: #135fa7;
  color: #fff;
}

.cv-templates .cv-template {
  grid-template-columns: 78px minmax(0, 1fr) !important;
  min-height: 132px;
}

.cv-templates .cv-template[hidden] {
  display: none !important;
}

.cv-templates .cv-template-thumb {
  width: 72px;
}

.cv-templates .cv-template.is-recommended::after {
  content: "موصى به";
  position: absolute;
  top: 7px;
  inset-inline-end: 8px;
  padding: 3px 6px;
  border-radius: 999px;
  background: #fff2db;
  color: #9a5b00;
  font-size: 8px;
  font-weight: 900;
}

.cv-template-description {
  display: block;
  color: #6a7f91 !important;
  font-size: 10px !important;
  line-height: 1.45;
}

@media (max-width: 960px) {
  .cv-template-catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cv-template-modal__panel {
    grid-template-columns: 1fr;
  }
  .cv-template-modal__panel > [data-template-modal-preview] {
    min-height: 390px;
  }
}

@media (max-width: 640px) {
  .cv-template-catalog,
  .cv-profession-starter-grid {
    grid-template-columns: 1fr;
  }
  .cv-template-catalog > article {
    grid-template-rows: 280px 1fr;
  }
  .cv-template-card-actions {
    grid-template-columns: 1fr;
  }
  .cv-template-modal {
    padding: 10px;
  }
  .cv-template-modal__copy {
    padding: 28px 20px;
  }
  .cv-template-modal__copy > div {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cv-template-catalog > article {
    transition: none;
  }
}
