* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Times New Roman", "Nanum Myeongjo", serif;
  font-size: 16px;
  line-height: 1.6;
  color: #000000;
  background-color: #ffffff;
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 20px;
}

a {
  color: #0000cc;
  text-decoration: underline;
}

a:visited {
  color: #0000cc;
  text-decoration: underline;
}

a:hover {
  color: #cc0000;
  text-decoration: underline;
  text-decoration-color: #cc0000;
}

/* Header */
.site-header {
  border-bottom: 2px solid #000000;
  padding-bottom: 16px;
  margin-bottom: 32px;
}

.site-title {
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
  color: #000000;
}

.site-title:visited {
  color: #000000;
}

.site-description {
  font-size: 13px;
  color: #444444;
  margin-top: 4px;
}

/* Navigation */
.site-nav {
  margin-top: 10px;
  font-size: 14px;
}

.site-nav a {
  margin-right: 16px;
}

/* Post list */
.post-list {
  list-style: disc;
  padding-left: 24px;
}

.post-item {
  margin-bottom: 12px;
  font-size: 16px;
}

.post-date {
  font-size: 13px;
  color: #666666;
  margin-left: 10px;
}

.post-meta {
  font-size: 13px;
  color: #666666;
  margin-bottom: 8px;
}

/* Single post */
.post-header {
  margin-bottom: 28px;
  border-bottom: 1px solid #cccccc;
  padding-bottom: 16px;
}

.post-header .post-title {
  font-size: 22px;
  margin-bottom: 8px;
}

.post-content {
  font-size: 16px;
  line-height: 1.75;
}

.post-content p {
  margin-bottom: 1.2em;
}

.post-content h2 {
  font-size: 18px;
  margin: 1.8em 0 0.6em;
  border-bottom: 1px solid #cccccc;
  padding-bottom: 4px;
}

.post-content h3 {
  font-size: 16px;
  margin: 1.4em 0 0.4em;
}

.post-content ul,
.post-content ol {
  margin: 0.8em 0 0.8em 1.6em;
}

.post-content li {
  margin-bottom: 0.4em;
}

.post-content blockquote {
  border-left: 3px solid #000000;
  margin: 1em 0;
  padding-left: 16px;
  color: #333333;
  font-style: italic;
}

.post-content hr {
  border: none;
  border-top: 1px solid #cccccc;
  margin: 2em 0;
}

/* 반응형 이미지 - 모바일에서 이미지가 화면을 넘지 않도록 */
.post-content img,
.post-content figure img,
.kg-image,
.kg-image-card img {
  max-width: 100%;
  height: auto;
  display: block;
}

.kg-image-card {
  margin: 1.5em 0;
}

.kg-image-card figcaption {
  font-size: 12px;
  color: #666666;
  text-align: center;
  margin-top: 6px;
}

/* Social links */
.social-links {
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: 16px;
  font-size: 13px;
  text-decoration: none;
  color: #0000cc;
  white-space: nowrap;
}

.social-links a:hover {
  text-decoration: underline;
}

.social-links img {
  vertical-align: middle;
}

/* 호라이즌 프레스 로고 링크 */
.horizonpress-link {
  color: inherit !important;
}

.horizonpress-logo {
  height: 18px;
  width: auto;
  opacity: 0.85;
  filter: invert(0);
  transition: opacity 0.15s;
}

.horizonpress-link:hover .horizonpress-logo {
  opacity: 1;
}

.footer-contact {
  font-size: 13px;
  margin-bottom: 6px;
}

.footer-copy {
  font-size: 13px;
  color: #666666;
}

/* Ghost required classes */
.kg-width-wide {
  width: 100%;
}

.kg-width-full {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

/* Footer */
.site-footer {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 2px solid #000000;
  font-size: 13px;
  color: #666666;
}

/* Pagination */
.pagination-arrow {
  font-size: 20px;
  text-decoration: none;
  margin-right: 12px;
  color: #0000cc;
  cursor: pointer;
}

.pagination-arrow:hover {
  color: #cc0000;
}

.pagination-arrow.disabled {
  color: #cccccc;
  cursor: default;
}

/* Back link */
.back-link {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 14px;
}

/* 구독하기 버튼 (헤더 네비) */
.subscribe-btn {
  font-family: "Times New Roman", "Nanum Myeongjo", serif;
  font-size: 14px;
  color: #000000;
  text-decoration: none;
  border-bottom: 1px solid #000000;
  padding-bottom: 1px;
}

.subscribe-btn:visited {
  color: #000000;
}

.subscribe-btn:hover {
  color: #cc0000;
  border-bottom-color: #cc0000;
}

/* 구독 모달 오버레이 */
.subscribe-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 999;
}

/* 구독 모달 */
.subscribe-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.subscribe-modal-box {
  background: #ffffff;
  border: 1px solid #000000;
  padding: 40px 36px 36px;
  width: 100%;
  max-width: 400px;
  position: relative;
  font-family: "Times New Roman", "Nanum Myeongjo", serif;
}

.subscribe-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #000000;
  line-height: 1;
  padding: 0;
}

.subscribe-modal-close:hover {
  color: #cc0000;
}

.subscribe-modal-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #000000;
}

