/* ========================================
   고객후기 게시판 스타일 - 웹진 형태
   ======================================== */

/* 페이지 전체 */
#bo_page {
  margin-top: 100px;
}

/* 페이지 헤더 배너 - 공지사항과 동일 */
.page-header {
  background: linear-gradient(135deg, #1a3a5c 0%, #2c5282 100%);
  padding: 60px 20px;
  text-align: center;
}

.page-title {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px 0;
  letter-spacing: -1px;
}

.page-desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

/* 컨테이너 */
.page-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 40px 20px 100px;
  background: #f8f9fa;
}

/* 카드 스타일 */
.board-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  margin-bottom: 20px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: #f8f9fa;
  border-bottom: 1px solid #eee;
}

.card-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.card-header h3 i {
  color: #00b9ff;
  margin-right: 8px;
}

.total-count {
  font-size: 14px;
  color: #666;
}

.card-body {
  padding: 25px;
}

/* ========================================
   웹진 리스트 스타일
   ======================================== */
.review-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.review-item {
  display: flex;
  gap: 25px;
  padding: 20px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  transition: all 0.2s;
}

.review-item:hover {
  border-color: #00b9ff;
  box-shadow: 0 4px 15px rgba(0, 185, 255, 0.1);
}

.review-chk {
  display: flex;
  align-items: center;
  padding-right: 10px;
}

.review-chk input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.review-thumb {
  flex: 0 0 280px;
  width: 280px;
  min-height: 200px;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f5;
}

.review-thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.review-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.review-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 12px 0;
  line-height: 1.4;
}

.review-title a {
  color: #333;
  text-decoration: none;
}

.review-title a:hover {
  color: #00b9ff;
}

.badge-new {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 8px;
  background: #ff5722;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 3px;
  vertical-align: middle;
}

.review-summary {
  flex: 1;
  font-size: 15px;
  line-height: 1.7;
  color: #666;
  margin: 0 0 15px 0;
}

.review-meta {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: #888;
}

.review-meta i {
  margin-right: 5px;
  color: #aaa;
}

/* 빈 리스트 */
.empty-list {
  padding: 80px 20px;
  text-align: center;
  color: #999;
}

.empty-list i {
  font-size: 48px;
  margin-bottom: 15px;
  color: #ddd;
}

.empty-list p {
  margin: 0;
  font-size: 16px;
}

/* 페이징 */
.pg_wrap { margin: 25px 0; text-align: center; }
.pg { display: inline-flex; gap: 3px; }
.pg a, .pg strong, .pg span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  font-size: 13px;
  color: #666;
  text-decoration: none;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
}
.pg a:hover { background: #f5f5f5; }
.pg .pg_current, .pg strong { background: #00b9ff; color: #fff; border-color: #00b9ff; }

/* 버튼 영역 */
.board-btns {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.btns-left, .btns-right { display: flex; gap: 8px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 5px;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-primary { background: #00b9ff; color: #fff; }
.btn-primary:hover { background: #0099dd; }

.btn-secondary { background: #6c757d; color: #fff; }
.btn-secondary:hover { background: #5a6268; }

.btn-info { background: #17a2b8; color: #fff; }
.btn-info:hover { background: #138496; }

.btn-danger { background: #dc3545; color: #fff; }
.btn-danger:hover { background: #c82333; }

.btn-gray { background: #e9ecef; color: #333; }
.btn-gray:hover { background: #ddd; }

/* ========================================
   뷰 페이지 스타일
   ======================================== */
.view-body { padding: 30px; }

.view-title {
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
}

.view-title h4 {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin: 0;
  line-height: 1.4;
}

.view-cate {
  display: inline-block;
  padding: 4px 12px;
  background: #00b9ff;
  color: #fff;
  border-radius: 4px;
  font-size: 13px;
  margin-bottom: 10px;
}

.view-info {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 15px 20px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 30px;
}

.view-info span {
  font-size: 14px;
  color: #666;
}

.view-info strong {
  color: #333;
  margin-right: 5px;
}

.view-content {
  padding: 30px 0;
  min-height: 200px;
  line-height: 1.8;
  font-size: 15px;
  color: #444;
}

.view-content img {
  max-width: 100%;
  height: auto;
}

.view-file {
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 30px;
}

.view-file strong {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  color: #333;
}

.view-file ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.view-file li { margin-bottom: 8px; }

.view-file a {
  color: #00b9ff;
  text-decoration: none;
  font-size: 14px;
}

.view-file a:hover { text-decoration: underline; }

.view-btns {
  display: flex;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

/* ========================================
   글쓰기 스타일
   ======================================== */
.write-body { padding: 30px; }

.write-row { margin-bottom: 20px; }
.write-row.row-half { display: flex; gap: 15px; }
.write-row.row-half .form-group { flex: 1; }
.write-row.row-2col { display: flex; gap: 15px; }
.write-row.row-2col .form-group { flex: 1; }

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.form-group .req { color: #ff5722; }

.form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
}

.form-input:focus { border-color: #00b9ff; outline: none; }

.write-link .form-input { margin-bottom: 10px; }

.write-file {
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.file-item { margin-bottom: 15px; }
.file-item:last-child { margin-bottom: 0; }

.file-item input[type="file"] {
  width: 100%;
  padding: 10px;
  border: 1px dashed #ccc;
  border-radius: 6px;
  background: #fff;
}

.file-exist {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
  background: #fff;
  border-radius: 4px;
  margin-top: 8px;
  font-size: 13px;
}

.content-options {
  display: flex;
  gap: 15px;
  margin-bottom: 10px;
}

.opt-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.write-btns {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.write-btns .btn {
  padding: 14px 50px;
  font-size: 15px;
}

/* ========================================
   모바일 반응형
   ======================================== */
@media (max-width: 768px) {
  .page-header { padding: 40px 15px; }
  .page-title { font-size: 28px; }
  .page-container { padding: 0 15px 40px; }
  
  .review-item { flex-direction: column; }
  .review-thumb { 
    flex: none;
    width: 100%;
    height: 200px;
  }
  .review-thumb img { height: 200px; }
  
  .write-body { padding: 20px; }
  .write-row.row-half { flex-direction: column; }
  .write-row.row-2col { flex-direction: column; }
  
  .view-btns { flex-direction: column; gap: 10px; }
  .btns-left, .btns-right { width: 100%; justify-content: center; }
}

/* 버튼 박스 스타일 */
.btn-outline {
  background: #fff;
  color: #333;
  border: 1px solid #ddd;
}

.btn-outline:hover {
  background: #f5f5f5;
  border-color: #ccc;
}
