.inner-page {
  background: #f6f1e7;
}

.inner-page .site-header {
  color: var(--ink);
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 8px 30px rgba(25, 39, 54, 0.1);
}

.inner-page .site-header .nav-icon { filter: none; }
.inner-page .site-header .brand-logo--color { display: block; }
.inner-page .site-header .brand-logo--white { display: none; }
.inner-page .site-header .nav-link:hover { color: var(--blue); }

.inner-page .nav-link.is-current::before {
  position: absolute;
  right: 18%;
  bottom: 4px;
  left: 18%;
  height: 5px;
  background: var(--blue);
  content: "";
}

.notice-main {
  min-height: 70vh;
  padding-top: var(--header-height);
}

.notice-intro {
  position: relative;
  overflow: hidden;
  min-height: 410px;
  padding: 108px 24px 96px;
  color: var(--white);
  background:
    linear-gradient(100deg, rgba(3, 38, 73, 0.78), rgba(11, 75, 128, 0.48)),
    url("/assets/background.webp") center 48% / cover no-repeat;
  text-align: center;
}

.notice-intro > p {
  margin: 0 0 17px;
  color: #cdeeff;
  font-family: "Mulmaru", Pretendard, sans-serif;
  font-size: clamp(1rem, 1.6vw, 1.35rem);
}

.notice-intro h1 {
  margin: 0;
  font-family: "Mulmaru", Pretendard, sans-serif;
  font-size: clamp(3.6rem, 8vw, 7.2rem);
  font-weight: normal;
  letter-spacing: -0.08em;
  line-height: 0.95;
  text-shadow: 0 8px 0 rgba(3, 38, 73, 0.22);
}

.notice-intro > span {
  display: block;
  max-width: 680px;
  margin: 30px auto 0;
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  line-height: 1.7;
}

.notice-board,
.notice-detail {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 48px));
  margin: -48px auto 112px;
  padding: 48px;
  background: var(--white);
  border-radius: 28px;
  box-shadow: 0 26px 70px rgba(18, 43, 68, 0.14);
}

.notice-board__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.notice-board__heading p {
  margin: 0 0 10px;
  color: var(--blue);
  font-weight: 900;
}

.notice-board__heading h2 {
  margin: 0;
  font-family: "Mulmaru", Pretendard, sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: normal;
  letter-spacing: -0.07em;
}

.notice-board__heading button {
  padding: 11px 15px;
  color: var(--navy);
  background: #e9f5fc;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.notice-list {
  display: grid;
  gap: 18px;
}

.notice-card {
  position: relative;
}

.notice-card > a {
  display: grid;
  grid-template-columns: minmax(220px, 31%) 1fr;
  min-height: 180px;
  overflow: hidden;
  color: inherit;
  background: #fbfaf6;
  border-radius: 19px;
  box-shadow: inset 0 0 0 1px rgba(7, 62, 120, 0.08), 0 10px 24px rgba(24, 46, 65, 0.07);
  text-decoration: none;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.notice-card > a:hover {
  box-shadow: inset 0 0 0 2px var(--sky), 0 14px 30px rgba(24, 46, 65, 0.12);
  transform: translateY(-3px);
}

.notice-card__thumbnail {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  background: #ddecf5 url("/assets/logo.webp") center / 70% auto no-repeat;
}

.notice-card__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.notice-card__body {
  display: flex;
  min-width: 0;
  padding: 26px 30px;
  flex-direction: column;
}

.notice-pin {
  align-self: flex-start;
  padding: 6px 10px;
  color: #8a4f00;
  background: #ffe7a6;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 900;
}

.notice-card h3 {
  margin: 7px 0 10px;
  color: #102f4e;
  font-size: clamp(1.15rem, 2.1vw, 1.45rem);
  line-height: 1.4;
  letter-spacing: -0.04em;
}

.notice-card__excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #4d667c;
  line-height: 1.7;
  white-space: pre-wrap;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.notice-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 16px;
  color: #71869a;
  font-size: 0.8rem;
  font-weight: 700;
}

.notice-loading {
  display: grid;
  min-height: 260px;
  place-items: center;
}

.notice-empty {
  padding: 90px 20px;
  color: #698096;
  text-align: center;
}

.notice-detail[hidden] { display: none; }

