/* Основной контент */

.news-header {
  display: none;
}

.news-main-container {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 1rem;
  margin-bottom: 3rem;
  margin: 0 auto;
  width: 100%;
}

/* Левая колонка (3 новости) */
.left-news-column {
  width: auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.left-news-item {
  width: 100%;
  height: auto;
  display: flex;
  background-color: white;
  position: relative;
}
.news-image {
  width: 29vw;
  /* height: 321px; */
  object-fit: cover;
  border-radius: 1rem;
  aspect-ratio: 5 / 3;
  max-width: 545px;
  max-height: 395px;
}
.left-news-content {
  padding: 8px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

.left-news-item .news-title {
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: #2f2f2f;
  line-height: 1.2;
  height: auto;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.left-news-item .news-author {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Nunito", sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #2f2f2f;
  height: 60px;
}

/* Правая колонка (2 новости) */
.right-news-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.right-news-item {
  display: flex;
  flex-direction: column;
  background-color: #f5f5f5;
  border-radius: 10px;
}

/* .right-news-image {
  width: 28vw;
  object-fit: cover;
  border-radius: 10px;
  aspect-ratio: 4 / 3;
} */
.right-news-content {
  padding: 1.2vh;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* background-color: #f5f5f5; */
}
.right-news-item .news-title {
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #2f2f2f;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.2;
}
.right-news-item .news-author {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Nunito", sans-serif;
  font-weight: 600;
  font-size: 22px;
  color: #2f2f2f;
  margin-top: auto;
}

/* Общие стили для новостей */
.news-text-content {
  /* flex: 1; */
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.news-item {
  border-radius: 10px;
  overflow: hidden;
}
.news-date {
  font-family: "Nunito", sans-serif;
  font-weight: 500;
  font-size: 20px;
  color: #2f2f2f;
  margin-bottom: 10px;
  /* height: 27px; */
}
.author-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}
.news-description {
  font-family: "Nunito", sans-serif;
  font-weight: 500;
  font-size: 1.2rem;
  color: #2f2f2f;
  line-height: 1.3;
  flex: 1;
  overflow: hidden;
  height: auto;
  display: block;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  max-height: calc(1.3em * 4);
  -webkit-box-orient: initial;
}
.read-more {
  font-family: "Nunito", sans-serif;
  font-weight: 500;
  font-size: 18px;
  color: #27a8c6;
  text-decoration: none;
  align-self: flex-start;
  white-space: nowrap;
}

@media (min-width: 769px) and (max-width: 1024px) {
  .left-news-item .news-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    height: auto;
    overflow: visible;
  }

  .news-header {
    display: block;
    text-align: center;
    margin-bottom: 20px;
    font-family: "Nunito", sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #2f2f2f;
  }

  .news-header {
    font-family: "Nunito", sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #2b68a4;
    margin: 0;
  }

  .news-main-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 3rem;
    margin: 0 auto;
    width: 100%;
  }

  /* Левая колонка (3 новости) */
  .left-news-column {
    width: auto;
    height: 398px;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .left-news-item {
    width: 100%;
    flex-direction: row;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
  }

  .left-news-item:nth-child(3) {
    display: none;
  }

  .news-image {
    width: auto;
    border-radius: 1rem;
  }

  .left-news-content {
    padding: 10px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    width: auto;
    /* height: 189px; */
    box-sizing: border-box;
  }

  .left-news-item .news-author {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: "Nunito", sans-serif;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 10px;
    color: #2f2f2f;
    height: 44px;
  }

  /* Правая колонка (2 новости) */
  .right-news-column {
    display: none !important;
  }

  /* Общие стили для новостей */
  .news-text-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .news-item {
    border-radius: 10px;
    overflow: hidden;
  }

  .news-date {
    font-family: "Nunito", sans-serif;
    font-weight: 500;
    font-size: 12px;
    color: #2f2f2f;
    margin-bottom: 5px;
    /* height: 27px; */
  }

  .author-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
  }

  .news-description {
    font-size: 0.85rem;
  }

  .read-more {
    font-family: "Nunito", sans-serif;
    font-weight: 500;
    font-size: 12px;
    color: #27a8c6;
    text-decoration: none;
    align-self: flex-start;
    white-space: nowrap;
  }
}

@media (max-width: 768px) {
  .left-news-item .news-author {
    font-size: 1rem;
  }
  .news-image {
    width: 100%;
    /* height: 321px; */
    aspect-ratio: 5 / 3;
    /* max-width: 545px;
    max-height: 395px; */
  }

  .news-header {
    display: block;
    font-family: "Nunito", sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #2b68a4;
    margin-bottom: 20px;
    text-align: center;
  }

  .news-main-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    justify-items: center;
    margin-bottom: 3rem;
    margin: 0 auto;
    width: 100%;
  }

  /* Левая колонка (3 новости) */
  .left-news-column {
    display: none;
  }

  /* Правая колонка (2 новости) */
  .right-news-column {
    padding: 1.25rem;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .right-news-item {
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 20px;
  }

  .right-news-content {
    padding: 0.8vh;
  }

  .right-news-item .news-title {
    font-family: "Nunito", sans-serif;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 10px;
    color: #2f2f2f;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.2;
  }

  .right-news-item .news-author {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "Nunito", sans-serif;
    font-weight: 600;
    font-size: 22px;
    color: #2f2f2f;
    margin-top: auto;
  }

  /* Общие стили для новостей */
  .news-item {
    border-radius: 10px;
    overflow: hidden;
  }

  .news-date {
    font-family: "Nunito", sans-serif;
    font-weight: 500;
    font-size: 20px;
    color: #2f2f2f;
    margin-bottom: 5px;
    /* height: 27px; */
  }

  .news-title {
    font-family: "Nunito", sans-serif;
    font-weight: 500;
    font-size: 22px;
    color: #2f2f2f;
    line-height: 1.2;
  }

  .author-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
  }

  .news-author span {
    font-family: "Nunito", sans-serif;
    font-weight: 600;
    font-size: 22px;
    color: #2f2f2f;
  }

  .left-news-column {
    display: none;
  }
}
