/* 공통 페이지 스타일 - 공지사항, 자료실 등에서 공유 */

/* ==================== 헤더 ==================== */
header {
  padding: 22px 0;
  border-bottom: 1px solid #dfe1e4;
  width: 100%;
}

.header__container {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  padding: 0 120px;
  display: flex;
  justify-content: space-between;
}

.header__left {
  display: flex;
  align-items: center;
  gap: 2px;
  cursor: pointer;
}

.header__left img {
  height: 18px;
}

.header__left span {
  font-size: 10px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.4);
  margin-top: 10px;
}

.header__right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header__right ul {
  display: flex;
}

.header__right ul li {
  padding: 0 20px;
}

.header__right ul li a {
  font-size: 18px;
  font-weight: 500;
  color: #231815;
}

.header__right ul li a.disabled {
  color: #989898;
  pointer-events: none;
}

.header__right__loginBtn {
  padding: 10px 16px;
  cursor: pointer;
  border: 1px solid #dededf;
  font-size: 14px;
  font-weight: 500;
  color: #5e5e5e;
  background: #fff;
  transition: background 0.3s ease;
}

.header__right__loginBtn:hover {
  background: #dededf;
  color: #231815;
}

/* ==================== 푸터 ==================== */
footer {
  padding: 20px 0;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  padding: 20px 120px;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer__divder {
  width: 100%;
  height: 1px;
  border-bottom: 1px solid #dededf;
}

.footer__top nav {
  display: flex;
  gap: 40px;
}

.footer__top nav a {
  font-size: 18px;
  font-weight: 500;
  color: #43443e;
}

.footer__top nav a.disabled {
  color: #989898;
  pointer-events: none;
}

.footer__top__logos {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer__top__logos img {
  height: 28px;
  object-fit: contain;
}

.footer__middle {
  padding: 20px 120px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer__middle p {
  font-size: 16px;
  font-weight: 500;
  color: #989898;
}

/* ==================== 페이지 컨테이너 (공통) ==================== */
.page__container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 120px 100px 120px;
  min-height: calc(100vh - 300px);
}

.page__header {
  text-align: center;
  margin-bottom: 60px;
}

.page__header h1 {
  font-family: 'SUIT', sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: #231815;
  margin-bottom: 16px;
}

.page__header p {
  font-size: 18px;
  font-weight: 500;
  color: #989898;
}

/* ==================== 테이블 (공통) ==================== */
.page__list {
  border-top: 2px solid #231815;
  border-bottom: 1px solid #dededf;
  margin-bottom: 40px;
}

.page__table {
  width: 100%;
  border-collapse: collapse;
}

.page__table thead {
  background: #fff;
  border-bottom: 1px solid #dededf;
}

.page__table thead th {
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #231815;
  text-align: center;
}

.page__table tbody tr {
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.15s ease;
  cursor: pointer;
}

.page__table tbody tr:hover {
  background: #fafafa;
}

.page__table tbody td {
  padding: 18px 20px;
  font-size: 14px;
  color: #231815;
  text-align: center;
}

/* ==================== 상세 페이지 (공통) ==================== */
.detail__container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 120px 100px 120px;
  min-height: calc(100vh - 300px);
}

.detail__header {
  padding: 30px 0 20px 0;
  border-bottom: 1px solid #dededf;
  margin-bottom: 30px;
}

.detail__title {
  font-size: 24px;
  font-weight: 700;
  color: #231815;
  line-height: 140%;
  margin-bottom: 16px;
}

.detail__meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.detail__meta__item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #666;
}

.detail__meta__label {
  font-weight: 500;
  color: #666;
}

.detail__meta__value {
  font-weight: 400;
  color: #666;
}

/* 상세 콘텐츠 */
.detail__content {
  font-size: 15px;
  line-height: 170%;
  color: #333;
  padding: 20px 0;
  min-height: 200px;
}

/* HTML 콘텐츠 스타일 */
.detail__content h1,
.detail__content h2,
.detail__content h3 {
  font-weight: 700;
  margin-top: 1em;
  margin-bottom: 0.5em;
  color: #231815;
}

.detail__content h1 {
  font-size: 2em;
}

.detail__content h2 {
  font-size: 1.5em;
}

.detail__content h3 {
  font-size: 1.17em;
}

.detail__content p {
  margin: 10px 0;
  color: #333;
}

.detail__content ul,
.detail__content ol {
  margin: 14px 0;
  padding-left: 20px;
}

.detail__content ul li,
.detail__content ol li {
  margin: 6px 0;
  color: #333;
  line-height: 160%;
}

.detail__content ul li {
  list-style-type: disc;
}

.detail__content ol li {
  list-style-type: decimal;
}

.detail__content strong {
  font-weight: 600;
  color: #231815;
}

.detail__content em {
  font-style: italic;
}

.detail__content a {
  color: #231815;
  text-decoration: underline;
}

.detail__content img {
  max-width: 100%;
  height: auto;
  margin: 1em 0;
}

/* 상세 페이지 액션 버튼 */
.detail__actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 50px;
  padding-top: 40px;
  border-top: 1px solid #dededf;
}

.detail__btn {
  padding: 10px 30px;
  border: 1px solid #231815;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  color: #231815;
  cursor: pointer;
  transition: all 0.2s ease;
}

.detail__btn:hover {
  background: #231815;
  color: #fff;
}

.detail__btn--primary {
  background: #231815;
  color: #fff;
}

.detail__btn--primary:hover {
  background: #000;
}
