.news-detail-page__header {
  width: 100%;
  height: auto;
  max-height: fit-content;
  min-height: 300px;
  background-color: var(--color-black-soft);
  border-radius: 20px;
  background-image: url('../../img/news-detail/background.svg');
  background-size: 600px 600px;
  background-position: top -100px right -50px;
  background-repeat: no-repeat;
  position: relative;
}

.news-detail-page__header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  border-radius: 20px;
  z-index: 1;
  pointer-events: none;
}

.news-detail-page__header > * {
  position: relative;
  z-index: 2;
}

.news-detail-page__header-container {
  padding: 35px;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.news-detail-page__header-header {
  display: flex;
  align-items: center;
  gap: 20px;
}

.news-detail-page__header-back-button {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background-color: rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(15px);
  border: 1px solid var(--color-gray-700);
  cursor: pointer;
  transition: all 0.3s ease;
}

.news-detail-page__header-back-button:hover {
  border-color: var(--color-primary-hover);
}

.news-detail-page__header-back-text {
  color: var(--color-gray-400);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
}

.news-detail-page__header-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.news-detail-page__header-categories {
  display: flex;
  gap: 10px; 
  flex-wrap: wrap;
}

.news-detail-page__header-category {
  padding: 5px 12px;
  border: 1px solid var(--color-secondary-dark);
  border-radius: 100px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  color: var(--color-secondary-dark);
}

.news-detail-page__header-title {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-tight);
  color: var(--color-white);
}

.news-detail-page__header-description {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-tight);
  color: var(--color-gray-400);
}

@media (max-width: 768px) {
  .news-detail-page__header-title {
    font-size: var(--font-size-3xl);
  }
}