@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;700&display=swap");

*,
*::before,
*::after {
  font-family: Inter, system-ui, sans-serif;
  box-sizing: border-box;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Hide Vue templates until mounted */
[v-cloak] { display: none; }

:focus:not(:focus-visible) {
  outline: none;
}

html {
  font-size: 62.5%;
}

.cv-skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cv-skip-link:focus {
  position: fixed;
  z-index: 1080;
  left: 0.75rem;
  top: 0.75rem;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: #fff;
  color: #292929;
  box-shadow: 0 0 0 2px #2563eb;
  text-decoration: none;
}

.container-fluid {
  padding: 0 10% !important;
}

ul {
  list-style: circle;
}

.skills-list {
  list-style: disc;
}

.achievements-list {
  list-style: disc;
}

.achievements-list li {
  hyphens: none;
  word-break: normal;
}

li::marker {
  color: black;
}

p {
  font-size: 1.8rem;
  letter-spacing: 0.115103rem;
  color: #292929;
  word-break: break-all;
  justify-content: center;
}

.cv-text-preline {
  white-space: pre-line;
}

.header {
  padding-top: 8.8297rem;
  padding-bottom: 10rem;
  direction: ltr;
  margin-bottom: 3rem;
}

.content {
  margin-top: -40px;
  padding-bottom: 40px;
}

.firstName {
  font-weight: bold;
  font-size: 6.5rem;
  text-transform: uppercase;
  word-break: break-all;
  padding-right: 0;
  color: #292929;
  line-height: 1.09;
  letter-spacing: normal;
  direction: ltr;
}

.jobTitle {
  padding-right: 0px;
  margin-top: 4.51385rem;
  color: #2563eb;
}

.jobTitle span {
  padding-left: 2px;
  letter-spacing: normal;
  text-transform: uppercase;
  word-break: break-all;
  direction: ltr;
  color: #4c4a4a;
  font-size: 2.7rem;
}

.photo {
  width: 27rem;
  height: 27rem;
  max-height: 270px;
  -o-object-fit: contain;
  object-fit: contain;
  border-color: #2563eb !important;
}

.photo.border,
.photo.img-thumbnail {
  border-color: #2563eb !important;
}

.icon {
  width: 5rem;
  height: 5rem;
  font-size: 2.5rem;
  color: white;
  background-color: #2563eb;
  border-radius: 50%;
  padding: 0.7rem;
  transition: background-color 0.2s ease;
}

.icon:hover {
  background-color: #1d4ed8;
}

a {
  color: #2563eb !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

a:hover,
a:focus,
a:active,
a:visited {
  color: #1d4ed8 !important;
  text-decoration: none !important;
}

a.text-reset {
  color: #2563eb !important;
  text-decoration: none !important;
}

a.text-reset:hover,
a.text-reset:focus,
a.text-reset:active,
a.text-reset:visited {
  color: #1d4ed8 !important;
  text-decoration: none !important;
}

a p {
  word-break: break-all;
  color: #2563eb !important;
  transition: color 0.2s ease;
}

a:hover p {
  color: #1d4ed8 !important;
}

.list-item {
  padding-top: 2.03123rem;
  padding-bottom: 2.03123rem;
  margin-right: 1rem;
}

.list-item:not(:last-child) {
  border-bottom: 0.225693rem solid #2563eb;
}

.list-item .col {
  margin-top: 7px;
}

.title {
  width: 100%;
  font-weight: bold;
  font-size: 4rem;
  line-height: 4.5rem;
  border-bottom: 2px solid #2563eb;
  padding-top: 0rem;
  padding-bottom: 3.8rem;
  color: #222121;
  letter-spacing: normal;
  margin-bottom: 1.8rem;
}

.personal-details .title {
  padding-top: 4rem;
  padding-left: 0.8rem;
}

.bullet {
  position: relative;
}

.bullet i {
  font-size: 2.6rem;
  color: #2563eb;
}

.bullet:before {
  content: "";
  position: absolute;
  left: 1.9rem;
  top: 3.2rem;
  width: 0.3rem;
  height: calc(100% - 3.2rem);
  background-color: #2563eb;
  z-index: -1;
}

.cv-main-column .bullet:before {
  top: 4.8rem;
}

.cv-main-column .row.bullet > .col-auto.bullet:before {
  display: none !important;
}

.record {
  padding-top: 1.8rem;
}

.record p {
  width: 100%;
  font-size: 1.8rem;
  line-height: 1.33;
  color: #292929;
  word-break: break-word;
  display: block;
  letter-spacing: 0;
}

.record .col {
  margin-top: 6px;
}

.personal-details .record .bullet:before {
  height: calc(100% - 3.2rem + 24px);
}

li {
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.33;
  font-size: 1.8rem;
  color: #292929;
}

.personal-details .row.record:not(:last-child) {
  margin-bottom: 2rem;
}

span {
  color: #292929;
  font-size: 1.8rem;
  line-height: 1.33;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  @page {
    size: A4;
    margin: 0mm !important;
  }
  html {
    font-size: 23%;
  }

  .header {
    padding-top: 2.8rem;
    padding-bottom: 9rem;
  }

  ul li {
    margin-left: 1rem;
  }
}

@media (max-width: 992px) {
  .content > .row {
    flex-direction: column;
  }

  .content .personal-details {
    order: -1;
  }

  .bullet i {
    display: none;
  }

  .bullet:before {
    display: none !important;
  }

  .personal-details .list-item .icon {
    display: none !important;
  }

  .personal-details .list-item .col-auto {
    display: none !important;
  }

  .personal-details .list-item {
    border-bottom: none !important;
  }

  /* ~20% wider reading column: less page padding, gutters, and list indent */
  .container-fluid {
    padding-left: 2.5% !important;
    padding-right: 2.5% !important;
  }

  .content > .row {
    --bs-gutter-x: 0.75rem;
  }

  .personal-details.me-4 {
    margin-right: 0 !important;
  }

  .personal-details .list-item.me-5 {
    margin-right: 0 !important;
  }

  /* Space between sidebar (e.g. last education line) and About me — ~50px */
  .content .row > .cv-main-column {
    margin-right: 0 !important;
    margin-top: 5rem !important;
  }

  /* Match that gap from end of About/summary to Work experience */
  .content .cv-main-column > .row.mt-5 {
    margin-top: 5rem !important;
  }

  .achievements-list {
    margin-left: 0.5rem !important;
    padding-left: 0.25rem;
  }

  .content {
    margin-top: -20px;
    padding-bottom: 24px;
  }

  .header {
    padding-top: 4rem;
    padding-bottom: 5rem;
    margin-bottom: 1.6rem;
  }

  .firstName {
    font-size: clamp(3.2rem, 8vw, 4.8rem);
    line-height: 1.1;
    letter-spacing: 0.08rem;
    word-break: normal;
    overflow-wrap: normal;
    text-wrap: balance;
  }

  .jobTitle {
    margin-top: 0.8rem;
    margin-bottom: -1rem;
  }

  .jobTitle span {
    display: inline-block;
    font-size: clamp(1.8rem, 4.6vw, 2.4rem);
    line-height: 1.15;
    letter-spacing: 0.08rem;
    word-break: normal;
    overflow-wrap: normal;
    text-wrap: balance;
  }

  .title {
    font-size: clamp(2.2rem, 5.5vw, 3rem);
    line-height: 1.2;
    letter-spacing: 0.04rem;
    padding-bottom: 1.2rem;
    margin-bottom: 1rem;
    word-break: normal;
    overflow-wrap: normal;
    text-wrap: balance;
  }

  .personal-details .title {
    padding-top: 2.4rem;
  }

  .list-item {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
    margin-right: 0;
  }

  .list-item .col,
  .record .col {
    margin-top: 0;
  }

  .row.mt-5 {
    margin-top: 1.8rem !important;
  }

  .record {
    padding-top: 0.6rem;
  }

  .record.me-4 {
    margin-right: 0 !important;
  }

  .personal-details .row.record:not(:last-child) {
    margin-bottom: 0.4rem;
  }

  li,
  .record p,
  span,
  p {
    line-height: 1.45;
  }
}

/* lg+: photo in header — pull main content up 50px vs previous overlap */
@media (min-width: 992px) {
  .content {
    margin-top: -90px;
  }

  /*
   * Sidebar still has Bootstrap .me-4; with col-lg-4 + col-lg-8 that margin makes the row
   * wider than 100%, so the main column wraps and most of the CV sits off-layout / below.
   * Drop the margin and use padding for the same visual gap.
   */
  .personal-details.me-4 {
    margin-right: 0 !important;
    padding-right: 1.5rem;
  }
}
