/* 공지사항 페이지 - Figma 1:734 */
:root {
  --color-text: #14181f;
  --color-text-muted: #64748b;
  --color-num: #94a3b8;
  --color-border: #c5cdd8;
  --color-border-light: #f1f5f9;
  --color-border-input: #e2e8f0;
  --color-input-bg: #f8fafc;
  --color-placeholder: #757575;
  --color-header-bg: #eef1f4;
  --font-sans: "Pretendard", "Noto Sans KR", -apple-system, BlinkMacSystemFont, sans-serif;
  --page-max: 1920px;
  --content-max: 960px;
  --page-padding: clamp(24px, 6.25vw, 120px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.notice-page {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  overflow-x: hidden;
}

/* ========== HEADER (Figma 1:789) ========== */
.notice-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-header-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 12px var(--page-padding) 13px;
}

.notice-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 34px;
}

.notice-header__brand {
  flex-shrink: 0;
  width: 170px;
  height: 34px;
}

.notice-header__logo {
  width: 170px;
  height: 34px;
  object-fit: cover;
  object-position: left center;
}

.notice-header__menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-header-bg);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notice-header__menu-icon,
.notice-header__menu-icon::before,
.notice-header__menu-icon::after {
  display: block;
  width: 20px;
  height: 2px;
  background: #3d4754;
  border-radius: 1px;
  transition: transform 0.25s, opacity 0.25s;
}

.notice-header__menu-icon {
  position: relative;
}

.notice-header__menu-icon::before,
.notice-header__menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.notice-header__menu-icon::before {
  top: -6px;
}

.notice-header__menu-icon::after {
  top: 6px;
}

.notice-header__menu-btn[aria-expanded="true"] .notice-header__menu-icon {
  background: transparent;
}

.notice-header__menu-btn[aria-expanded="true"] .notice-header__menu-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.notice-header__menu-btn[aria-expanded="true"] .notice-header__menu-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.notice-header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.notice-header__nav a {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 800;
  color: #3d4754;
  letter-spacing: 0.78px;
  text-transform: uppercase;
  line-height: normal;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.notice-header__nav a:hover {
  opacity: 0.75;
}

.notice-header__nav a.is-active {
  color: #3d4754;
  position: relative;
}

.notice-header__nav a.is-active::before {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 2px;
  background: #3d4754;
}

/* ========== HERO (Figma 1:780) ========== */
.notice-hero {
  width: 100%;
  background: #fff;
}

.notice-hero__intro {
  display: flex;
  flex-direction: column;
  gap: 25px;
  align-items: flex-start;
  max-width: 1310px;
  margin: 0 auto;
  padding: 64px 24px 46px;
}

.notice-hero__title {
  font-family: var(--font-sans);
  font-size: 36px;
  font-weight: 700;
  color: #000;
  line-height: 1.5;
}

.notice-hero__desc {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  color: rgba(5, 5, 5, 0.72);
  line-height: 30.6px;
  letter-spacing: 0.16px;
  max-width: 407px;
}

.notice-hero__banner {
  position: relative;
  width: 100%;
  height: 360px;
  background: #f4f4f4;
  overflow: hidden;
}

.notice-hero__img {
  position: absolute;
  left: -67.97%;
  top: -9.12%;
  width: 328%;
  max-width: none;
  height: auto;
  min-height: 110%;
  object-fit: cover;
  object-position: left center;
  pointer-events: none;
}

/* ========== BOARD (Figma 1:737) ========== */
.notice-main {
  width: 100%;
}

.notice-board {
  background: #fff;
  padding: 96px var(--page-padding);
  max-width: 1400px;
  margin: 0 auto;
}

.notice-board__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.notice-board__toolbar {
  display: flex;
  justify-content: flex-end;
  min-height: 42px;
}

.notice-search {
  position: relative;
  width: 100%;
  max-width: 320px;
}

.notice-search__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.notice-search__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.notice-search__input {
  width: 100%;
  height: 42px;
  padding: 13px 17px 13px 49px;
  font-family: var(--font-sans);
  font-size: 13.3px;
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-input-bg);
  border: 1px solid var(--color-border-input);
  border-radius: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.notice-search__input::placeholder {
  color: var(--color-placeholder);
}

.notice-search__input:focus {
  border-color: #94a3b8;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.2);
}

/* ---------- List ---------- */
.notice-list {
  background: #fff;
  border-top: 2px solid var(--color-text);
  padding-top: 2px;
}

.notice-item {
  border-bottom: 1px solid var(--color-border-light);
}

.notice-item__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 16px 25px;
  transition: background 0.2s;
}

.notice-item__link:hover {
  background: #f8fafc;
}

.notice-item__num {
  flex-shrink: 0;
  width: 64px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 800;
  color: var(--color-num);
  letter-spacing: 0.16px;
  line-height: normal;
}

.notice-item__title {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: 0.16px;
  line-height: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notice-item__meta {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 22px;
}

.notice-item__meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-muted);
  letter-spacing: 0.16px;
  line-height: normal;
  white-space: nowrap;
}

.notice-item__meta-item img {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .notice-item__link {
    flex-wrap: wrap;
  }

  .notice-item__title {
    flex: 1 1 100%;
    order: 2;
    white-space: normal;
  }

  .notice-item__num {
    order: 1;
    width: auto;
    min-width: 32px;
  }

  .notice-item__meta {
    order: 3;
    flex-wrap: wrap;
    gap: 12px 22px;
  }
}

@media (max-width: 768px) {
  .notice-header__menu-btn {
    display: flex;
  }

  .notice-header__nav {
    position: fixed;
    top: 59px;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 24px;
    background: var(--color-header-bg);
    border-top: 1px solid var(--color-border);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 99;
  }

  .notice-header__nav.is-open {
    transform: translateX(0);
  }

  .notice-header__nav a {
    padding: 16px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--color-border);
  }

  .notice-hero__intro {
    padding: 40px 24px 32px;
  }

  .notice-hero__title {
    font-size: clamp(28px, 6vw, 36px);
  }

  .notice-hero__desc {
    font-size: 16px;
    line-height: 1.7;
  }

  .notice-hero__banner {
    height: 240px;
  }

  .notice-hero__img {
    left: -45%;
    top: -12%;
    width: 220%;
    min-height: 120%;
  }

  .notice-board {
    padding: 64px 24px;
  }

  .notice-board__toolbar {
    justify-content: stretch;
  }

  .notice-search {
    max-width: none;
  }

  .notice-item__link {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 20px 12px;
  }

  .notice-item__num {
    width: auto;
  }

  .notice-item__title {
    order: unset;
    font-size: 16px;
  }

  .notice-item__meta {
    order: unset;
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .notice-item__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
