.news-section {
  padding: 80px 20px 50px;
  background: transparent;
  min-height: 50vh;
}

.news-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.styled-title {
  font-size: 48px;
  margin-bottom: 50px;
  color: #ffffff;
  background: #ffffff;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  display: inline-block;
}

.styled-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: #ffffff;
  border-radius: 3px;
}

.news-block {
  background-image: url("images/head.png");
  background-repeat: no-repeat;
  background-size: cover;
  border: 0px solid var(--border);
  border-radius: 20px;
  color: #fff;
  padding: 0;
  margin-bottom: 50px;
  text-align: left;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.news-block.visible {
  opacity: 1;
  transform: translateY(0);
}


.news-content {
  box-sizing: border-box;
  padding: clamp(12px, 3vw, 30px);
  overflow-wrap: anywhere;
}

.news-image {
  width: 100%;
  height: auto;
  border-radius: 13px 13px 0 0;
  margin-bottom: 0;
}

.news-content h3 {
  font-size: 28px;
  margin: 25px 0 10px;
  background: linear-gradient(45deg, #fff 30%, #b79ced 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.news-date {
  font-size: 14px;
  color: #b79ced;
  margin-bottom: 20px;
  display: block;
  font-style: italic;
}

.news-content p {
  line-height: 1.7;
  margin-bottom: 18px;
  font-size: 16px;
}

.news-content b {
  color: #ffffff;
  font-weight: 600;
}

/* Стили для ссылок в новостях */
.news-content a {
  color: #b79ced;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  font-weight: 500;
  padding: 0 2px;
}

.news-content a:hover {
  color: #fff;
  text-decoration: none;
  background: rgba(126, 1, 255, 0.2);
  border-radius: 3px;
}

.news-content a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 1px;
  bottom: -2px;
  left: 0;
  background: linear-gradient(90deg, #7E01FF, #b79ced);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease;
}

.news-content a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Стили для видео */
.news-content iframe {
  box-sizing: border-box;
  max-width: 100%;
  border-radius: 10px;
  margin: 20px 0;
  border: 2px solid var(--border);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Стили для списков в новостях */
.news-content ul {
  margin: 15px 0;
  padding-left: 20px;
}

.news-content li {
  margin-bottom: 10px;
  line-height: 1.5;
}

/* Медиа-запросы для мобильных устройств */
@media (max-width: 768px) {
  .news-section {
    padding: 70px 0px 30px 0px;
    margin: 0px;
  }

  .styled-title {
    font-size: 36px;
    margin-bottom: 40px;
  }

  .news-block {
    padding: 0;
    margin-bottom: 40px;
  }

  .news-date {
    font-size: 12px;
  }

  .news-content h3 {
    font-size: 22px;
  }

  .news-content p {
    font-size: 15px;
    line-height: 1.6;
  }

  .news-content iframe {
    height: 250px;
  }
}

@media (max-width: 480px) {
  .styled-title {
    font-size: 28px;
  }

  .news-content h3 {
    font-size: 20px;
  }

  .news-content iframe {
    height: 200px;
  }
}
