/* Dense Timeline CV Style - Override theme .post styles */
.cv-section {
  position: relative;
  padding-left: 5.5rem;
  margin: 0 2rem 0 2rem !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  box-shadow: none !important;
}

/* Light mode background */
.theme--light .cv-section {
  background-color: #fff;
}

/* Dark mode background */
.theme--dark .cv-section {
  background-color: #152028;
}

/* Add top margin to first section for spacing from content border */
.cv-section:first-child {
  margin-top: 2rem !important;
}

/* Timeline vertical line - positioned with space from left border */
.cv-section::before {
  content: '';
  position: absolute;
  left: 1.5rem;
  top: 3.5rem;
  bottom: 0;
  width: 2px;
}

.theme--light .cv-section::before {
  background: rgba(96, 134, 180, 0.2);
}

.theme--dark .cv-section::before {
  background: rgba(96, 134, 180, 0.3);
}

/* Remove line after last section */
.cv-section:last-child::before {
  display: none;
}

/* Add bottom margin to last section for spacing from content border */
.cv-section:last-child {
  margin-bottom: 2rem !important;
}

.cv__section-title {
  position: relative;
  margin-bottom: 2rem;
  padding-left: 0;
  font-size: 3rem;
  font-weight: 700;
}

.theme--light .cv__section-title {
  color: #464646;
}

.theme--dark .cv__section-title {
  color: #eeeeee;
}

.cv-entry {
  margin-bottom: 0 !important;
  padding: 0 !important;
  position: relative;
}

.cv__description {
  width: 100% !important;
  margin: 0 !important;
  padding: 0.1rem 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  position: relative;
}

/* Timeline dot - positioned on description div to align with h3 heading */
.cv__description::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 3rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6086b4;
  z-index: 1;
  border: none !important;
  box-shadow: none !important;
}

.cv__description h3 {
  margin-bottom: 0.4rem;
  font-size: 1.9rem;
  font-weight: 600;
}

.theme--light .cv__description h3 {
  color: #464646;
}

.theme--dark .cv__description h3 {
  color: #eeeeee;
}

.cv__meta {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin-bottom: 0.5rem;
  gap: 1.2rem;
  row-gap: 0.8rem;
}

.cv__meta-item {
  font-size: 1.3rem;
}

.cv__meta-item:not(:last-child) {
  margin-right: 0;
}

.theme--light .cv__meta-item {
  color: #464646;
}

.theme--dark .cv__meta-item {
  color: #eeeeee;
}

.cv__description p {
  font-size: 1.4rem;
  line-height: 1.65;
  margin-bottom: 0.4rem;
}

.theme--light .cv__description p {
  color: #464646;
}

.theme--dark .cv__description p {
  color: #eeeeee;
}

.cv__button {
  padding: 0.7rem 1.2rem;
  font-size: 1.3rem;
  font-weight: 400;
  display: inline-block;
  position: relative;
  outline: 0;
  background: transparent;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  border-radius: 999em;
}

.theme--light .cv__button {
  border: 1px solid #9f9f9f;
  color: #6086b4;
}

.theme--dark .cv__button {
  border: 1px solid #9f9f9f;
  color: #6086b4;
}

.cv__button:hover {
  opacity: 0.8;
}

.separator {
  margin-top: 0.4rem;
  margin-bottom: 0.1rem;
}

.tag {
  display: inline-block;
  margin-right: 0.5rem;
  margin-bottom: 0.3rem;
  font-size: 1.15rem;
  padding: 0.4rem 0.8rem;
  border-radius: 0.25rem;
}

.theme--light .tag {
  background: rgba(96, 134, 180, 0.1);
  color: #464646;
}

.theme--dark .tag {
  background: rgba(96, 134, 180, 0.15);
  color: #eeeeee;
}
