/*
// board.css
// uriseednet
//
// Created by EB Song on 2026-03-27.
// Copyright (c) Uriseed. All rights reserved.
*/

.board-page {
  padding-top: 95px;
}

.board-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.board-title {
  margin: 0 0 34px;
  font-size: 38px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-align: center;
}

.board-search-form {
  width: 100%;
  margin-bottom: 70px;
}

.board-search {
  width: 388px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
}

.board-search .form-control {
  height: 42px;
  border: 1px solid #dddddd;
  border-right: 0;
  border-radius: 6px 0 0 6px;
  background: #ffffff;
  font-size: 14px;
  color: #222222;
  box-shadow: none;
}

.board-search .form-control:focus {
  border-color: #dddddd;
  box-shadow: none;
}

.board-search .form-control::placeholder {
  color: #c9c9c9;
}

.board-search-btn {
  width: 42px;
  min-width: 42px;
  height: 42px;
  border: 1px solid #dddddd;
  border-left: 0;
  border-radius: 0 6px 6px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  background: #ffffff;
}

.board-search-btn:hover,
.board-search-btn:focus {
  background: #ffffff;
  color: #c9c9c9;
  border-color: #dddddd;
  box-shadow: none;
}

.board-search-btn i {
  color: #AAAAAA;
}

.board-filter {
  width: 100%;
  margin-bottom: 54px;
}

.board-filter .nav {
  justify-content: flex-start;
  gap: 10px;
}

.board-filter .nav-pills .nav-link {
  padding: 14px 26px;
  border-radius: 999px;
  background: #f5f5f5;
  color: #AAAAAA;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
}

.board-filter .nav-pills .nav-link.active {
  background: #111111;
  color: #ffffff;
}

.board-count {
  margin: 0 0 22px;
  color: var(--color-gray-700);
  font-size: 16px;
  line-height: 1;
}

.article-section > p:first-child {
  margin: 0 0 22px;
  color: var(--color-gray-700);
  font-size: 16px;
  line-height: 1;
}

.article-section .row > * {
  row-gap: 32px;
  margin-bottom: 42px;
  width: 25%;
  flex: 0 0 25%;
  max-width: 25%;
}

.article-view-page {
  padding-top: 32px;
}

.article-view-header {
  position: relative;
  margin-bottom: 36px;
}

.article-view-back {
  position: absolute;
  left: 20px;
  top: 8px;
}

.article-view-back .btn {
  padding: 6px 14px;
  border: 1px solid #dddddd;
  border-radius: 6px;
  background: #ffffff;
  color: #666666;
  font-size: 13px;
}

.article-view-title-wrap {
  max-width: 860px;
  margin: 40px auto 0;
  padding-top: 15px;
  text-align: center;
}

.article-view-category {
  margin-bottom: 12px;
  font-size: 13px;
  color: #888888;
}

.article-view-title {
  margin: 0 0 14px;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.03em;
  color: #3D3D3D;
}

.article-view-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  color: #999999;
}

.article-view-meta i {
  margin-right: 6px;
  color: #bbbbbb;
}

.article-view-content {
  max-width: 1240px;
  margin: 0 auto;
}

.article-view-content .row {
  margin-bottom: 28px;
}

.article-view-content img,
.article-view-content .img-fluid {
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  display: block;
  border-radius: 0;
}

.article-view-body {
  max-width: 1240px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.8;
  color: #3D3D3D;
  word-break: keep-all;
}

.article-view-body p {
  margin-bottom: 28px;
}

.article-view-nav {
  max-width: 1240px;
  margin: 80px auto 100px;
  --bs-gutter-x: 0;
}

.article-view-nav .col {
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-view-nav .col.text-end {
  justify-content: flex-end;
}

.article-view-nav a {
  font-size: 14px;
  color: #999999;
  text-decoration: none;
}

.article-view-nav a:hover {
  color: #666666;
}

.article-view-nav i {
  display: flex;
  align-items: center;
  color: #bbbbbb;
  font-size: 14px;
}

.article-view-bottom {
  margin-top: 80px;
  text-align: center;
}

.article-view-source-btn {
  width: 86px;
  height: 86px;
  margin: 0 auto 30px;
  border: none;
  border-radius: 50%;
  background: #DB494A;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.3;
  cursor: pointer;
}

.article-view-source-btn i {
  margin-top: 2px;
  font-size: 22px;
}

.article-view-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 100px;
}

