/* main-visual */
.visual-hero__bg {
  position: relative;
  overflow: hidden;
}

.visual-hero__bg img {
  width: 100%;
}

.visual-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.visual-hero__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  color: #fff;
}

.visual-tltle {
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
  margin-bottom: 15px;
}

.visual-text {
  font-size: 30px;
  line-height: 1.5;
  font-weight: 600;
}

@media (max-width: 1024px) {
  .visual-tltle {
    font-size: 14px;
    margin-bottom: 15px;
  }

  .visual-text {
    font-size: 26px;
  }
}

/* banner-wrap */
.hero-banner {
  position: relative;
  overflow: hidden;
}

.hero-banner__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 0;
}

.hero-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  color: #fff;
  width: 100%;
  padding: 0 20px;
}

.hero-eyebrow {
  font-size: 14px;
  color: #a97d64;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 15px;
}

.hero-title {
  margin: 0 0 20px;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.5;
}

.hero-desc {
  font-size: 16px;
  line-height: 1.5;
  word-break: keep-all;
}

.hero-inner .title {
  margin: 0 0 30px;
  font-size: 36px;
  font-weight: 600;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .hero-title {
    margin: 0 0 15px;
    font-size: 24px;
    letter-spacing: -1%;
  }

  .hero-desc {
    font-size: 14px;
    letter-spacing: -1%;
  }
}

/* board-wrap */
.board-wrap {
  padding: 120px 0 140px;
}
.board-inner {
  max-width: 1780px;
  margin: 0 auto;
}
.board-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 60px;
}
.board-title {
  font-size: 14px;
  font-weight: 600;
  color: #a97d64;
  line-height: 1.5;
  margin-bottom: 15px;
}
.board-sub {
  font-size: 30px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -2%;
}

.board-actions {
  align-self: flex-end;
}

.board-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 14px;
  border: 1px solid #1d4ed8;
  color: #1d4ed8;
  font-weight: 600;
  text-decoration: none;
  font-size: 16px;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px 20px;
}

.board-card {
  border: 1px solid rgba(169, 125, 100, 0.4);
  padding: 30px 20px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}

.board-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}
.board-badge {
  font-size: 16px;
  color: #a97d64;
  margin-bottom: 17px;
}
.board-card-title {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: keep-all;
}
.board-card-desc {
  margin-top: 20px;
  font-size: 20px;
  opacity: 0.6;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.board-card-date {
  margin-top: 47px;
  font-size: 16px;
  line-height: 1.5;
  opacity: 0.5;
  font-weight: 500;
}

.board-empty {
  padding: 60px 0;
  text-align: center;
  color: #777;
  border: 1px dashed #a97d64;
}

.board-paging {
  display: flex;
  justify-content: center;
  margin-top: 126px;
}

#newsPaging {
  display: flex;
  align-items: center;
  gap: 20px;
}

.pg-current {
  font-size: 26px;
  font-weight: 500;
  color: #000;
  position: relative;
  border-bottom: 2px solid transparent;
}

.board-paging .pg strong,
.board-paging .pg a:hover {
  border-color: #000;
}

