/* =========================================이전코드========================================= */
/* notice */
#notice {
  background: url("/assets/img/notice-bg.png") no-repeat center center / cover;
}
.notice-empty {
  color: #999;
  font-size: 20px;
  font-weight: 400;
  text-align: center;
}

.notice-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 80px;
}

.notice-header h2 {
  width: 100%;
  margin-bottom: 0;
}

.search-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 50px;
  border: 2px solid #4f8022;
  background: rgba(255, 255, 255, 0.8);
  padding: 10px 30px;
}

.search-wrap input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  color: #4f8022;
  font-size: 20px;
  font-weight: 400;
  font-family: "Paperlogy", sans-serif;
}

.search-wrap button {
  border: none;
  background: transparent;
  cursor: pointer;
}

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

.notice-card {
  display: flex;
  flex-direction: column;
  transition: all 0.3s;
}

.notice-card:hover {
  transform: translateY(-6px);
}

.notice-thumb {
  aspect-ratio: 210 / 297; /* A4 비율 */
  background: #555;
  overflow: hidden;
  border-radius: 30px;
  line-height: 0;
}

.notice-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.notice-body {
  padding: 16px 18px 18px;
}

/* 섹션 타이틀용 .notice-title (변경 없음) */
.notice-title {
  margin-top: 20px;
  color: #333;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 0;
}

/* 공지사항 카드 내부의 .notice-title에 말줄임표 처리 */
.notice-body .notice-title,
.notice-card .notice-title,
.blog-card .notice-title {
  margin-top: 0;
  text-align: center;
  font-weight: 700;
  color: var(--color-primary);
  font-size: 20px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 8px;
}

/* =============== RESPONSIVE =============== */

.view-press-section {
  background: #fff;
}
.sub-hero {
  background: url("/assets/img/press-hero-bg.png") no-repeat center center /
    cover;
}
.sub-hero h2 {
  padding-top: 80px;
  margin-bottom: 0 !important;
}
.sub-hero h2 span {
  color: #fff !important;
}
.sub-hero h2 i {
  color: #fff !important;
}

.press-view {
  background: #fff;
}

.press-view-head {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 2px solid #f0f0f0;
}

.press-view-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 20px 0;
  line-height: 1.4;
}

.press-date {
  font-size: 16px;
  color: #888;
  margin: 0;
}

#post-body {
  font-size: 18px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 40px;
}

#post-body p {
  font-size: 18px;
  line-height: 1.8;
  margin: 0 0 20px 0;
}

#post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 30px 0;
  display: block;
}

#post-body h1,
#post-body h2,
#post-body h3,
#post-body h4,
#post-body h5,
#post-body h6 {
  color: inherit;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-align: inherit;
}

#post-body h1 {
  font-size: 32px;
}

#post-body h2 {
  font-size: 28px;
}

#post-body h3 {
  font-size: 24px;
}

#post-body h4 {
  font-size: 20px;
}

#post-body h5 {
  font-size: 18px;
}

#post-body h6 {
  font-size: 16px;
}

#post-body ul,
#post-body ol {
  margin: 20px 0;
  padding-left: 30px;
}

#post-body ul {
  list-style: disc;
}

#post-body ol {
  list-style: decimal;
}

#post-body li {
  margin: 10px 0;
  font-size: 18px;
  line-height: 1.8;
}

/* TinyMCE 인라인 스타일 복원 */
#post-body strong,
#post-body b {
  font-weight: 700;
}

#post-body em,
#post-body i {
  font-style: italic;
}

#post-body u {
  text-decoration: underline;
}

#post-body s,
#post-body strike {
  text-decoration: line-through;
}

#post-body sub {
  vertical-align: sub;
  font-size: smaller;
}

#post-body sup {
  vertical-align: super;
  font-size: smaller;
}

/* TinyMCE 텍스트 정렬 - 모든 형식 지원 */
#post-body [style*="text-align:left"],
#post-body [style*="text-align: left"],
#post-body [data-mce-style*="text-align:left"],
#post-body [data-mce-style*="text-align: left"],
#post-body .text-left,
#post-body .mce-text-left {
  text-align: left !important;
}

#post-body [style*="text-align:center"],
#post-body [style*="text-align: center"],
#post-body [data-mce-style*="text-align:center"],
#post-body [data-mce-style*="text-align: center"],
#post-body .text-center,
#post-body .mce-text-center {
  text-align: center !important;
}

#post-body [style*="text-align:right"],
#post-body [style*="text-align: right"],
#post-body [data-mce-style*="text-align:right"],
#post-body [data-mce-style*="text-align: right"],
#post-body .text-right,
#post-body .mce-text-right {
  text-align: right !important;
}

#post-body [style*="text-align:justify"],
#post-body [style*="text-align: justify"],
#post-body [data-mce-style*="text-align:justify"],
#post-body [data-mce-style*="text-align: justify"],
#post-body .text-justify,
#post-body .mce-text-justify {
  text-align: justify !important;
}

/* TinyMCE 인용구 */
#post-body blockquote {
  margin: 20px 0;
  padding: 20px 30px;
  border-left: 4px solid var(--color-primary);
  background: #f9f9f9;
  font-style: italic;
  color: #555;
}

/* TinyMCE 수평선 */
#post-body hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 30px 0;
}

/* TinyMCE 테이블 */
#post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

#post-body th,
#post-body td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: left;
}

#post-body th {
  background: #f5f5f5;
  font-weight: 700;
}

/* TinyMCE 코드 */
#post-body pre,
#post-body code {
  font-family: "Courier New", Courier, monospace;
  background: #f4f4f4;
  border-radius: 4px;
}

#post-body code {
  padding: 2px 6px;
  font-size: 0.9em;
}

#post-body pre {
  padding: 15px;
  overflow-x: auto;
  margin: 20px 0;
}

#post-body a {
  color: #7a9a4f;
  text-decoration: underline;
  transition: color 0.3s ease;
}

#post-body a:hover {
  color: #37480f;
}

.press-view-footer {
  padding-top: 30px;
  border-top: 1px solid #e0e0e0;
  text-align: center;
}

.btn-line {
  display: inline-block;
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 600;
  color: #37480f;
  border: 2px solid #37480f;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
  background: #fff;
}

.btn-line:hover {
  background: #37480f;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(55, 72, 15, 0.2);
}

.view-press-section ul,
.view-press-section ol {
  list-style-type: disc;
  padding-inline-start: 20px;
}

.view-press-section :is(dir, menu, ol, ul) ul {
  list-style-type: circle;
}

.view-press-section :is(dir, dl, menu, ol, ul) ul {
  margin-block-start: 0px;
  margin-block-end: 0px;
}

.view-press-section :is(dir, menu, ol, ul) :is(dir, menu, ol, ul) ul {
  list-style-type: square;
}

@media (max-width: 768px) {
  .press-view-title {
    font-size: 28px;
  }

  #post-body {
    font-size: 16px;
  }

  #post-body p,
  #post-body li {
    font-size: 16px;
  }

  #post-body h1 {
    font-size: 26px;
  }

  #post-body h2 {
    font-size: 24px;
  }

  #post-body h3 {
    font-size: 20px;
  }

  #post-body h4 {
    font-size: 18px;
  }

  #post-body h5 {
    font-size: 16px;
  }

  #post-body h6 {
    font-size: 14px;
  }

  #post-body blockquote {
    padding: 15px 20px;
  }
  #post-body h1,
  #post-body h2,
  #post-body h3,
  #post-body h4,
  #post-body h5,
  #post-body h6 {
    margin-top: 20px;
    margin-bottom: 10px;
  }
}