.article-view-actions .btn {
  width: 80px;
  height: 80px;
  border: 1px solid #dddddd;
  background: #ffffff;
  color: #3D3D3D;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.article-view-actions i {
  margin-bottom: 6px;
  font-size: 20px;
}

.article-view-title-wrap i {
  margin-right: 4px;
  margin-left: 4px;
  color: #999;
}

.pagination {
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 60px;
}

.page-item {
  display: flex;
  align-items: center;
}

.page-link {
  border: none;
  background: transparent;
  color: #999999;
  font-size: 16px;
  line-height: 1;
  padding: 0;
  min-width: auto;
  box-shadow: none;
}

.page-link:hover,
.page-link:focus {
  background: transparent;
  color: #111111;
  box-shadow: none;
}

.page-item.active .page-link {
  background: transparent;
  color: #e15252;
  font-weight: 600;
}

.page-item .page-link {
  border-radius: 0;
}

.page-item.disabled .page-link {
  background: transparent;
  border: none;
  color: #999999;
  pointer-events: none;
  box-shadow: none;
}

.back-issues-page .card-img-top {
  border: 1px solid #e5e5e5;
  border-radius: 6px;
}

.back-issues-page .article-section .card-img-top {
  aspect-ratio: 14 / 20;
}

/* community detail */
.post-view-page {
  padding-top: 56px;
  padding-bottom: 180px;
}

.post-view-header {
  max-width: 1240px;
  margin: 0 auto 20px;
}

.post-view-back {
  margin-bottom: 44px;
}

.post-view-back .btn {
  padding: 6px 14px;
  border: 1px solid #dddddd;
  border-radius: 6px;
  background: #ffffff;
  color: #666666;
  font-size: 13px;
}

.post-view-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 26px;
}

.post-view-profile {
  display: flex;
  align-items: center;
  gap: 16px;
}

.post-view-profile-image {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #f1f1f1;
  border: 1px solid #dddddd;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbbbbb;
  font-size: 24px;
  flex-shrink: 0;
}

.post-view-profile-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.post-view-author {
  font-size: 16px;
  font-weight: 600;
  color: #555555;
  line-height: 1.4;
}

.post-view-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: #999999;
}

.post-view-meta i {
  margin-right: 4px;
  color: #bbbbbb;
}

.post-view-more .btn {
  padding: 0;
  border: none;
  background: transparent;
  color: #666666;
  box-shadow: none;
}

.post-view-title {
  max-width: 860px;
  margin: 0;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.03em;
  color: #3D3D3D;
}

.post-view-content {
  max-width: 1240px;
  margin: 0 auto;
}

.post-view-body {
  margin: 0 auto 54px;
  font-size: 16px;
  line-height: 1.8;
  color: #3D3D3D;
  word-break: keep-all;
}

.post-view-body img {
  max-width: 860px;
  width: 100%;
  margin: 53px auto 0;
  display: block;
}

.post-view-body p {
  margin-bottom: 28px;
}


.post-view-image-wrap .row {
  --bs-gutter-x: 0;
  margin: 0;
}

.post-view-image-wrap .col {
  padding: 0;
}

.post-view-nav {
  max-width: 1240px;
  margin: 80px auto 100px;
  --bs-gutter-x: 0;
}

.post-view-nav .col {
  display: flex;
  align-items: center;
  gap: 10px;
}

.post-view-nav .col.text-end {
  justify-content: flex-end;
}

.post-view-nav a {
  font-size: 14px;
  color: #999999;
  text-decoration: none;
}

.post-view-nav a:hover {
  color: #666666;
}

.post-view-nav i {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #bbbbbb;
}

.post-view-bottom {
  text-align: center;
}

