/* Vacancy details (vd) */

.vd-preview__section {
  width: 100%;
  height: 370px;
  background-color: #e8e8e8;
}

.vd-circle {
  border-radius: 50%;
  width: 100px;
  height: 100px;
  background: #cf0707;
}

.vd-preview__container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);

  margin: 0 auto;
  padding: 0 10px;

  height: 370px;
  width: 100%;
  max-width: var(--content-width);
}

.vd-preview__text {
  justify-content: center;
  gap: 20px;

  height: 370px;
}

.vd-preview__text > p {
  margin-bottom: 20px;
}

.vd-preview__image,
.vd-preview__image > img {
  height: 370px;
}

.vd-preview__image {
  position: relative;
  justify-content: end;
  overflow: hidden;
}

.vd-preview__image > img {
  object-position: top;
  z-index: 1;
}

.vd-circle {
  position: absolute;
  top: -50px;
  right: 50px;
  z-index: 0;
  height: 250px;
  width: 250px;
  background: var(--color-accent-cherry);
}

.vd-description__text {
  padding-top: 15px;
}

.vd-description__text > ul {
  list-style: disc;
  padding-left: 20px;
}

.vd-description__text > ol {
  list-style: decimal;
  padding-left: 20px;
}

/* Vacancy card */
.vacancy-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 20px;
}

.vacancy-card {
  display: grid;
  grid-template-columns: 3fr 1fr;

  background: white;
  border-radius: 10px;

  -webkit-box-shadow: 0px 4px 8px 0px rgba(34, 60, 80, 0.2);
  -moz-box-shadow: 0px 4px 8px 0px rgba(34, 60, 80, 0.2);
  box-shadow: 0px 4px 8px 0px rgba(34, 60, 80, 0.2);

  padding: 0 0 0 20px;
  height: 200px;

  overflow: hidden;
}

.vacancy-card__text {
  gap: 10px;
  justify-content: center;
}

.vacancy-card__img-container {
  position: relative;
  align-items: end;
}

.vacancy-card__circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--color-accent-red);
  position: absolute;
  top: 10px;
  right: -1px;
  z-index: 0;
}

.vacancy-card__img {
  width: 200px;
  height: 180px;
  z-index: 1;
}

/* Media queries */

@media (max-width: 780px) {
  .vd-preview__section,
  .vd-preview__container,
  .vd-preview__text,
  .vd-preview__image,
  .vd-preview__image > img {
    height: 200px;
  }

  .vd-circle {
    height: 100px;
    width: 100px;
    top: -25px;
    right: 25px;
  }
}

@media (max-width: 580px) {
  .vd-preview__text {
    gap: 10px;
  }

  .vd-preview__text > p {
    margin-bottom: 0;
  }
}
