/**
 * YOUELBLOCKS - Board Block Styles
 * Version: 12.0.0
 * 현대적이고 세련된 게시판 블록 스타일
 */

/* 게시판 컨테이너 */
.wp-block-youelblocks-board {
  width: 100%;
  margin: 0;
  padding: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu,
    Cantarell, "Helvetica Neue", sans-serif;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
}

/* 편집자 페이지 스타일 */
.board-editor-container {
  padding: 24px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.board-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e0e0e0;
}

.board-header h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  color: #1e1e1e;
}

/* 게시글 목록 */
.board-posts-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.board-post-item {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.board-post-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  border-color: #0073aa;
}

.board-post-item.board-notice {
  background: #fff9e6;
  border-color: #ffc107;
}

.post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.post-header h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #1e1e1e;
  flex: 1;
}

.notice-badge {
  display: inline-block;
  padding: 4px 12px;
  background: #ffc107;
  color: #000;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  margin-left: 12px;
}

.post-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 14px;
  color: #666;
}

.post-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.post-content {
  color: #555;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.post-actions {
  display: flex;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid #e0e0e0;
}

.no-posts {
  text-align: center;
  padding: 60px 20px;
  color: #999;
  font-size: 16px;
}

/* 페이지네이션 */
.board-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e0e0e0;
}

/* 프론트엔드 스타일 */
.board-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

/* 검색 영역 */
.board-search-area {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  background: #f5f5f5;
  border-radius: 8px;
}

.board-search-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.board-search-input:focus {
  outline: none;
  border-color: #0073aa;
  box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.board-search-btn {
  padding: 12px 24px;
  background: #0073aa;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.board-search-btn:hover {
  background: #005a87;
}

/* 게시글 목록 (프론트엔드) - 테이블 형태 */
.board-posts-wrapper {
  background: #fff;
}

.board-posts-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  background: #fff;
}

/* 제목 열 50%, 나머지 열들 합 50% */
.board-posts-table th.board-col-title,
.board-posts-table td.board-post-title-cell {
  width: 50%;
}

.board-posts-table thead {
  background: #f8f9fa;
  border-bottom: 2px solid #e0e0e0;
}

.board-posts-table th {
  padding: 12px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  color: #333;
  border-bottom: 2px solid #e0e0e0;
}

.board-posts-table tbody tr {
  border-bottom: 1px solid #e0e0e0;
  transition: background 0.2s ease;
  cursor: pointer;
}

.board-posts-table tbody tr:hover {
  background: #f8f9fa;
}

.board-posts-table tbody tr.board-notice {
  background: #fff9e6;
}

.board-posts-table tbody tr.board-notice:hover {
  background: #fff3cd;
}

.board-posts-table tbody td {
  padding: 12px;
  font-size: 14px;
  color: #333;
  vertical-align: middle;
}

.board-post-title-cell {
  position: relative;
}

.board-post-title-link {
  color: #333;
  text-decoration: none;
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-post-title-link:hover {
  color: #0073aa;
  text-decoration: underline;
}

.board-post-row-actions {
  display: inline-flex;
  gap: 8px;
  margin-left: 12px;
}

.board-post-row-actions button {
  padding: 4px 12px;
  font-size: 12px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.board-post-row-actions button:hover {
  background: #f5f5f5;
  border-color: #0073aa;
  color: #0073aa;
}

.board-post-number {
  text-align: center;
  color: #666;
}

.board-post-author-cell,
.board-post-date-cell,
.board-post-views-cell {
  text-align: center;
  color: #666;
}

/* 하단 버튼 영역 */
.board-bottom-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 16px 20px;
  background: #f8f9fa;
  border-top: 1px solid #e0e0e0;
  gap: 8px;
}

.board-bottom-right {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .board-bottom-actions {
    justify-content: center;
  }
}

.board-bottom-actions button {
  padding: 8px 16px;
  font-size: 14px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.board-bottom-actions button:hover {
  background: #f5f5f5;
  border-color: #0073aa;
  color: #0073aa;
}

.board-write-btn-bottom {
  background: #0073aa !important;
  color: #fff !important;
  border-color: #0073aa !important;
}

.board-write-btn-bottom:hover {
  background: #005a87 !important;
  border-color: #005a87 !important;
  color: #fff !important;
}

.board-posts.layout-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.board-posts.layout-card {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.board-post-item {
  background: #fff;
  border: none;
  border-bottom: 1px solid #e0e0e0;
  border-radius: 0;
  padding: 16px 20px;
  transition: background 0.2s ease;
  cursor: pointer;
  position: relative;
  overflow: visible;
  margin: 0;
}

.board-post-item:hover {
  background: #f8f9fa;
  transform: none;
  box-shadow: none;
}

.board-post-item.board-notice {
  background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
  border-color: #ffc107;
  border-width: 2px;
}

.board-post-item.board-notice::before {
  background: #ffc107;
}

.board-post-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  gap: 12px;
}

.board-post-title {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: #333;
  line-height: 1.5;
  flex: 1;
  transition: color 0.2s ease;
}

.board-post-item:hover .board-post-title {
  color: #0073aa;
  text-decoration: underline;
}

.board-notice-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: #ffc107;
  color: #000;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(255, 193, 7, 0.3);
}

.board-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
  margin-bottom: 0;
  font-size: 13px;
  color: #666;
}

