.board-title {
  display: none;
}
.marine-board {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  font-family: "Inter", "Noto Sans KR", sans-serif;
  color: #333;
  box-sizing: border-box;
}
.marine-board .board-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
  letter-spacing: -0.3px;
}
.btn {
  padding: 9px 22px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition:
    opacity 0.2s,
    transform 0.1s;
  white-space: nowrap;
}
.btn:active {
  transform: scale(0.97);
}
.btn-primary {
  background: #0d8abc;
  color: #fff;
}
.btn-primary:hover {
  opacity: 0.88;
}
.btn-secondary {
  background: #7f8c8d;
  color: #fff;
}
.btn-secondary:hover {
  opacity: 0.88;
}
.btn-danger {
  background: #e74c3c;
  color: #fff;
}
.btn-danger:hover {
  opacity: 0.88;
}
.marine-board table {
  width: 100%;
  border-collapse: collapse;
  border-top: 2px solid #222;
  margin-bottom: 20px;
  font-size: 14px;
}
.marine-board th,
.marine-board td {
  padding: 13px 10px;
  border-bottom: 1px solid #e8e8e8;
  text-align: center;
  vertical-align: middle;
}
.marine-board th {
  background: #f7f8fa;
  font-weight: 600;
  color: #444;
}
.marine-board td.col-title {
  text-align: left;
  padding-left: 14px;
}
.marine-board td.col-title a {
  color: #222;
  text-decoration: none;
  line-height: 1.5;
}
.marine-board td.col-title a:hover {
  text-decoration: underline;
  color: #0d8abc;
}
.marine-board .board-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
  gap: 8px;
}
.marine-board .pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 30px;
}
.marine-board .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #444;
  text-decoration: none;
  background: #fff;
  font-size: 14px;
  transition:
    background 0.15s,
    color 0.15s;
}
.marine-board .page-link:hover {
  background: #f0f8ff;
  color: #0d8abc;
  border-color: #0d8abc;
}
.marine-board .page-link.active {
  background: #0d8abc;
  color: #fff;
  border-color: #0d8abc;
  font-weight: 700;
}
.board-view-wrap {
  border-top: 2px solid #222;
  background: #fff;
  border-radius: 0 0 6px 6px;
}
.view-header {
  border-bottom: 1px solid #e8e8e8;
  padding: 22px 20px 18px;
}
.view-title {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
  word-break: keep-all;
}
.view-info {
  font-size: 13px;
  color: #777;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.view-content {
  padding: 30px 20px;
  min-height: 280px;
  line-height: 1.75;
  font-size: 15px;
  color: #333;
  overflow-wrap: break-word;
  word-break: break-word;
}
.view-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 8px 0;
}
.view-divider {
  border: none;
  border-top: 1px solid #e8e8e8;
  margin: 0 20px;
}
.view-files {
  border-top: 1px solid #e8e8e8;
  border-bottom: 1px solid #e8e8e8;
  padding: 14px 20px;
  background: #f9fafc;
  font-size: 13px;
}
.view-files a {
  color: #0d8abc;
  text-decoration: none;
  display: inline-block;
  margin-right: 14px;
}
.view-files a:hover {
  text-decoration: underline;
}
.board-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.action-left,
.action-right {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.board-form {
  border-top: 2px solid #222;
  padding-top: 4px;
}
.form-row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #e8e8e8;
  padding: 14px 0;
  gap: 12px;
}
.form-row label {
  width: 110px;
  flex-shrink: 0;
  font-weight: 600;
  font-size: 14px;
  color: #444;
}
.form-row .input-cont {
  flex: 1;
  min-width: 0;
}
.file-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.file-item:last-child {
  margin-bottom: 0;
}
.file-item input[type="file"] {
  flex: 1;
}
.file-item .btn-file-remove {
  flex-shrink: 0;
  background: #e74c3c;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;
  line-height: 1.4;
  white-space: nowrap;
}
.file-item .btn-file-remove:hover {
  opacity: 0.85;
}
.file-add-btn {
  margin-top: 8px;
  background: #f0f8ff;
  color: #0d8abc;
  border: 1px dashed #0d8abc;
  border-radius: 4px;
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background 0.15s;
}
.file-add-btn:hover {
  background: #ddf0fc;
}
.file-existing {
  font-size: 12px;
  color: #666;
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.file-existing a {
  color: #0d8abc;
  text-decoration: none;
}
.file-existing a:hover {
  text-decoration: underline;
}
.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
  color: #333;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.form-control:focus {
  outline: none;
  border-color: #0d8abc;
  box-shadow: 0 0 0 3px rgba(13, 138, 188, 0.1);
}
.form-control-short {
  max-width: 240px;
}
.board-form .board-actions {
  justify-content: center;
  margin-top: 28px;
  gap: 12px;
}
.board-form .btn {
  padding: 11px 36px;
  font-size: 15px;
}
.pw-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.pw-modal-content {
  background: #fff;
  padding: 32px 28px 24px;
  border-radius: 10px;
  width: min(340px, 90vw);
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}
.pw-modal-content h3 {
  margin: 0 0 6px;
  font-size: 17px;
}
.pw-modal-content p {
  font-size: 13px;
  color: #777;
  margin: 0 0 4px;
}
.pw-modal input {
  width: 100%;
  padding: 11px 12px;
  margin: 14px 0 18px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
  box-sizing: border-box;
}
.pw-modal .modal-btns {
  display: flex;
  gap: 10px;
}
.pw-modal .modal-btns .btn {
  flex: 1;
  padding: 10px;
  font-size: 14px;
}
@media (max-width: 1024px) {
  .marine-board {
    padding: 0 16px;
    margin: 28px auto;
  }
  .marine-board .board-title {
    font-size: 22px;
    margin-bottom: 18px;
  }
  .marine-board table th:nth-child(3),
  .marine-board table td:nth-child(3) {
    display: none;
  }
}
@media (max-width: 768px) {
  .marine-board {
    padding: 0 12px;
    margin: 20px auto;
  }
  .marine-board .board-title {
    font-size: 19px;
    margin-bottom: 14px;
  }
  .marine-board table th:nth-child(4),
  .marine-board table td:nth-child(4),
  .marine-board table th:nth-child(5),
  .marine-board table td:nth-child(5) {
    display: none;
  }
  .marine-board th,
  .marine-board td {
    padding: 11px 8px;
    font-size: 13px;
  }
  .view-title {
    font-size: 17px;
  }
  .view-info {
    font-size: 12px;
    gap: 8px;
  }
  .view-content {
    padding: 20px 14px;
    font-size: 14px;
  }
  .view-files {
    padding: 12px 14px;
  }
  .view-header {
    padding: 16px 14px 14px;
  }
  .board-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .action-left,
  .action-right {
    justify-content: stretch;
  }
  .action-left .btn,
  .action-right .btn {
    flex: 1;
    text-align: center;
  }
  .form-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 12px 0;
  }
  .form-row label {
    width: auto;
  }
  .form-control-short {
    max-width: 100%;
  }
  .board-form .board-actions {
    flex-direction: column;
    gap: 8px;
  }
  .board-form .btn {
    width: 100%;
    text-align: center;
  }
  .marine-board .page-link {
    min-width: 32px;
    height: 32px;
    font-size: 13px;
  }
}
@media (max-width: 480px) {
  .marine-board .board-title {
    font-size: 17px;
  }
  .marine-board table th:nth-child(1),
  .marine-board table td:nth-child(1) {
    display: none;
  }
  .marine-board th,
  .marine-board td {
    padding: 10px 6px;
    font-size: 12px;
  }
  .btn {
    padding: 9px 14px;
    font-size: 13px;
  }
  .view-title {
    font-size: 15px;
  }
  .view-content {
    font-size: 13px;
  }
}
.captcha-row {
  background: #f0f8ff;
  border-radius: 6px;
  border: 1px dashed #0d8abc !important;
  margin-bottom: 4px;
}
.captcha-box {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.captcha-question {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0d8abc;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 10px 22px;
  border-radius: 6px;
  min-width: 110px;
  text-align: center;
  user-select: none;
  font-family: "Courier New", monospace;
  box-shadow: 0 2px 6px rgba(13, 138, 188, 0.25);
}
.captcha-box .form-control-short {
  max-width: 160px;
}
.captcha-hint {
  font-size: 12px;
  color: #888;
  margin: 6px 0 0;
}
.captcha-row.captcha-error {
  background: #fff5f5;
  border-color: #e74c3c !important;
}
.captcha-row.captcha-error .captcha-question {
  background: #e74c3c;
}
.input-error {
  border-color: #e74c3c !important;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.12) !important;
}
.captcha-error-msg {
  font-size: 13px;
  color: #e74c3c;
  font-weight: 600;
  margin: 6px 0 0;
}
