/* Public Notices — listing, detail, homepage strip */

.notices-page {
  background: #fbfcf8;
  color: #526257;
}

.notices-hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  background: #102016;
}

.notices-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(12, 29, 20, 0.94), rgba(12, 29, 20, 0.68) 50%, rgba(12, 29, 20, 0.34)),
    url('/website/assets/images/photos/h_14.jpg') center / cover no-repeat;
  z-index: -2;
}

.notices-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 110px;
  background: linear-gradient(0deg, #fbfcf8, rgba(251, 252, 248, 0));
  z-index: -1;
}

.notices-hero__inner {
  width: 100%;
  padding: 118px 0 60px;
}

.notices-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #d9a441;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.notices-kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: #ffffff;
}

.notices-hero h1 {
  color: #ffffff;
  font-size: clamp(32px, 4.8vw, 54px);
  line-height: 1.06;
  font-weight: 900;
  margin: 0 0 12px;
  max-width: 16ch;
}

.notices-hero p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 40rem;
  line-height: 1.65;
  margin: 0;
}

.notices-list {
  padding: 24px 0 96px;
}

.notices-stack {
  display: grid;
  gap: 16px;
}

.notice-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 22px 24px;
  background: #ffffff;
  border: 1px solid rgba(16, 32, 22, 0.08);
  border-radius: 4px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 28px rgba(22, 52, 34, 0.05);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.notice-row:hover {
  transform: translateY(-2px);
  border-color: rgba(217, 164, 65, 0.45);
  box-shadow: 0 18px 40px rgba(22, 52, 34, 0.1);
  color: inherit;
}

.notice-row__date {
  color: #006088;
  font-weight: 800;
  font-size: 0.92rem;
}

.notice-row__title {
  color: #15271d;
  font-size: 1.2rem;
  font-weight: 900;
  margin: 0 0 6px;
  line-height: 1.25;
}

.notice-row__summary {
  margin: 0;
  color: #5a6b66;
  line-height: 1.55;
}

.notice-priority {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: #e8f2f6;
  color: #006088;
  white-space: nowrap;
}

.notice-priority--important {
  background: #f4edd9;
  color: #8a6a1b;
}

.notice-priority--urgent {
  background: #f3e8e8;
  color: #8a2f2f;
}

.notice-detail {
  padding: 12px 0 96px;
}

.notice-detail__card {
  max-width: 820px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid rgba(16, 32, 22, 0.08);
  border-radius: 4px;
  padding: 36px;
  box-shadow: 0 14px 36px rgba(22, 52, 34, 0.06);
}

.notice-detail__card h1 {
  color: #15271d;
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 900;
  line-height: 1.15;
  margin: 12px 0 18px;
}

.notice-detail__body {
  color: #44564c;
  line-height: 1.75;
  font-size: 1.05rem;
}

/* Homepage Public Notices */
.home-notices {
  padding: 96px 0;
  background:
    linear-gradient(180deg, #f4f6f1 0%, #eef2ec 100%);
  position: relative;
  overflow: hidden;
}

.home-notices::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, #d9a441, #006088);
}

.home-notices__board {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.home-notice-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.88);
  border-left: 3px solid #d9a441;
  text-decoration: none;
  color: inherit;
  transition: background 200ms ease, transform 200ms ease, border-color 200ms ease;
}

.home-notice-item:hover {
  background: #ffffff;
  transform: translateX(4px);
  border-left-color: #006088;
  color: inherit;
}

.home-notice-item__date {
  min-width: 72px;
  color: #006088;
  font-weight: 800;
  font-size: 0.88rem;
}

.home-notice-item h3 {
  color: #15271d;
  font-size: 1.12rem;
  font-weight: 900;
  margin: 0 0 4px;
  line-height: 1.25;
}

.home-notice-item p {
  margin: 0;
  color: #5a6b66;
  line-height: 1.5;
  font-size: 0.95rem;
}

.home-notices__actions {
  margin-top: 28px;
}

.home-notices__empty {
  padding: 28px;
  background: rgba(255, 255, 255, 0.7);
  color: #5a6b66;
  border: 1px dashed rgba(16, 32, 22, 0.18);
}

@media (max-width: 767px) {
  .notice-row,
  .home-notice-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .notices-hero h1 {
    max-width: none;
  }

  .notice-detail__card {
    padding: 24px;
  }
}
