/* Q&A 게시판 스타일 - 2025-10-30 (최종) */

/* 상단 리본 배너 X 버튼 그림자 제거 */
.top_ribbon_banner button {
  box-shadow: none !important;
  outline: none !important;
  border: none !important;
  background: transparent !important;
}

/* 상단 GNB 메뉴 영역 스타일 보호 */
.gnb input[type="text"],
.top_menu_list input[type="text"],
#gnb input[type="text"],
.menu_area input[type="text"],
.top_main_search input[type="text"],
.top_main_search .search_input,
.search_wrap input[type="text"],
.search_wrap .search_input,
input.search_input {
  border: 2px solid transparent !important;
  background-image: linear-gradient(#fff, #fff),
    linear-gradient(45deg, #00d096, #0034e2) !important;
  background-origin: border-box !important;
  background-clip: content-box, border-box !important;
  box-shadow: none !important;
  outline: none !important;
}

/* GNB 검색창 focus 상태 보호 */
.gnb input[type="text"]:focus,
.top_menu_list input[type="text"]:focus,
#gnb input[type="text"]:focus,
.menu_area input[type="text"]:focus,
.top_main_search input[type="text"]:focus,
.top_main_search .search_input:focus,
.search_wrap input[type="text"]:focus,
.search_wrap .search_input:focus,
input.search_input:focus {
  border-color: rgba(229, 103, 23, 0.8) !important;
  box-shadow: 0 1px 1px rgba(229, 103, 23, 0.075) inset,
    0 0 3px rgba(229, 103, 23, 0.6) !important;
  outline: 0 none !important;
}

.gnb button,
.top_menu_list button,
#gnb button,
.menu_area button,
.all_menu_btn,
.open_all_menu {
  box-shadow: none !important;
  outline: none !important;
  border: none !important;
}

/* 컨텐츠 전체 영역 - 전체 화면 */
.content-wrapper {
  padding-left: 0 !important;
  margin-left: 0 !important;
  width: 100% !important;
  max-width: none !important;
  background-color: #fff;
}

/* 제목과 검색 영역 - 가운데 정렬된 컨테이너 */
.content-header {
  padding: 30px 0 !important;
  margin: 0 auto !important;
  max-width: 1400px !important;
  width: 100% !important;
}

.content-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* padding: 0 60px; */
}

.content-header h1 {
  font-size: 32px;
  font-weight: 700;
  padding-left: 10px;
  color: #111827;
  margin: 0;
  letter-spacing: -0.5px;
}

/* 검색 블록 */
.header-search-block {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-search-block input[type="text"] {
  padding: 8px 16px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 14px;
  width: 300px;
  height: 40px;
}

.header-search-block .btn-search {
  padding: 8px 24px;
  background: #374151;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  height: 40px;
  transition: all 0.2s;
}

.header-search-block .btn-search:hover {
  background: #1f2937;
}

/* 메인 콘텐츠 영역 */
.content {
  padding: 0 !important;
  margin: 0 auto !important;
  max-width: 1400px !important;
  width: 100% !important;
}

.container-fluid {
  /* padding: 0 60px !important; */
  max-width: none !important;
}

.card {
  border: none !important;
  box-shadow: none !important;
}

.card-body {
  padding: 0 !important;
}

/* 기존 검색 영역 숨기기 */
.search-action-container {
  display: none !important;
}

.search-form-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-form-group input[type="text"] {
  padding: 6px 12px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 14px;
  min-width: 250px;
  height: 36px;
}

.btn-search,
.btn-write {
  padding: 6px 16px;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
  height: 40px;
  line-height: 24px;
}

.btn-search:hover,
.btn-write:hover {
  background: #2563eb;
  color: white;
}

.btn-write {
  background: #10b981;
}

.btn-write:hover {
  background: #059669;
}

/* Q&A 테이블 - 심플 디자인 */
.qna-table-container {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.qna-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.qna-table thead {
  background: #f9fafb;
  border-bottom: 2px solid #e5e7eb;
}

.qna-table thead th {
  padding: 10px 12px;
  color: #374151;
  font-weight: 600;
  text-align: center;
  border: none;
  font-size: 13px;
}

.qna-table tbody tr {
  border-bottom: 1px solid #f3f4f6;
  transition: background-color 0.15s;
}

.qna-table tbody tr:hover {
  background-color: #f9fafb;
}

.qna-table tbody td {
  padding: 10px 12px;
  text-align: center;
  color: #4b5563;
  vertical-align: middle;
}

.qna-table tbody td.left {
  text-align: left;
  padding-left: 16px;
}

/* 제목 링크 스타일 */
.qna-table tbody td a {
  color: #1f2937;
  text-decoration: none;
  transition: color 0.2s;
}

.qna-table tbody td a:hover {
  color: #3b82f6;
}

/* 제목 텍스트 롤오버 효과 */
.qna-title-link {
  color: #1f2937;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-block;
  position: relative;
}

.qna-title-link:hover {
  color: #3b82f6;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 클릭 가능한 행의 제목 */
.qna-row:hover .qna-title-link {
  color: #2563eb;
}

/* 비활성 제목 (권한 없음) */
.qna-title-disabled {
  color: #9ca3af;
  cursor: not-allowed;
}

.badge-answer {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  margin-right: 6px;
}

.badge-answer.completed {
  background: #d1fae5;
  color: #065f46;
}

/* 페이지네이션 - 깨짐 완전 해결 */
.pagination {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  padding: 10px 0 !important;
  gap: 6px !important;
  list-style: none !important;
  margin: 0 !important;
}

.pagination li {
  list-style: none !important;
  display: inline-block !important;
  margin: 0 !important;
  padding: 0 !important;
}

.pagination li a,
.pagination li span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 36px !important;
  height: 36px !important;
  padding: 0 10px !important;
  border: 1px solid #d1d5db !important;
  border-radius: 4px !important;
  color: #4b5563 !important;
  text-decoration: none !important;
  transition: all 0.2s !important;
  font-weight: 500 !important;
  background: white !important;
  font-size: 14px !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
}

.pagination li a:hover {
  background: #3b82f6 !important;
  color: white !important;
  border-color: #3b82f6 !important;
}

.pagination li.active a,
.pagination li.active span {
  background: #3b82f6 !important;
  color: white !important;
  border-color: #3b82f6 !important;
  font-weight: 600 !important;
}