.subscribe-modal-desc {
  font-size: 13px;
  color: #444444;
  margin-bottom: 24px;
  line-height: 1.5;
}

.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.subscribe-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.subscribe-field label {
  font-size: 13px;
  color: #000000;
}

.required {
  color: #cc0000;
}

.subscribe-field input {
  font-family: "Times New Roman", "Nanum Myeongjo", serif;
  font-size: 14px;
  border: 1px solid #000000;
  padding: 8px 10px;
  background: #ffffff;
  color: #000000;
  outline: none;
  width: 100%;
}

.subscribe-field input:focus {
  border-color: #000000;
  box-shadow: 0 0 0 1px #000000;
}

.subscribe-submit {
  font-family: "Times New Roman", "Nanum Myeongjo", serif;
  font-size: 14px;
  background: #000000;
  color: #ffffff;
  border: none;
  padding: 10px;
  cursor: pointer;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.subscribe-submit:hover {
  background: #333333;
}

.subscribe-submit:disabled {
  background: #999999;
  cursor: not-allowed;
}

.subscribe-error {
  font-size: 12px;
  color: #cc0000;
  min-height: 16px;
}

.subscribe-success {
  text-align: center;
  padding: 20px 0;
  font-size: 15px;
  color: #000000;
}

/* 읽기 진행 바 */
.read-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 0%;
  height: 2px;
  background: #000000;
  z-index: 9999;
  transition: width 0.1s linear;
  max-width: 100vw;
  margin: 0;
}

/* 읽기 예상 시간 */
.reading-time {
  color: #888888;
  font-size: 13px;
}

/* 공유 버튼 */
.share-bar {
  display: flex;
  gap: 10px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #cccccc;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Times New Roman", "Nanum Myeongjo", serif;
  font-size: 13px;
  color: #000000;
  background: none;
  border: 1px solid #000000;
  padding: 6px 14px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.share-btn:hover {
  background: #000000;
  color: #ffffff;
}

.share-kakao svg {
  flex-shrink: 0;
}

.share-copy svg {
  flex-shrink: 0;
}

/* ===== 글 목록 hover 인터랙션 ===== */
.post-item a {
  position: relative;
  text-decoration: none;
  color: #000000;
  display: inline-block;
  transition: transform 0.18s ease;
}

/* 방문한 글 목록 링크: 파란색 + 밑줄 */
.post-item a:visited {
  color: #0000cc;
  text-decoration: underline;
}

.post-item a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: #cc0000;
  transition: width 0.22s ease;
}

.post-item a:hover {
  color: #cc0000;
  transform: translateX(3px);
  text-decoration: none;
}

.post-item a:hover::after {
  width: 100%;
}

/* 모바일 탭 시 살짝 눌리는 효과 */
.post-item a:active {
  transform: translateX(1px);
  opacity: 0.7;
}

/* ===== 페이지 fade in/out 전환 ===== */
body {
  animation: fadeIn 0.25s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

body.fade-out {
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

/* ===== 이전/다음 글 네비게이션 ===== */
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #cccccc;
  font-size: 13px;
}

.post-nav-item {
  flex: 1;
}

.post-nav-item.next {
  text-align: right;
}

.post-nav-label {
  display: block;
  color: #999999;
  margin-bottom: 4px;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.post-nav-title {
  color: #000000;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
  position: relative;
  display: inline-block;
}

.post-nav-title::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: #000000;
  transition: width 0.22s ease;
}

.post-nav-title:hover::after {
  width: 100%;
}

.post-nav-title:visited {
  color: #000000;
}

/* ── ✦ new 뱃지 (72시간 이내 글) ── */
.new-badge {
  display: inline;
  font-size: 11px;
  font-family: sans-serif;
  font-weight: 400;
  color: #cc0000;
  letter-spacing: 0.05em;
  margin-left: 10px;
  vertical-align: middle;
  text-decoration: none;
  pointer-events: none;
}


/* ── 우상단 카테고리 사이드바 ── */
.category-sidebar {
  position: fixed;
  top: 40px;
  right: 40px;
  text-align: right;
  font-size: 14px;
  font-family: "Times New Roman", "Nanum Myeongjo", serif;
  z-index: 100;
  max-width: 160px;
}

.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-list li {
  margin-bottom: 4px;
}

.category-list a {
  color: #000000;
  text-decoration: none;
  font-size: 14px;
}

.category-list a:visited {
  color: #000000;
}

.category-list a:hover {
  color: #cc0000;
  text-decoration: none;
}

/* 화면이 좁으면 사이드바 숨김 */
@media (max-width: 1100px) {
  .category-sidebar {
    display: none;
  }
}

/* ─── 광고 배너 (헤더 아래) ─── */
.ad-banner-wrap {
  margin-bottom: 24px;
}
.ad-banner-a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}
.ad-banner-a:hover { opacity: 0.6; }
.ad-sponsored {
  font-size: 10px;
  color: #bbb;
  letter-spacing: 0.05em;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: sans-serif;
}
.ad-divider {
  width: 1px;
  height: 13px;
  background: #ddd;
  flex-shrink: 0;
}
.ad-logo {
  height: 16px;
  width: auto;
  flex-shrink: 0;
}
.ad-copy {
  font-size: 12px;
  color: #555;
  font-family: sans-serif;
}
