/* =========================================================
   Search (Right Aligned)
   ========================================================= */

.board-search {
  max-width: 1100px;
  margin: 0 auto 12px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.board-search select,
.board-search input {
  height: 36px;
  padding: 0 10px;
  font-size: 14px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
}

.board-search input {
  width: 220px;
}

.board-search button {
  height: 36px;
  padding: 0 16px;
  background: #005EB8;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.board-search button:hover {
  background: #004a94;
}

/* =========================================================
   FAQ Accordion
   ========================================================= */

.faq-list {
  max-width: 1100px;
  margin: 0 auto;
  border-top: 2px solid #111;
}

.faq-item {
  border-bottom: 1px solid #d1d5db;
}

/* Question */
.faq-question {
  width: 100%;
  background: #ffffff;
  border: none;
  padding: 20px 24px;

  display: flex;
  align-items: center;
  gap: 16px;

  font-size: 16px;
  font-weight: 600;
  color: #111;

  cursor: pointer;
  text-align: left;
}

.q-mark {
  color: #005EB8;
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
}

.q-text {
  flex: 1;
  line-height: 1.4;
}

.toggle-icon {
  font-size: 22px;
  font-weight: 300;
  color: #111;
  transition: transform 0.25s ease;
}

/* Answer */
.faq-answer {
  display: none;
  background: #f3f4f6;
  padding: 24px 24px 24px 58px;
}

.faq-answer p {
  font-size: 15px;
  color: #444;
  line-height: 1.7;
}

/* Active */
.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .toggle-icon {
  transform: rotate(45deg); /* + → × */
}

/* =========================================================
   Pagination (Arrow Included)
   ========================================================= */

.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top:35px;
}

.pagination a {
  width: 30px;
  height: 30px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid #d1d5db;
  border-radius: 3px;

  font-size: 14px;
  font-weight: 500;
  color: #222;

  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pagination a:hover {
  background: #f1f5f9;
}

.pagination a.active {
  background: #fff;
  color: #0261b5;
  border: 1px solid #0261b5;
}

/* =========================
   Arrow Button Style
   ========================= */

.pagination a.arrow {
    font-size: 25px;
    font-weight: 100;
    color: #555;
    border-color: #c7d2fe;
    padding-bottom: 6px;
}

.pagination a.arrow:hover {
  background: #e8f0fe;
}

/* 비활성 화살표 */
.pagination a.arrow.disabled {
  color: #cbd5e1;
  border-color: #e5e7eb;
  background: #fff;
  pointer-events: none;
}
