@import url("../../epic/theme_tokens.css");
@import url("../../common.css");

body {
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: #1e2224;
  font-family: "Pretendard", sans-serif;
}

.board-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

@media (min-width: 1300px) {
  .desktop-fixed {
    width: 1216px;
    max-width: 1216px;
    margin: 0 auto;
  }
}

.board-hero {
  width: 100%;
  height: 298px;
  background: #0b2d1f;
  background-image: url("/resources/assets/images/Common/background.svg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.board-hero-inner {
  position: relative;
  width: 100%;
  max-width: 1216px;
  margin: 0 auto;
  padding: 160px 0 80px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
}

.board-hero-title {
  font-family: "SUITE", sans-serif;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
}

.board-hero-subtitle {
  margin: 0;
  color: #e8f2ed;
  font-size: 15px;
  font-weight: 400;
  line-height: 20px;
  max-width: 820px;
}

.board-hero-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}

.board-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  margin-top: -36px;
}

.breadcrumb-icon-home {
  color: var(--Gray-300, #c5c9cc);
  font-size: 16px;
}

.breadcrumb-separator-icon {
  color: var(--Gray-300, #c5c9cc);
  font-size: 13px;
}

.breadcrumb-home {
  color: var(--Gray-200, #d8dcde);
  font-size: 14px;
  font-weight: 600;
  line-height: 14px;
}

.breadcrumb-board {
  color: var(--Gray-300, #c5c9cc);
  font-size: 14px;
  font-weight: 300;
  line-height: 14px;
}

.breadcrumb-current {
  color: var(--Indigo-200, #bebdef);
  font-size: 14px;
  font-weight: 700;
  line-height: 14px;
}

.board-content {
  width: 100%;
  padding: 56px 0 120px;
  margin: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.board-section-title {
  margin: 0;
  color: var(---, #0e0f11);
  font-family: var(---, SUITE);
  font-size: var(---4-4, 24px);
  font-style: normal;
  font-weight: 800;
  line-height: var(---3-3, 28px);
}

@media (max-width: 1299px) {
  .board-hero-inner {
    padding: 144px 24px 72px;
    align-items: center;
    text-align: center;
    gap: 8px;
  }

  .board-content {
    padding: 40px 24px 80px;
    gap: 24px;
  }

  .board-search-form {
    width: 100%;
    gap: 8px;
    padding-bottom: 16px;
  }

  .board-search-field input {
    min-width: 0;
    height: 42px;
  }

  .board-filter-select {
    flex: 0 0 105px;
  }

  .board-filter-toggle {
    height: 42px;
  }

  .board-card {
    padding: 18px 16px;
  }
  .board-hero-title {
    font-size: 32px;
  }
  .board-hero-meta-row {
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .board-hero-subtitle {
    max-width: none;
    display: none;
  }
  .breadcrumb-icon-home {
    font-size: 14px;
  }
  .board-breadcrumb {
    margin-top: 0;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    gap: 3px;
  }
  .breadcrumb-home {
    font-size: 12px;
  }

  .breadcrumb-board {
    font-size: 12px;
  }

  .breadcrumb-current {
    font-size: 12px;
  }
}

.board-search-form {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--Gray-125, #d0d6da);
}

.board-count {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
}

.board-count-icon {
  color: var(--Indigo-400, #7a78f0);
  font-size: 14px;
}

.count-label {
  color: var(--Gray-500, #586269);
  font-size: 16px;
  font-weight: 400;
}

.board-count-number {
  color: var(---, #5856d6);
  font-family: var(---, Montserrat);
  font-size: var(---5-5, 20px);
  font-style: normal;
  font-weight: 600;
  line-height: var(---5-5, 20px);
}

.board-count-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(---, 8px);
  background: var(--Gray-050, #f4f6f8);
  height: 52px;
  box-sizing: border-box;
}

.board-search-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 260px;
}

.board-search-field input {
  width: 100%;
  min-width: 260px;
  height: 44px;
  padding: 10px 36px 10px 14px;
  border-radius: 10px;
  border: 1px solid var(---, #9ba4ab);
  background: #fff;
  color: #0e0f11;
  font-family: var(---, Pretendard);
  font-size: 15px;
  font-style: normal;
  font-weight: 300;
  line-height: 20px;
  box-sizing: border-box;
}

.board-search-field input::placeholder {
  color: #6c7680;
}

.board-search-field input:focus {
  border-radius: 10px;
  border: 1.4px solid var(---, #5856d6);
  box-shadow: 0 2px 2px 0 var(---LV-1, rgba(14, 15, 17, 0.03)),
    0 4px 6px 0 var(---LV-2, rgba(14, 15, 17, 0.05));
  backdrop-filter: blur(50px);
  outline: none;
}

.board-search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 6px;
  color: var(---, #c2c8cc);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.board-search-clear.is-active {
  color: #5856d6;
}

.board-search-clear .icon {
  font-size: 14px;
}

.board-filter-select {
  flex: 0 0 198px;
}

.board-search-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  border: none;
  background: var(---, #5856d6);
  color: var(---, #fff);
  font-family: var(---, Pretendard);
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: 18px;
  cursor: pointer;
}

.board-search-button:hover {
  background: var(---, #3d3bc9);
}

.board-search-button .icon {
  font-size: 16px;
}

.board-search-label {
  display: inline-block;
}

.board-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.board-row {
  padding-bottom: 24px;
  border-bottom: 1px solid var(---, #c2c8cc);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.board-row a.board-row-link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}

.board-row a.board-row-link:focus-visible {
  outline: 2px solid var(---, #5856d6);
  outline-offset: 2px;
  border-radius: 6px;
  padding: 2px;
}

.board-row-title {
  margin: 0;
  font-family: var(---, Pretendard);
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 26px;
  color: #0e0f11;
  transition: color 120ms ease;
}

.board-row:hover .board-row-title {
  color: #5856d6;
}

.board-row-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(---, #586269);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.board-meta-group {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.board-meta-icon {
  font-size: 16px;
  color: var(---, #586269);
}

.board-meta-label {
  font-weight: 600;
}

.board-meta-value {
  font-weight: 300;
}

.board-pagination {
  margin-top: 4px;
}

.board-pagination-row {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}

.board-pagination-row .board-pagination {
  flex: 1 1 auto;
  width: 100%;
  margin-top: 0;
  justify-content: center;
}

.board-register-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 16px;
  border: none;
  border-radius: 10px;
  background: var(---, #5856d6);
  color: #fff;
  font-family: var(---, Pretendard);
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: 18px;
  cursor: pointer;
  box-shadow: 0 2px 2px 0 var(---LV-1, rgba(14, 15, 17, 0.03)),
    0 4px 6px 0 var(---LV-2, rgba(14, 15, 17, 0.05));
}

.board-register-btn .icon {
  font-size: 18px;
}

.board-register-btn:hover {
  background: var(---, #3d3bc9);
}

.board-empty {
  text-align: center;
  padding: 32px;
  border-radius: 12px;
  border: 1px dashed var(--Gray-150, #d7dde1);
  color: var(--Gray-500, #586269);
  background: #fbfcfd;
  font-weight: 600;
}

/* 공지 상세 */
.board-detail {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 56px 0 120px;
  box-sizing: border-box;
}

.board-detail-inner {
  width: 100%;
  max-width: 1216px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.board-detail-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(---, #6c7680);
}

.board-detail-title {
  margin: 0;
  font-family: "SUITE", sans-serif;
  font-size: 32px;
  font-weight: 800;
  line-height: 42px;
  color: #0e0f11;
}

.board-detail-meta {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.board-detail-meta-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6c7680;
  font-size: 16px;
  line-height: 24px;
}

.board-detail-meta-group .icon {
  font-size: 20px;
  color: #1e2224;
}

.board-detail-meta-group .meta-label {
  font-weight: 600;
}

.board-detail-meta-group .meta-value {
  font-weight: 400;
}

.board-detail-body {
  padding-bottom: 32px;
  border-bottom: 1px solid var(---, #6c7680);
}

.board-detail-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-family: "Pretendard", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: #0e0f11;
}

.board-detail-content .detail-paragraph {
  margin: 0;
}

.board-detail-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.board-detail-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-family: "Pretendard", sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 18px;
  transition: background 120ms ease;
}

.board-detail-btn .icon {
  font-size: 18px;
}

.board-detail-btn.btn-outline {
  background: rgba(88, 86, 214, 0.1);
  color: #282691;
}

.board-detail-btn.btn-outline:hover {
  background: rgba(61, 59, 201, 0.15);
}

.board-detail-btn.btn-primary {
  background: #5856d6;
  color: #ffffff;
}

.board-detail-btn.btn-primary:hover {
  background: #3d3bc9;
}

.board-detail-btn.btn-dark {
  background: #0e0f11;
  color: #ffffff;
}

.board-detail-btn.btn-dark:hover {
  background: #0a0b0d;
}

.faq-answer-block {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  width: 100%;
  padding-bottom: 32px;
  border-bottom: 1px solid var(---, #6c7680);
}

.faq-answer-icon {
  display: flex;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  aspect-ratio: 1 / 1;
  border-radius: var(---, 8px);
  background: var(---, rgba(88, 86, 214, 0.05));
  color: #5856d6;
  font-family: "Pretendard", sans-serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 20px;
  text-align: center;
  flex-shrink: 0;
}

.faq-answer-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: "Pretendard", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 21px;
  color: #0e0f11;
}

.faq-answer-body p {
  margin: 0;
}

.is-hidden {
  display: none !important;
}

/* 공지 수정 */
.board-edit {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 56px 0 120px;
  box-sizing: border-box;
}

.board-edit-inner {
  width: 100%;
  max-width: 1216px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
}

.board-edit-header {
  width: 100%;
  max-width: 900px;
  border-bottom: 2px solid var(---, #6c7680);
  padding-bottom: 24px;
}

.board-edit-title {
  margin: 0;
  font-family: "SUITE", sans-serif;
  font-size: 32px;
  font-weight: 800;
  line-height: 42px;
  color: #0e0f11;
}

.board-edit-form {
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.board-edit-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.edit-label {
  font-family: "Pretendard", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 14px;
  color: #0e0f11;
}

.edit-input-wrap {
  width: 100%;
  position: relative;
}

.edit-input {
  width: 100%;
  height: 44px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.2px solid var(---, #9ba4ab);
  background: #fff;
  font-family: "Pretendard", sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 20px;
  color: #6c7680;
  box-sizing: border-box;
}

.edit-input:focus {
  outline: none;
  border: 1.4px solid var(---, #5856d6);
  box-shadow: 0 2px 2px 0 var(---LV-1, rgba(14, 15, 17, 0.03)),
    0 4px 6px 0 var(---LV-2, rgba(14, 15, 17, 0.05));
}

.edit-input-clear {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  padding: 6px;
  cursor: pointer;
  color: #9ba4ab;
}

.edit-input-clear .icon {
  font-size: 16px;
}

.edit-textarea-wrap {
  position: relative;
}

.edit-textarea {
  width: 100%;
  min-height: 240px;
  padding: 13px 40px 13px 14px;
  border-radius: 10px;
  border: 1.2px solid var(---, #9ba4ab);
  background: #fff;
  font-family: "Pretendard", sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 20px;
  color: #6c7680;
  box-sizing: border-box;
  resize: vertical;
}

.edit-textarea:focus {
  outline: none;
  border: 1.4px solid var(---, #5856d6);
  box-shadow: 0 2px 2px 0 var(---LV-1, rgba(14, 15, 17, 0.03)),
    0 4px 6px 0 var(---LV-2, rgba(14, 15, 17, 0.05));
}

.edit-input.has-value,
.edit-textarea.has-value {
  color: #0e0f11;
}

.edit-textarea-clear {
  position: absolute;
  right: 8px;
  top: 8px;
  border: none;
  background: none;
  padding: 6px;
  cursor: pointer;
  color: #9ba4ab;
}

.edit-textarea-clear .icon {
  font-size: 16px;
}

.edit-input:focus ~ .edit-input-clear,
.edit-textarea:focus ~ .edit-textarea-clear {
  color: #5856d6;
}

.edit-attach {
  width: 100%;
  background: rgba(155, 164, 171, 0.1);
  border-radius: 10px;
  padding: 14px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.edit-attach-drop {
  width: 100%;
  position: relative;
  border-radius: 4px;
  border: 2px dashed rgba(155, 164, 171, 0.65);
  background: rgba(255, 255, 255, 0.2);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  box-sizing: border-box;
}

.edit-attach-drop.is-dragover {
  border-color: var(---, #5856d6);
  background: rgba(88, 86, 214, 0.06);
}

.edit-attach-drop .icon {
  font-size: 20px;
  color: #0e0f11;
}

.edit-attach-drop p {
  margin: 0;
  font-family: "Pretendard", sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 20px;
  color: #6c7680;
}

.edit-attach-drop input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.edit-attach-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
}

.edit-attach-list:empty {
  display: none;
  gap: 0;
}

.edit-attach-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Pretendard", sans-serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 14px;
  color: #1e2224;
}

.edit-attach-chip .icon {
  font-size: 16px;
  cursor: pointer;
  color: #ff3b30;
}

.board-edit-actions {
  width: 100%;
  max-width: 900px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
@media (max-width: 1299px) {
  .board-search-form {
    gap: 8px;
  }

  .board-filter-select {
    flex: 0 0 105px;
  }
  .board-list {
    gap: 24px;
  }

  .board-search-field input {
    min-width: 0;
    height: 42px;
  }

  .board-detail-body {
    padding-bottom: 24px;
  }

  .board-search-button {
    padding: 0 12px;
    width: 44px;
    height: 44px;
  }

  .board-search-label {
    display: none;
  }

  .detail-paragraph {
    font-weight: 400;
    font-size: 15px;
  }

  .board-count-row {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
    width: 100%;
    height: 52px;
  }

  .board-register-btn {
    width: 100%;
    justify-content: center;
  }

  .board-detail {
    padding: 40px 24px 80px;
  }

  .board-detail-inner {
    gap: 24px;
  }

  .board-detail-title {
    font-size: var(---2-2, 28px);
    line-height: var(---2-2, 39px);
  }

  .board-detail-meta {
    gap: 12px;
  }

  .board-detail-meta-group {
    font-size: 15px;
  }

  .board-detail-meta-group .icon {
    font-size: 18px;
  }

  .board-detail-actions {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    max-width: none;
    flex-wrap: wrap;
  }

  .board-detail-btn {
    justify-content: center;
    flex: 1 1 0;
    width: 100%;
  }

  .board-detail-content {
    font-size: 15px;
    line-height: 21px;
    color: #0e0f11;
  }

  .board-edit {
    padding: 40px 24px 80px;
  }

  .board-edit-inner {
    gap: 24px;
    align-items: stretch;
  }

  .board-edit-header,
  .board-edit-form,
  .board-edit-actions {
    max-width: none;
    width: 100%;
  }

  .board-edit-title {
    font-size: 28px;
    line-height: 39px;
  }

  .board-edit-actions {
    gap: 6px;
    flex-wrap: wrap;
  }

  .faq-answer-block {
    gap: 8px;
    padding-bottom: 24px;
  }

  .faq-answer-icon {
    width: 40px;
    height: 40px;
    font-size: 22px;
    line-height: 20px;
  }

  .faq-answer-body {
    font-size: 14px;
    line-height: 20px;
  }
}
