.page-noticeboard {
  --notice-deep: var(--theme-hero-1);
  --notice-purple: var(--theme-hero-2);
  --notice-violet: var(--theme-hero-3);
  --notice-gold: #ffd166;
  --notice-copy-size: clamp(17px, 0.4vw + 14px, 19px);
  --endcap-coral: #ff5a3c;
  --endcap-pink: #e83060;
  --endcap-gold: var(--notice-gold);
}

/* Matches the shared visual language used by the contact-page hero. */
.noticeboard-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--notice-deep) 0%,
    var(--notice-purple) 60%,
    var(--notice-violet) 100%
  );
}

.noticeboard-hero::before {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.7) 1px,
    transparent 1px
  );
  background-size: 32px 32px;
  content: "";
  opacity: 0.04;
}

.noticeboard-hero-inner {
  position: relative;
  z-index: 1;
  padding: 88px 0 96px;
  text-align: center;
}

.noticeboard-hero-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin: 0 0 36px;
  padding: 7px 20px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--theme-hero-muted, rgba(255, 255, 255, 0.7));
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.noticeboard-hero h1 {
  margin: 0 0 22px;
  color: #fff;
  font-size: clamp(56px, 6vw, 88px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1;
}

.noticeboard-hero h1 span,
.noticeboard-hero h1 strong {
  font: inherit;
}

.noticeboard-hero h1 strong {
  color: var(--notice-gold);
}

.noticeboard-hero-intro {
  max-width: 920px;
  margin: 0 auto;
  color: var(--theme-hero-muted, rgba(255, 255, 255, 0.62));
  font-size: clamp(18px, 1.5vw, 25px);
  font-weight: 500;
  line-height: 1.5;
}

.page-noticeboard .section-pad {
  padding-top: 30px;
  padding-bottom: 48px;
}

.page-noticeboard .post-card img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 14px;
  display: block;
}

.page-noticeboard .post-card h2 {
  margin: 0 0 10px;
  color: var(--dark-purple);
  font-size: clamp(24px, 0.8vw + 18px, 30px);
  line-height: 1.2;
}

.page-noticeboard .post-card-targeted {
  border: 2px solid #53903d;
  box-shadow: 0 0 0 4px rgba(83, 144, 61, 0.18);
  scroll-margin-top: 24px;
  animation: noticeboard-targeted-glow 1.1s ease-out;
}

.page-noticeboard .post-meta {
  color: #727272;
  font-size: 14px;
  margin-bottom: 6px;
}

.page-noticeboard .post-cats {
  color: #6d6d6d;
  font-size: 13px;
  margin-bottom: 12px;
}

.page-noticeboard .post-excerpt {
  color: #3f4e66;
  font-size: var(--notice-copy-size);
  line-height: 1.6;
  margin-bottom: 14px;
}

.page-noticeboard .noticeboard-skeleton-card {
  pointer-events: none;
}

.page-noticeboard .noticeboard-skeleton-block,
.page-noticeboard .noticeboard-skeleton-line {
  position: relative;
  overflow: hidden;
  background: #ede7f7;
}

.page-noticeboard .noticeboard-skeleton-block::after,
.page-noticeboard .noticeboard-skeleton-line::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.72) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: noticeboard-skeleton-shimmer 1.5s infinite;
}

.page-noticeboard .noticeboard-skeleton-image {
  width: 100%;
  height: 220px;
  border-radius: 10px;
  margin-bottom: 14px;
}

.page-noticeboard .noticeboard-skeleton-line {
  height: 14px;
  border-radius: 999px;
}

.page-noticeboard .noticeboard-skeleton-line + .noticeboard-skeleton-line {
  margin-top: 12px;
}

.page-noticeboard .noticeboard-skeleton-line-short {
  width: 38%;
}

.page-noticeboard .noticeboard-skeleton-line-shorter {
  width: 48%;
}

.page-noticeboard .noticeboard-skeleton-line-medium {
  width: 62%;
}

.page-noticeboard .noticeboard-status {
  padding: 24px;
  color: #3f4e66;
  font-size: var(--notice-copy-size);
  line-height: 1.6;
  text-align: center;
}

.page-noticeboard .noticeboard-status-error {
  color: #8b1e14;
}

.page-noticeboard .post-toggle {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.page-noticeboard .post-content {
  margin-top: 18px;
  color: #2c3443;
  font-size: var(--notice-copy-size);
  line-height: 1.7;
}

.page-noticeboard .post-content p {
  margin: 0 0 14px;
}

.page-noticeboard .post-content p:last-child {
  margin-bottom: 0;
}

@media (max-width: 760px) {
  .noticeboard-hero-inner {
    padding: 68px 0 74px;
  }

  .noticeboard-hero-kicker {
    margin-bottom: 28px;
    font-size: 14px;
  }

  .noticeboard-hero h1 {
    margin-bottom: 22px;
    font-size: clamp(50px, 15vw, 68px);
  }

  .noticeboard-hero-intro {
    max-width: 520px;
    font-size: 17px;
  }

  .page-noticeboard .section-pad {
    padding-top: 20px;
    padding-bottom: 34px;
  }

  .page-noticeboard .post-card img {
    height: 180px;
  }

  .page-noticeboard .noticeboard-skeleton-image {
    height: 180px;
  }
}

@keyframes noticeboard-skeleton-shimmer {
  100% {
    transform: translateX(100%);
  }
}

@keyframes noticeboard-targeted-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(83, 144, 61, 0.35);
  }

  100% {
    box-shadow: 0 0 0 4px rgba(83, 144, 61, 0.18);
  }
}