.post-view-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 200px;
}

.post-view-actions .btn {
  width: 80px;
  height: 80px;
  border: 1px solid #dddddd;
  background: #ffffff;
  color: #3D3D3D;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.post-view-actions .btn i {
  font-size: 20px;
  margin-bottom: 6px;
}

.post-view-actions .btn span {
  font-size: 14px;
  color: #3D3D3D;
  line-height: 1;
}

.comment-section {
  max-width: 1240px;
  margin: 0 auto;
  padding-top: 24px;
}

.comment-section-title {
  margin-bottom: 28px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  color: #222222;
}

.comment-section-title span {
  color: #e15252;
}

.comment-write {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 48px;
}

.comment-write-avatar {
  width: 56px;
  height: 56px;
  border: 1px solid #dddddd;
  border-radius: 50%;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b9b9b9;
  flex-shrink: 0;
}

.comment-write-avatar i {
  font-size: 26px;
  line-height: 1;
}

.comment-write-form {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 18px;
}

.comment-input.form-control {
  height: 50px;
  border: 1px solid #dddddd;
  border-radius: 6px;
  padding: 0 18px;
  box-shadow: none;
  font-size: 16px;
  color: #3D3D3D;
}

.comment-input.form-control::placeholder {
  color: #D9D9D9;
}

.comment-input.form-control:focus {
  border-color: #dddddd;
  box-shadow: none;
}

.comment-write-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.comment-submit-btn.btn {
  width: 82px;
  min-width: 82px;
  height: 50px;
  border: none;
  border-radius: 6px;
  background: #DB494A; 
  color: #ffffff;
  font-size: 16px;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 1; 
}

.comment-submit-btn.btn:hover,
.comment-submit-btn.btn:focus {
  background: #DB494A; 
  color: #ffffff;
  box-shadow: none;
}

.comment-submit-btn.btn:disabled {
  background: #DB494A;
  color: #ffffff;
  opacity: 1;
}

.comment-list {
  margin-top: 24px;
}

.comment-sort {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 0 28px 0;
}

.comment-sort-link {
  border: none;
  background: transparent;
  padding: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  color: #AAAAAA;
}

.comment-sort-link.active {
  color: #3D3D3D;
  font-weight: 400;
}

.comment-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
}

.comment-avatar {
  width: 40px;
  height: 40px;
  border: 1px solid #dddddd;
  border-radius: 50%;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b9b9b9;
  flex-shrink: 0;
}

.comment-avatar i {
  font-size: 18px;
}

.comment-content {
  flex: 1;
}

.comment-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.comment-name {
  margin-right: 6px;
  font-size: 18px;
  font-weight: 700;
  color: #111111;
}

.comment-time {
  font-size: 14px;
  color: #9a9a9a;
}

.comment-text {
  font-size: 16px;
  line-height: 1.6;
  color: #3D3D3D;
}

.comment-reply-link,
.comment-like-link,
.comment-meta-divider,
.comment-time {
  font-size: 13px;
  color: #9a9a9a;
  line-height: 1;
}

.comment-reply-link {
  color: #9a9a9a;
  text-decoration: none;
}

.comment-reply-link:hover,
.comment-reply-link:focus,
.comment-reply-link:active {
  color: #9a9a9a;
  text-decoration: none;
}

.comment-meta-divider {
  color: #c8c8c8;
}

input[type="search"]::-webkit-search-cancel-button {
  display: none;
}

.board-clear-btn {
  border-left: 1px solid #dddddd;
  border-radius: 6px;
  margin-left: 8px;
}

.board-clear-btn i {
  color: #AAAAAA;
  font-size: 14px;
}

.issue-view-pdf {
  max-width: 1240px;
  margin: 0 auto;
}

.issue-view-pdf object {
  display: block;
  width: 100%;
}

.dictionary-view-page .article-view-title-wrap {
  max-width: 860px;
}

.dictionary-view-subtitle {
  margin-top: -10px;
  font-size: 20px;
  line-height: 1.5;
  font-family: var(--font-en);   
  color: #3D3D3D;
}

