.news__wrapper {
  width: 100%;
  overflow: hidden;
  padding: 0 50px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 1200px;
  margin: 50px auto;

  h1 {
    margin: 0;
  }
}
.news-wrapper {
  overflow: hidden;
}

.news-title a {
  padding: 30px 0;
  z-index: 20;
  font-weight: 500;
  font-size: 32px;
  color: #1760a4;
  width: 100%;
  display: block;
}

.news-gallery {
  align-items: center;
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease-in-out;
}

.news-photo {
  flex-shrink: 0;
  width: 350px;
  height: 300px;
  position: relative;
  transition: opacity 0.3s ease-in-out;
  object-fit: cover;
  object-position: top;

  img {
    width: 350px;
    height: 300px;
    object-fit: cover;
    object-position: top;
    border-radius: 12px;
  }
}

.news-photo-img {
  width: 350px;
  height: 300px;
  object-fit: cover;
  object-position: top;
}

.btn {
  display: flex;
  justify-content: center;
}

.news-photo-content {
  position: absolute;
  bottom: 0;
  background-color: #fafafa;
  backdrop-filter: blur(10px);
  width: 100%;
  height: 50%;
  font-weight: 400;
  padding: 20px;
  display: flex;
  gap: 5px;
  flex-direction: column;
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  transition: opacity 0.3s ease-in-out;
  font-size: 12px;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;

  a {
    color: #333333;
    text-decoration: none;
  }

  h2 h1 p {
    margin: 0;
    padding: 0;
    font-size: 12px;
    font-weight: 300;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.date-created {
  display: flex;
  width: 100%;
  color: #3640e8;
}

.news-photo-content-title {
  font-size: 14px;
  font-weight: 500;
}

.image-btn {
  border: none;
  background: none;
  color: white;
  font-size: 1.5em;
  padding: 10px;
  z-index: 5;
  transition: transform 0.3s;
}
.image-btn img {
  width: 37px;
  height: 37px;
}

.image-btn:hover {
  transform: scale(1.1);
}

@media (max-width: 1200px) {
  .news-title a {
    font-size: 32px !important;
    padding: 0 !important;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 40px !important;
  }
}

@media (max-width: 768px) {
  .news-photo-content-description {
    display: none;
  }

  .news__wrapper {
    padding: 0 30px;
  }

  .news-title a {
    width: 100%;
    padding: 10px 0 20px 0;
    display: flex;
    font-size: 36px;
    font-weight: 500;
    justify-content: center;
  }

  .news-photo {
    width: 300px;
    height: 250px;
    border-radius: 20px;

    img {
      width: 300px;
      height: 250px;
    }
  }

  .news-photo-img {
    width: 300px;
    height: 250px;
  }

  .btn svg {
    width: 40px;
    height: 40px;
  }

  .news-photo-content {
    padding: 10px;

    .news-photo-content-title {
      font-size: 18px;
    }

    .news-photo-content-description {
      font-size: 16px;
    }
  }
}