.board-admin-btns {
  position: absolute;
  right: 20px;
  bottom: 30px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.board-admin-btns a {
  height: 32px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.board-admin-btns .btn-edit {
  border: 1px solid #000;
  color: #000;
  background: #fff;
}

.board-admin-btns .btn-del {
  border: 1px solid #000;
  color: #fff;
  background: #000;
}

.pg-prev,
.pg-next,
.prev-disabled,
.next-disabled {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-decoration: none;
  font-size: 0;
  border: 1px solid transparent;
}

.pg-prev,
.prev-disabled {
  margin-right: 35px;
}

.pg-next,
.next-disabled {
  margin-left: 35px;
}

.pg-prev,
.pg-next {
  background: #000;
}
.pg-prev::before {
  margin-left: 3px;
  content: "";
  width: 8px;
  height: 8px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

.pg-next::before {
  margin-right: 3px;
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid #fff;
  border-top: 2px solid #fff;
  transform: rotate(45deg);
}

.prev-disabled,
.next-disabled {
  opacity: 0.3;
  border-color: rgba(0, 0, 0, 0.3);
}
.prev-disabled::before {
  margin-left: 3px;
  content: "";
  width: 8px;
  height: 8px;
  border-left: 1px solid #000;
  border-bottom: 1px solid #000;
  transform: rotate(45deg);
}

.next-disabled::before {
  margin-right: 3px;
  content: "";
  width: 8px;
  height: 8px;
  border-right: 1px solid #000;
  border-top: 1px solid #000;
  transform: rotate(45deg);
}

@media (max-width: 1780px) {
  .board-inner {
    padding: 0 20px;
  }
}

@media (max-width: 1024px) {
  .board-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .board-wrap {
    padding: 90px 0 100px;
  }

  .board-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .board-top {
    flex-direction: column;
  }

  .board-title {
    margin-bottom: 10px;
  }

  .board-sub {
    font-size: 24px;
    letter-spacing: 0;
  }

  .board-actions a {
    height: 35px;
    padding: 0 10px;
    font-size: 14px;
  }

  .board-card {
    padding: 20px;
  }

  .board-badge {
    font-size: 14px;
    margin-bottom: 10px;
  }

  .board-card-title {
    font-size: 18px;
    word-break: auto-phrase;
  }

  .board-card-desc {
    margin-top: 10px;
    font-size: 15px;
  }

  .board-card-date {
    margin-top: 15px;
    font-size: 12px;
  }

  .board-admin-btns {
    right: 20px;
    bottom: 20px;
    gap: 5px;
  }

  .board-admin-btns a {
    height: 25px;
    padding: 0 5px;
    font-size: 10px;
  }

  .board-paging {
    margin-top: 70px;
  }

  .pg-current {
    font-size: 20px;
  }

  #newsPaging {
    gap: 15px;
  }

  .pg-prev,
  .prev-disabled {
    margin-right: 20px;
  }

  .pg-next,
  .next-disabled {
    margin-left: 20px;
  }

  .pg-prev,
  .pg-next,
  .prev-disabled,
  .next-disabled {
    width: 32px;
    height: 32px;
  }

  .pg-next::before,
  .next-disabled::before {
    margin-right: 5px;
  }

  .prev-disabled::before,
  .pg-prev::before {
    margin-left: 5px;
  }
}

/* board-write-wrap */
.board-write-wrap {
  padding: 120px 0 140px;
}

.write-form {
  background: #fff;
  padding: 60px;
  border: 1px solid #e6e1da;
}

.write-row {
  margin-bottom: 40px;
}

.write-row label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #222;
}

.write-form input[type="text"],
.write-form input[type="url"],
.write-form textarea {
  width: 100%;
  padding: 16px 18px;
  font-size: 15px;
  border: 1px solid #ddd;
  background: #fafafa;
  transition: all 0.3s ease;
  outline: none;
  font-family: inherit;
}

.write-form input:focus,
.write-form textarea:focus {
  border-color: #111;
  background: #fff;
}

.write-form textarea {
  resize: vertical;
  min-height: 200px;
  line-height: 1.6;
}

.write-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.write-actions {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  margin-top: 60px;
}

.btn-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  border: 1px solid #ccc;
  background: #fff;
  font-size: 14px;
  text-decoration: none;
  color: #444;
  transition: all 0.3s ease;
}

.btn-cancel:hover {
  background: #f2f2f2;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 40px;
  background: #111;
  color: #fff;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-submit:hover {
  background: #333;
}

@media (max-width: 1024px) {
  .write-form {
    padding: 40px;
  }
}

@media (max-width: 768px) {
  .board-write-wrap {
    padding: 80px 0 100px;
  }

  .write-title {
    font-size: 30px;
  }

  .write-desc {
    font-size: 15px;
  }

  .write-form {
    padding: 30px 20px;
  }

  .write-cols {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .write-row {
    margin-bottom: 30px;
  }

  .write-actions {
    flex-direction: column;
    gap: 10px;
    margin-top: 40px;
  }

  .btn-cancel,
  .btn-submit {
    width: 100%;
  }
}