.board-post-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.board-post-meta span::before {
  content: "";
  width: 4px;
  height: 4px;
  background: #ccc;
  border-radius: 50%;
}

.board-post-meta span:first-child::before {
  display: none;
}

.board-post-content {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin-top: 8px;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.board-post-actions {
  display: flex;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
  margin-top: 16px;
}

.board-post-actions button {
  padding: 8px 16px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.board-post-actions button:hover {
  background: #f5f5f5;
  border-color: #0073aa;
  color: #0073aa;
}

.board-no-posts {
  text-align: center;
  padding: 80px 20px;
  color: #999;
  font-size: 16px;
  background: #f9f9f9;
  border-radius: 12px;
  border: 2px dashed #ddd;
}

/* 카테고리/태그 표시 */
.board-post-category {
  margin-top: 12px;
  margin-bottom: 8px;
}

.board-category-tag {
  display: inline-block;
  padding: 6px 14px;
  background: #e3f2fd;
  color: #1976d2;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.board-category-tag:hover {
  background: #bbdefb;
  transform: translateY(-1px);
}

.board-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.board-tag {
  display: inline-block;
  padding: 5px 12px;
  background: #f5f5f5;
  color: #666;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.board-tag:hover {
  background: #e0e0e0;
  transform: translateY(-1px);
}

/* 좋아요 표시 */
.board-post-likes {
  color: #e91e63;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .board-container {
    padding: 16px;
  }

  .board-search-area {
    flex-direction: column;
  }

  .board-posts.layout-grid,
  .board-posts.layout-card {
    grid-template-columns: 1fr;
  }

  .board-post-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .board-post-meta {
    flex-direction: column;
    gap: 8px;
  }

  .board-post-meta span::before {
    display: none;
  }
}

/* 애니메이션 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.board-post-item {
  animation: fadeIn 0.4s ease-out;
}

/* 게시글 작성 폼 */
.board-post-form {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.board-post-form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e0e0e0;
}

.board-post-form-header h4 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #1e1e1e;
}

.board-post-form-group {
  margin-bottom: 20px;
}

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

.board-post-form-group input,
.board-post-form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.board-post-form-group input:focus,
.board-post-form-group textarea:focus {
  outline: none;
  border-color: #0073aa;
  box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.board-post-form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.board-post-form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

/* 모달 스타일 */
.board-post-form-modal .components-modal__content {
  max-width: 600px;
}

.board-post-form-modal .components-modal__header {
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.board-post-form-modal .components-modal__header-heading {
  font-size: 20px;
  font-weight: 600;
  color: #1e1e1e;
}

/* 프론트엔드 게시판 헤더 */
.board-header-frontend {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e0e0e0;
}

.board-header-frontend .board-title {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  color: #1e1e1e;
}

.board-write-btn {
  padding: 12px 24px;
  background: #0073aa;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.board-write-btn:hover {
  background: #005a87;
}

/* 프론트엔드 툴바 */
.board-toolbar-frontend {
  display: flex;
  gap: 16px;
  margin-bottom: 0;
  padding: 12px 20px;
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  flex-wrap: wrap;
  align-items: center;
}

.board-toolbar-frontend .board-search-area {
  flex: 1;
  min-width: 200px;
}

.board-toolbar-frontend .board-filter-category,
.board-toolbar-frontend .board-sort-area {
  display: flex;
  align-items: center;
  gap: 8px;
}

.board-toolbar-frontend select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
  cursor: pointer;
}

/* 게시글이 없을 때 */
.board-no-posts {
  text-align: center;
  padding: 80px 20px;
  background: #f9f9f9;
  border-radius: 12px;
  border: 2px dashed #ddd;
}

.board-no-posts-icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.board-no-posts-message {
  font-size: 18px;
  color: #999;
  margin-bottom: 24px;
}

.board-write-btn-empty {
  padding: 12px 24px;
  background: #0073aa;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.board-write-btn-empty:hover {
  background: #005a87;
}

/* 모달 오버레이 */
.board-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex !important;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  padding: 20px;
  overflow-y: auto;
}

