.components-base {
  display: flex;
  flex-direction: column;
  color: var(--color-black);
  padding: 0 100px;
}

.components-base__title {
  font: var(--font-large);
  text-align: start;
  margin: 0;
  margin-bottom: 54px;
}

.components-base__name {
  font-weight: 700;
  font-size: 32px;
  line-height: 38px;
  margin: 0;
}

.components-base__subtitle {
  margin: 0;
  font: var(--font-small);
  display: flex;
  align-self: center;
}

.components-base__item {
  border-radius: 10px;
}

.components-base__header {
  display: flex;
  justify-content: space-between;
  padding: 21px 30px;
  background-color: var(--color-white);
  color: var(--color-black);
  border: none;
  width: 100%;
  cursor: pointer;
  font-size: 18px;
}

.components-base__image-container {
  display: flex;
  flex-direction: row;
  column-gap: 50px;
}

.components-base__item:first-child .components-base__header {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.components-base__item:last-child .components-base__header {
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.components-base__content {
  display: none;
  background-color: var(--color-deep-blue-gray);
  color: var(--color-pure-white);
  padding: 40px 30px;
  border-radius: 10px;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  height: 0;
  opacity: 0;
  transition: height 0.8s ease-in-out, opacity 0.3s ease-in-out;
}

.components-base__content.show-content {
  height: auto;
  opacity: 1;
}

.components-base__details {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  column-gap: 60px;
  text-align: start;
  margin-right: 70px;
}

.components-base__image {
  border-radius: 10px;
}

.close-button {
  display: block;
  background-color: transparent;
  background-image: url("./images/close-button.svg");
  background-repeat: no-repeat;
  background-size: 35px 35px;
  border: none;
  cursor: pointer;
  width: 50px;
  height: 50px;
  position: absolute;
  top: 40px;
  right: 25px;
  transition: background-color 0.5s ease;
}

.icon {
  width: 45px;
  transition: background-color 0.5s ease;
}

.icon:hover {
  opacity: 0.4;
}

.close-button:hover {
  opacity: 0.4;
}

@media (max-width: 1300px) {
  .icon {
    width: 40px;
    height: 40px;
  }

  .close-button {
    background-size: 32px 32px;
    top: 45px;
    right: 18px;
  }

  .components-base__details {
    display: flex;
    flex-direction: column;
    row-gap: 20px;
    text-align: start;
    margin: 0;
  }
}

@media (max-width: 990px) {
  .components-base {
    padding: 0 20px;
  }

  .components-base__title {
    font-size: 28px;
    line-height: 38.25px;
    margin-bottom: 40px;
  }

  .components-base__name {
    font-size: 20px;
    line-height: 24px;
    text-align: start;
  }

  .icon {
    width: 25px;
    height: 25px;
  }

  .components-base__header {
    align-items: center;
    padding: 21px 16px;
  }

  .components-base__content {
    padding: 21px 16px;
  }

  .components-base__details {
    display: flex;
    flex-direction: column;
    row-gap: 20px;
    text-align: start;
    margin: 0;
  }

  .close-button {
    background-size: 21px 21px;
    top: 20px;
    right: -5px;
  }

  .components-base__close-button {
    width: 20px;
    height: 20px;
  }

  .components-base__subtitle {
    font-size: 12px;
    line-height: 14.63px;
  }

  .components-base__image-container {
    flex-direction: column-reverse;
    row-gap: 20px;
  }
}