.notice-detail__back {
  display: inline-flex;
  margin-bottom: 26px;
  color: var(--navy);
  font-weight: 900;
  text-decoration: none;
}

.notice-detail__head {
  padding: 42px 4px 30px;
  border-bottom: 1px solid rgba(7, 62, 120, 0.12);
}

.notice-detail__head h1 {
  margin: 14px 0 16px;
  color: #102f4e;
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: 1.28;
  letter-spacing: -0.06em;
}

.notice-detail__head time {
  color: #72869a;
  font-size: 0.9rem;
  font-weight: 700;
}

.notice-detail__content {
  min-height: 200px;
  padding: 42px 4px 60px;
  color: #294860;
  font-size: 1.05rem;
  line-height: 1.9;
}

.notice-detail__content--rich.ql-container.ql-snow {
  border: 0;
  font-family: Pretendard, sans-serif;
  font-size: 1.05rem;
}

.notice-detail__content--rich .ql-editor {
  overflow: visible;
  min-height: 0;
  padding: 0;
  color: #294860;
  line-height: 1.9;
  -webkit-user-select: text;
  user-select: text;
}

.notice-detail__content--rich .ql-editor p,
.notice-detail__content--rich .ql-editor ol,
.notice-detail__content--rich .ql-editor blockquote {
  margin-bottom: 1.15em;
}

.notice-detail__content--rich .ql-editor h1,
.notice-detail__content--rich .ql-editor h2,
.notice-detail__content--rich .ql-editor h3 {
  margin: 1.4em 0 0.65em;
  color: #173953;
  line-height: 1.35;
}

.notice-detail__content--rich .ql-editor a {
  color: var(--blue);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.notice-detail__content--rich .ql-editor img,
.notice-detail__text img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 34px auto;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(18, 43, 68, 0.12);
}

.notice-detail__content--rich .ql-editor .ql-align-left img { margin-right: auto; margin-left: 0; }
.notice-detail__content--rich .ql-editor .ql-align-right img { margin-right: 0; margin-left: auto; }
.notice-detail__content--rich .ql-editor .ql-align-center img { margin-right: auto; margin-left: auto; }

.notice-detail__text {
  margin: 0 0 30px;
  white-space: pre-wrap;
}

.notice-detail__body-image {
  margin: 34px 0;
}

.notice-detail__body-image img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(18, 43, 68, 0.12);
}

.notice-recommend {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  padding: 34px 20px;
  background: #eef7fc;
  border-radius: 18px;
}

.notice-recommend button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 19px;
  color: var(--navy);
  background: var(--white);
  border: 0;
  border-radius: 13px;
  box-shadow: 0 6px 18px rgba(7, 62, 120, 0.12);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.notice-recommend button[aria-pressed="true"] {
  color: var(--white);
  background: var(--blue);
  cursor: default;
}

.notice-recommend button[aria-pressed="true"] img { filter: brightness(0) invert(1); }
.notice-recommend p { margin: 0; color: #668096; font-size: 0.85rem; }

@media (max-width: 720px) {
  .notice-intro {
    min-height: 330px;
    padding: 82px 20px 76px;
  }

  .notice-board,
  .notice-detail {
    width: min(100% - 28px, 1120px);
    margin-top: -34px;
    margin-bottom: 80px;
    padding: 28px 20px;
    border-radius: 22px;
  }

  .notice-board__heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .notice-card > a {
    grid-template-columns: minmax(118px, 35%) 1fr;
    min-height: 148px;
  }

  .notice-card__thumbnail { min-height: 148px; }
  .notice-card__body { padding: 17px 16px; }
  .notice-card__excerpt { -webkit-line-clamp: 2; font-size: 0.84rem; line-height: 1.55; }
  .notice-card__meta { gap: 8px; padding-top: 10px; font-size: 0.72rem; }
  .notice-pin { padding: 4px 7px; font-size: 0.66rem; }
  .notice-detail__head { padding-top: 28px; }
  .notice-detail__content { padding: 30px 2px 46px; font-size: 1rem; }
}

@media (max-width: 430px) {
  .notice-card h3 { margin: 5px 0 7px; font-size: 1rem; }
  .notice-card__excerpt { -webkit-line-clamp: 2; }
  .notice-card__meta span:last-child { display: none; }
}