.board-modal-overlay[data-position="top"] {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  padding-top: 40px;
}

.board-modal-overlay[data-position="bottom"] {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: center !important;
  padding-bottom: 40px;
}

.board-modal-overlay[data-position="center"] {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.board-modal-content {
  /* 기본값만 설정, 인라인 스타일로 덮어쓸 수 있도록 !important 제거 */
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  position: relative;
  margin: auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* 기본값 (인라인 스타일이 없을 때만 적용) */
  background: #fff;
  color: #000000;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
}

/* 모달 헤더는 고정 */
.board-modal-content .board-modal-header {
  flex-shrink: 0;
}

/* 모달 내용 영역 스크롤 가능하도록 */
.board-modal-content .board-post-form-frontend,
.board-modal-content .board-post-detail-content {
  flex: 1 1 0;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}

/* 모달 스크롤바 스타일 */
.board-modal-content .board-post-form-frontend::-webkit-scrollbar,
.board-modal-content .board-post-detail-content::-webkit-scrollbar {
  width: 8px;
}

.board-modal-content .board-post-form-frontend::-webkit-scrollbar-track,
.board-modal-content .board-post-detail-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.board-modal-content .board-post-form-frontend::-webkit-scrollbar-thumb,
.board-modal-content .board-post-detail-content::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

.board-modal-content .board-post-form-frontend::-webkit-scrollbar-thumb:hover,
.board-modal-content .board-post-detail-content::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

.board-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 2px solid #e0e0e0;
}

.board-modal-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #1e1e1e;
}

.board-modal-close {
  background: none;
  border: none;
  font-size: 28px;
  color: #666;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.board-modal-close:hover {
  background: #f5f5f5;
}

/* 댓글 작성자 입력 필드 */
.board-comment-form .form-group {
  margin-bottom: 12px;
}

.board-comment-form .form-group label {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 500;
  color: #333;
}

.board-comment-form .form-group input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
}

/* 게시글 작성 폼 (프론트엔드) */
.board-post-form-frontend {
  padding: 24px;
}

.board-post-form-frontend .form-group {
  margin-bottom: 20px;
}

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

.board-post-form-frontend .form-group input,
.board-post-form-frontend .form-group textarea,
.board-post-form-frontend .form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.board-post-form-frontend .form-group input:focus,
.board-post-form-frontend .form-group textarea:focus,
.board-post-form-frontend .form-group select:focus {
  outline: none;
  border-color: #0073aa;
  box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.board-post-form-frontend .form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
  margin-top: 20px;
}

.form-actions button {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.board-form-cancel {
  background: #f5f5f5;
  color: #333;
}

.board-form-cancel:hover {
  background: #e0e0e0;
}

.board-form-submit {
  background: #0073aa;
  color: #fff;
}

.board-form-submit:hover {
  background: #005a87;
}

/* 게시글 상세 보기 */
.board-post-detail-content {
  padding: 24px;
}

.board-post-detail-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e0e0e0;
  font-size: 14px;
  color: #666;
}

.board-post-detail-body {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 24px;
  white-space: pre-wrap;
}

/* 댓글 영역 */
.board-post-comments {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 2px solid #e0e0e0;
}

.board-post-comments h4 {
  margin: 0 0 20px 0;
  font-size: 18px;
  font-weight: 600;
  color: #1e1e1e;
}

.board-comments-list {
  margin-bottom: 24px;
}

.board-comment-item {
  padding: 16px;
  background: #f9f9f9;
  border-radius: 8px;
  margin-bottom: 12px;
}

.board-comment-author {
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.board-comment-content {
  color: #555;
  line-height: 1.6;
  margin-bottom: 8px;
}

.board-comment-date {
  font-size: 12px;
  color: #999;
}

.board-comment-form {
  margin-top: 20px;
}

.board-comment-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  margin-bottom: 12px;
  box-sizing: border-box;
}

.board-comment-submit {
  padding: 10px 20px;
  background: #0073aa;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.board-comment-submit:hover {
  background: #005a87;
}

/* 페이지네이션 (프론트엔드) */
.board-pagination-frontend {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e0e0e0;
}

.board-pagination-btn {
  padding: 8px 16px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.board-pagination-btn:hover {
  background: #f5f5f5;
  border-color: #0073aa;
  color: #0073aa;
}

.board-pagination-btn.active {
  background: #0073aa;
  color: #fff;
  border-color: #0073aa;
}

.board-pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 카테고리/태그 필터 */
.board-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.board-filter-item {
  padding: 8px 16px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.board-filter-item:hover,
.board-filter-item.active {
  background: #0073aa;
  color: #fff;
  border-color: #0073aa;
}
