.hidden {
  display: none !important;
}

.news-main {
  gap: 18px;
}

.news-hero-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background:
    radial-gradient(circle at 92% 16%, rgba(255, 230, 109, 0.82), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #fff0f8 54%, #e9fbff 100%);
}

.news-main-tag {
  width: fit-content;
  background: var(--yellow);
  color: var(--ink);
}

.news-title {
  margin: 12px 0 8px;
  font-size: clamp(2rem, 6vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.07em;
  font-weight: 950;
  color: var(--ink);
}

.news-hero-badge {
  flex: 0 0 auto;
  width: 94px;
  height: 94px;
  display: grid;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 30px;
  background: var(--primary);
  color: #fff;
  box-shadow: 5px 5px 0 var(--ink);
  transform: rotate(7deg);
  font-weight: 950;
  letter-spacing: -0.03em;
}

.news-panel-head {
  align-items: flex-start;
}

.news-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  margin-bottom: 14px;
  scrollbar-width: none;
}

.news-tabs::-webkit-scrollbar {
  display: none;
}

.news-tab {
  flex: 0 0 auto;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  box-shadow: 3px 3px 0 var(--ink);
  padding: 9px 14px;
  font-weight: 950;
  color: var(--ink);
}

.news-tab.active {
  background: var(--yellow);
}

.news-post-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.news-post-list + .news-post-list {
  margin-top: 12px;
}

.news-post-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 2.5px solid var(--ink);
  border-radius: 24px;
  background: #fff;
  color: var(--text);
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.news-post-card:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.news-post-card.pinned {
  background: linear-gradient(135deg, #fffef5 0%, #fff2b8 100%);
}

.news-thumb-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 2.5px solid var(--ink);
  border-radius: 18px;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.76), transparent 28%),
    linear-gradient(135deg, #fff0f8 0%, #e9fbff 100%);
}

.news-thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-thumb-wrap.no-thumb {
  display: grid;
  place-items: center;
  color: var(--primary-dark);
  font-weight: 950;
  letter-spacing: -0.04em;
}

.news-post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-height: 28px;
}

.news-category,
.news-pin-label,
.news-date {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 950;
}

.news-category {
  border: 2px solid var(--ink);
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}

.news-category.event {
  background: var(--primary);
  color: #fff;
}

.news-category.update {
  background: #91d8ff;
}

.news-category.guide {
  background: #a9efc5;
}

.news-pin-label {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.news-date {
  color: var(--muted);
  background: var(--bg-soft);
}

.news-post-card h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.35;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.news-post-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
  font-weight: 700;
}

.news-detail-main {
  max-width: 820px;
}

.news-detail-card {
  padding: clamp(22px, 5vw, 38px);
}

.detail-meta {
  margin-bottom: 14px;
}

.news-detail-title {
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 1.16;
  letter-spacing: -0.07em;
  color: var(--ink);
}

.news-detail-summary {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
  font-weight: 800;
}

.news-detail-thumb-wrap {
  overflow: hidden;
  margin-bottom: 20px;
  border: 3px solid var(--ink);
  border-radius: 24px;
  background: #fff;
  box-shadow: 4px 4px 0 var(--ink);
}

.news-detail-thumb {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}

.news-detail-content {
  font-size: 1.03rem;
  line-height: 1.85;
  color: var(--text);
  word-break: keep-all;
}

.news-detail-content p {
  margin: 0 0 16px;
}

.empty-state {
  padding: 34px 16px;
  text-align: center;
  color: var(--muted);
  font-weight: 800;
}

.empty-icon {
  font-size: 2.3rem;
}

.empty-state h3 {
  margin: 10px 0 5px;
  color: var(--ink);
}

.empty-state p {
  margin: 0;
}

@media (max-width: 640px) {
  .news-hero-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .news-hero-badge {
    width: 76px;
    height: 76px;
    border-radius: 24px;
  }

  .news-panel-head {
    flex-direction: column;
  }

  .news-panel-head .btn {
    width: 100%;
  }

  .news-post-list {
    grid-template-columns: 1fr;
  }

  .news-thumb-wrap {
    aspect-ratio: 16 / 9;
  }
}