.dictionary-view-page .carousel {
  max-width: 1240px;
  margin: 0 auto;
}

.dictionary-view-subtitle,
.dictionary-view-subtitle i {
  color: #3D3D3D;
}

#show {
  margin: 20px 0;
}

#show .btn {
  background-color: #E54848;   
  border-radius: 6px;
  padding: 8px 12px;
}

#show .btn i {
  color: #ffffff; 
  font-size: 16px;
}

.dictionary-view-page a {
  text-decoration: none;
  color: #999999;
}

.dictionary-view-page a:hover {
  color: #666666;
}

.dictionary-view-page .row.mt-2 {
  margin-top: 80px !important;
  margin-bottom: 100px;
}

.dictionary-view-page .row.mt-2 .row {
  align-items: center;
  gap: 10px;
}

.dictionary-view-page .row.mt-2 > .col i,
.dictionary-view-page .row.mt-2 > .col.text-end i {
  color: #bbbbbb;
  font-size: 14px;
}

.article-view-body .sources {
  margin-top: 40px;
}

.article-view-body .sources h2 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.article-view-body .sources ol {
  font-size: 14px;
  color: #666;
  padding-left: 18px;
}

@media (max-width: 760px) {
  .board-filter .nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .board-filter .nav::-webkit-scrollbar {
    display: none;
  }

  .board-filter .nav-pills .nav-link {
    flex: 0 0 auto;
    white-space: nowrap;
    background: #F5F5F5;
    color: #AAAAAA;
    border: none;
    border-radius: 999px;
    padding: 14px 26px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .board-filter .nav-pills .nav-link.active {
    background: #111111;
    color: #FFFFFF;
  }
}

@media (max-width: 414px) {
  .board-filter .nav {
    gap: 6px;
  }

  .board-filter .nav-pills .nav-link {
    padding: 8px 14px;
    font-size: 14px;
  }
}

@media (max-width: 400px) {
  .board-search-form {
    width: 100%;
    padding: 0 12px;
    box-sizing: border-box;
  }

  .board-search {
    width: 100%;
    max-width: 100%;
  }

  .board-search .form-control {
    min-width: 0;
  }

  .board-search-btn,
  .board-clear-btn {
    flex-shrink: 0;
  }
}

@media (max-width: 370px) {
  .board-page .article-section .card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 10px;
  }

  .board-page .article-section .card a {
    width: 92px;
    flex-shrink: 0;
    display: flex;
    align-self: stretch;
  }

  .board-page .article-section .card-img-top {
    display: block;
    width: 92px;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    aspect-ratio: auto;
  }

  .board-page .article-section .card-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .board-page .article-section .card-text {
    display: flex;
    flex-wrap: wrap;
    column-gap: 10px;
    row-gap: 4px;
    margin-top: 2px;
  }

  .board-page .article-section .card-text .card-meta-item:first-child {
    width: 100%;
  }
}

@media (max-width: 1024px) {
  .article-view-page .btn {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
  }

  .article-view-back {
    left: 0;
    top: 8px;
  }

  .article-section .card-text {
   display: grid;
   grid-template-columns: max-content max-content max-content max-content;
   column-gap: 8px;
   row-gap: 4px;
   align-items: center;
   justify-content: start;
  }

  .article-section .card-meta-item {
   margin: 0;
  }

 .article-section .card-meta-item:nth-child(1) {
   grid-column: 1;
   grid-row: 1;
  }

 .article-section .card-meta-item:nth-child(2) {
   grid-column: 2 / 5;
   grid-row: 1;
   white-space: nowrap;
 }

  .article-section .card-meta-item:nth-child(3) {
   grid-column: 1;
   grid-row: 2;
  }

  .article-section .card-meta-item:nth-child(4) {
   grid-column: 2;
   grid-row: 2;
  }

  .article-section .card-meta-item:nth-child(5) {
   grid-column: 3;
   grid-row: 2;
  }

  .article-section .card-meta-item:nth-child(6) {
   grid-column: 4;
   grid-row: 2;
  }

  .article-section .card-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
  }
}