.notice-page {
  --reference-maroon: #b87579;
  --reference-yellow: #ffe49a;
  background: #fffaf3;
}

.notice-page-ribbon {
  overflow: hidden;
  background: #253f50;
  color: #fff;
}

.notice-page-ribbon__track {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 56px;
  width: min(calc(100% - 40px), 1440px);
  margin: 0 auto;
  padding: 13px 0;
}

.notice-page-ribbon span {
  font-family: var(--title-font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.notice-page-ribbon i {
  margin-right: 8px;
  color: #ffe49a;
}

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

.notice-card {
  overflow: hidden;
  border: 1px solid rgba(184, 117, 121, .16);
  border-radius: 0 0 18px 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(54, 42, 38, .09);
  transition: transform .25s ease, box-shadow .25s ease;
}

.notice-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 36px rgba(54, 42, 38, .15);
}

.notice-card__image-link {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 4.8;
  background: #f1e8df;
}

.notice-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.notice-card:hover .notice-card__image {
  transform: scale(1.025);
}

.notice-card__body {
  padding: 20px 20px 22px;
}

.notice-card__date {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #7d716c;
  font-size: 13px;
}

.notice-card__date i {
  color: var(--reference-maroon);
}

.notice-card__title {
  min-height: 56px;
  margin: 12px 0 20px;
  font-family: var(--title-font);
  font-size: 21px;
  line-height: 1.3;
}

.notice-card__title a {
  color: #253f50;
}

.notice-card__title a:hover {
  color: var(--reference-maroon);
}

.notice-card__details {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 17px;
  border-radius: 8px;
  background: var(--reference-maroon);
  color: #fff;
  font-family: var(--title-font);
  font-size: 14px;
  font-weight: 700;
  transition: background-color .25s ease, transform .25s ease;
}

.notice-card__details:hover {
  background: #253f50;
  color: #fff;
  transform: translateX(2px);
}

.notice-page-empty {
  grid-column: 1 / -1;
  padding: 70px 24px;
  border: 1px dashed rgba(184, 117, 121, .45);
  border-radius: 16px;
  background: #fff;
  color: #746c69;
  text-align: center;
}

.notice-page-empty i {
  margin-bottom: 15px;
  color: var(--reference-maroon);
  font-size: 32px;
}

.notice-page-empty h2 {
  margin: 0 0 8px;
  color: #253f50;
  font-family: var(--title-font);
  font-size: 24px;
}

.notice-page-empty p {
  margin: 0;
}

.notice-detail-section {
  background: #fffaf3;
}

.notice-detail-card {
  max-width: 920px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(184, 117, 121, .16);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(54, 42, 38, .09);
}

.notice-detail-card__header {
  padding: 28px 32px 22px;
}

.notice-detail-card__header h2 {
  margin: 12px 0 0;
  color: #253f50;
  font-family: var(--title-font);
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.2;
}

.notice-detail-card__image {
  padding: 0 32px;
  text-align: center;
}

.notice-detail-card__image img {
  display: block;
  width: 100%;
  max-height: 760px;
  margin: 0 auto;
  object-fit: contain;
}

.notice-detail-card__content {
  padding: 28px 32px 34px;
  color: #746c69;
  font-size: 16px;
  line-height: 1.8;
}

@media (max-width: 575px) {
  .notice-detail-card__header,
  .notice-detail-card__content {
    padding: 22px 18px;
  }

  .notice-detail-card__image {
    padding: 0 18px;
  }
}

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

@media (max-width: 575px) {
  .notice-page-ribbon__track {
    justify-content: flex-start;
    flex-wrap: nowrap;
    width: max-content;
    gap: 32px;
    animation: notice-ribbon-scroll 22s linear infinite;
  }

  .notice-page-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .notice-card__body {
    padding: 16px 16px 18px;
  }
}

@keyframes notice-ribbon-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-42%); }
}
