@import url("../css/main.css");

section.MainBody {
  width: 100%;
  padding-top: 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.img {
  width: 100%;
  height: 174px;
}

.img > img {
  width: 100%;
  height: inherit;
  object-fit: cover;
}

.Title {
  padding: 10px;
  box-sizing: border-box;
  width: 90%;
  text-align: center;
  color: white;
}

.Date {
  width: 100%;
  color: white;
  opacity: 73%;
  font-size: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.MainBody > hr {
  width: 90%;
  margin: 12px;
  opacity: 20%;
  box-sizing: border-box;
}

.Caption {
  width: 80%;
  color: white;
  opacity: 80%;
  font-size: 12px;
  text-align: right;
}

.Similar {
  width: 80%;
  color: white;
  font-size: 12px;
  text-align: center;
}

.Similar > h3 {
  padding: 12px;
  box-sizing: border-box;
}

.newspaper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
}

.newspaper > .News {
  width: 49%;
  height: 152px;
  margin-top: 12px;
  padding: 6px 4px;
  border-radius: 4px;
  background-color: #1b0e3d;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.newspaper > .News > img {
  width: 100%;
  height: 83px;
  object-fit: cover;
  border-radius: 5px;
}

.newspaper > .News > p {
  width: 100%;
  height: 30px;
  font-size: 7px;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
      padding-right: 4px;

}

.newspaper > .News > a {
  display: flex;
  align-self: flex-end;
  width: 60px;
  height: 18px;
  background-color: #fff;
  border-radius: 4px;
  text-decoration: none;
  color: #1b0e3d;
  justify-content: space-between;
  align-items: center;
  padding: 4px;
  box-sizing: border-box;
  margin-bottom: 2px;
}

.newspaper > .News > a > span {
  font-size: 8px;
}
.MoreCaption {
  display: none;
}

@media only screen and (min-width: 1023px) {
  .img {
    width: 75%;
    height: 534px;
  }

  .img > img {
    width: 100%;
    height: inherit;
    object-fit: cover;
    border-radius: 18px;
  }

  .Title {
    padding: 10px;
    box-sizing: border-box;
    width: 90%;
    text-align: center;
    color: white;
    font-size: 22px;
  }

  .MainBody > hr {
    display: block;
    width: 80%;
    margin: 12px;
    opacity: 20%;
    box-sizing: border-box;
  }
  .Date {
    font-size: 16px;
  }

  .Caption {
    width: 80%;
    color: white;
    opacity: 100%;
    font-size: 16px;
    text-align: center;
  }

  .Similar {
    width: 80%;
    color: white;
    font-size: 12px;
    text-align: center;
  }

  .Similar > h3 {
    padding: 12px;
    font-size: 21px;
    box-sizing: border-box;
  }

  .MoreCaption {
    display: flex;
    margin-top: 20px;
    opacity: 70%;
  }
  .newspaper > .News {
    width: 24.5%;
    height: 200px;
    margin-top: 12px;
    padding: 6px 4px;
    border-radius: 4px;
    background-color: #1b0e3d;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .newspaper > .News > img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
  }

  .newspaper > .News > p {
    width: 100%;
    height: 30px;
    font-size: 14px;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .newspaper > .News > a {
    display: flex;
    align-self: flex-end;
    width: 90px;
    height: 30px;
    background-color: #fff;
    border-radius: 4px;
    text-decoration: none;
    color: #1b0e3d;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    box-sizing: border-box;
  }

  .newspaper > .News > a > span {
    font-size: 12px;
    font-weight: bold;
  }
  .newspaper > .News > a > img {
    width: 8px;
  }
}
