@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css');

/* =========================================
   1. 기본 레이아웃 및 폰트 세팅
========================================= */
body {
  margin: 0;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #FFFFFF;
  color: #000000;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

/* =========================================
   2. 상단 고정 헤더 영역 (프로그램 상세 페이지와 1:1 매칭)
========================================= */
.fixed-header-wrapper {
  position: sticky;
  top: 0;                     
  z-index: 100;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #EAEAEA;
}

.fixed-header-inner {
  max-width: 1250px;
  margin: 0 auto;
  padding: 40px 4% 15px 4%;
}

.info-top-bar {
  display: flex;
  align-items: center;
  gap: 20px;
}

.info-prefix {
  font-size: 16px;
  font-weight: 900;
  color: #111111;
  letter-spacing: 2px;
  padding-right: 20px;
  border-right: 1px solid #DDDDDD;
}

.info-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  color: #111111;
  cursor: pointer;
}

/* =========================================
   3. 메인 컨테이너 및 사이드바
========================================= */
.container {
  max-width: 1250px;
  margin: 0 auto;
  padding: 50px 4% 120px 4%; 
  display: flex;
  gap: 60px;
  width: 100%;
  box-sizing: border-box;
}

.sidebar {
  width: 200px;
  min-width: 200px;
  display: flex;
  flex-direction: column;
}

.menu-button {
  width: 100%;
  padding: 12px;
  text-align: center;
  background-color: #FAFAFA;
  border: 1px solid #EAEAEA;
  font-size: 15px;
  font-weight: 600;
  color: #444444;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.menu-button:hover {
  background-color: #EEEEEE;
}

/* =========================================
   4. 우측 상세 콘텐츠 영역
========================================= */
.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.notice-meta-section {
  width: 100%;
  max-width: 800px;
}

.notice-title {
  font-size: 32px;
  font-weight: 700;
  color: #111111;
  margin: 0 0 25px 0;
  letter-spacing: -1px;
  line-height: 1.3;
}

.notice-meta-section ul {
  list-style: none;
  padding: 0;
  margin: 0 0 40px 0;
  border-top: 2px solid #111111;
}

.notice-meta-section ul li {
  display: flex;
  align-items: center;
  font-size: 15px;
  line-height: 1.6;
  color: #444444;
  padding: 16px 0;
  border-bottom: 1px solid #EAEAEA;
}

.notice-meta-section li strong {
  display: inline-block;
  color: #000000;
  font-weight: 600;
  width: 110px;
  min-width: 110px;
}

.important-badge {
  background-color: #000000;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 2px;
}

/* 이미지 영역 */
.notice-image {
  width: 100%;
  max-width: 800px;
  margin-bottom: 35px;
}

.notice-image img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
}

/* 에디터 본문 출력 영역 */
.notice-body {
  width: 100%;
  max-width: 800px;
}

.text {
  font-size: 15.5px;
  line-height: 1.8;
  color: #333333;
  margin-bottom: 60px;
  overflow-x: auto;
  word-break: break-word;
  white-space: pre-wrap;
  max-width: 100%;
  box-sizing: border-box;
}

/* =========================================
   5. 하단 이전글 / 다음글 탐색 바
========================================= */
.notice-bottom-bar {
  border-top: 1px solid #111111;
  margin-top: 20px;
  width: 100%;
  max-width: 800px;
}

.nav-links {
  display: flex;
  flex-direction: column;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #EAEAEA;
  font-size: 14.5px;
}

.nav-label {
  width: 100px;
  min-width: 100px;
  font-weight: 600;
  color: #666666;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-item a {
  color: #111111;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-item a:hover {
  color: #666666;
  text-decoration: underline;
}

footer {
  flex-shrink: 0;
  margin-top: auto;
}

/* =========================================
   6. 반응형 브레이크포인트
========================================= */
@media screen and (max-width: 768px) {
  .fixed-header-inner {
    padding-top: 20px;
  }
  .info-title {
    font-size: 20px;
  }
  .container {
    flex-direction: column;
    gap: 30px;
    padding-top: 30px;
  }
  .sidebar {
    width: 100%;
    min-width: 100%;
  }
  .notice-image, .notice-meta-section, .notice-body, .notice-bottom-bar {
    max-width: 100%;
  }
  .notice-title {
    font-size: 24px;
  }
  .nav-label {
    width: 80px;
    min-width: 80px;
  }
}