/* JEHKA Notice UI */
.notice-container,
.notice-post-container {
  padding-top: 34px;
}

.notice-hero {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 20px;
}

.notice-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.notice-toolbar h2 {
  margin-bottom: 0;
}

.notice-start-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.notice-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.notice-card,
.notice-mini-card {
  color: inherit;
}

.notice-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.025));
  box-shadow: 0 18px 42px rgba(2, 8, 23, 0.26);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.notice-card:hover {
  transform: translateY(-3px);
  border-color: rgba(94, 231, 255, .42);
  color: inherit;
  box-shadow: 0 24px 60px rgba(2, 8, 23, 0.36);
}

.notice-card__media {
  min-height: 170px;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.notice-card__media--empty {
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.72);
  font-family: "DNFForgedBlade", "Pretendard", sans-serif;
  letter-spacing: .04em;
  background:
    radial-gradient(circle at 30% 15%, rgba(250,204,21,.18), transparent 28%),
    radial-gradient(circle at 85% 75%, rgba(94,231,255,.20), transparent 34%),
    linear-gradient(135deg, rgba(15,23,42,.92), rgba(23,34,58,.96));
}

.notice-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  min-height: 230px;
}

.notice-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--jk-subtle);
  font-size: 12px;
}

.notice-meta b {
  color: #facc15;
  font-weight: 900;
}

.notice-meta em {
  font-style: normal;
}

.notice-card h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.34;
  word-break: keep-all;
}

.notice-card p {
  margin: 0;
  color: var(--jk-muted);
  font-size: 14px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notice-read-more {
  margin-top: auto;
  color: #8ff3ff;
  font-weight: 900;
}

.notice-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 32px 0 6px;
  flex-wrap: wrap;
}

.notice-page-btn,
.notice-page-dots {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, .18);
  background: rgba(255,255,255,.055);
  color: #fff;
  font-weight: 900;
}

.notice-page-btn.active {
  color: #08111f;
  background: linear-gradient(135deg, #facc15, #67e8f9);
  border-color: transparent;
}

.notice-page-btn.disabled {
  pointer-events: none;
  opacity: .42;
}

.notice-empty,
.notice-widget-empty {
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 24px;
  background: rgba(255,255,255,.045);
  text-align: center;
  padding: 38px 24px;
  color: var(--jk-muted);
}

.notice-recent-section {
  margin: 36px auto 0;
}

.notice-recent-section--landing {
  margin-top: 0;
}

.notice-recent-panel {
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, .16);
  background: linear-gradient(180deg, rgba(15, 23, 42, .86), rgba(8, 13, 26, .92));
  box-shadow: 0 22px 70px rgba(2, 8, 23, .34);
  padding: 28px;
}

.notice-recent-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.notice-recent-head h2 {
  margin-bottom: 0;
  font-size: clamp(24px, 3vw, 34px);
}

.notice-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.notice-mini-card {
  display: flex;
  flex-direction: column;
  min-height: 250px;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, .15);
  background: rgba(255,255,255,.045);
  transition: transform .18s ease, border-color .18s ease;
}

.notice-mini-card:hover {
  transform: translateY(-2px);
  border-color: rgba(94, 231, 255, .38);
  color: inherit;
}

.notice-mini-card__image {
  min-height: 96px;
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.65);
  font-family: "DNFForgedBlade", "Pretendard", sans-serif;
  background-color: rgba(255,255,255,.045);
}

.notice-mini-card__image--empty {
  background:
    radial-gradient(circle at 30% 20%, rgba(250,204,21,.14), transparent 30%),
    radial-gradient(circle at 80% 80%, rgba(94,231,255,.16), transparent 34%),
    rgba(255,255,255,.045);
}

.notice-mini-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 15px;
  flex: 1;
}

.notice-mini-card strong {
  color: #fff;
  line-height: 1.35;
  font-size: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notice-mini-card__body > span:last-child {
  color: var(--jk-muted);
  font-size: 13px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notice-post-container {
  width: min(980px, calc(100% - 36px));
}

.notice-back-link {
  display: inline-flex;
  margin: 0 0 18px;
  color: #8ff3ff;
  font-weight: 900;
}

.notice-post {
  padding: clamp(24px, 4vw, 46px);
}

.notice-post__head h1 {
  margin: 8px 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.12;
  word-break: keep-all;
}

.notice-post__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--jk-muted);
  font-size: 14px;
}

.notice-post__images {
  display: grid;
  gap: 16px;
  margin: 28px 0;
}

.notice-post__images img {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, .16);
  box-shadow: 0 18px 46px rgba(2, 8, 23, .28);
}

.notice-post__content {
  margin-top: 28px;
  color: var(--jk-text-2);
  font-size: 17px;
  line-height: 1.9;
}

.notice-post__content p {
  color: var(--jk-text-2);
  margin-bottom: 18px;
}

.notice-post__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 34px;
}

@media (max-width: 1040px) {
  .notice-card-grid,
  .notice-mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .notice-card-grid,
  .notice-mini-grid {
    grid-template-columns: 1fr;
  }

  .notice-toolbar,
  .notice-recent-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .notice-mini-card {
    min-height: 0;
  }

  .notice-post__head h1 {
    font-size: clamp(30px, 8vw, 42px);
  }
}
