/*
Theme Name: Virex Blog
Author: WEBDOT
Author URI: https://webdot.co.kr
Version: 1.0
Description: 2024 - 2025 Project
*/

/* ------------------------
   1. 기본 리셋
------------------------ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  /* ------------------------
     2. 기본 폰트 설정
  ------------------------ */
  body {
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    color: #222;
    line-height: 1.6;
    padding-top: 90px; /* 헤더 높이에 맞게 조정 */
  }
  
  /* ------------------------
     3. 링크 기본 스타일
  ------------------------ */
  a {
    color: inherit;
    text-decoration: none;
  }
  
  /* ------------------------
     4. 워드프레스 기본 블록 스타일 초기화
  ------------------------ */
  .wp-block {
    max-width: 100%;
  }
  .aligncenter {
    display: block;
    margin: 0 auto;
  }
  
  /* ------------------------
     5. 기본 레이아웃 컨테이너
  ------------------------ */
  .container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
  }

  


/* ------------------------
   6. 푸터 스타일
------------------------ */
#site-footer {
  background: #181818;
  color: #fff;
  padding: 0;
  font-size: 16px;
}
.footer-newsletter {
  background: #fff;
  padding: 80px 20px 100px 20px;
}
.footer-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 0 0 0;
  flex-wrap: wrap;
}
.footer-info {
  display: flex;
  align-items: center;
  gap: 32px;
}
.footer-logo img {
  height: 48px;
  display: block;
}
.footer-company {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-company-name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}
.footer-label {
  color: #888;
  margin-right: 8px;
  font-size: 15px;
}
.footer-value {
  color: #fff;
  font-size: 16px;
}
.footer-menu ul {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-menu a {
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  transition: color 0.2s;
}
.footer-menu a:hover {
  color: #b5b5b5;
}
.footer-copyright {
  text-align: center;
  color: #444;
  font-size: 11px;
  margin: 32px 0 0 0;
  padding-bottom: 32px;
}

/** Quick Menu */

.quick-menu {
  position: fixed;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 6.25rem;
  /* 100px */
  background: var(--white);
  box-shadow: 0px 4px 14px rgba(0, 0, 0, 0.06);
  border-radius: 0.75rem;
  border: 1px solid var(--gray200);
  z-index: 1000;
}

  .quick-menu-item {
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1875rem;
    cursor: pointer;
    transition: transform 0.2s ease;
  }
    .quick-menu-item:hover {
      transform: translateY(-2px);
    }
    .quick-menu-item span {
      color: var(--gray800);
      font-size: 0.8125rem;
      font-weight: 500;
      line-height: 0.9375rem;
    }
    .quick-menu-item .icon {
      width: 2.1875rem;
      /* 35px */
      height: 2.1875rem;
      filter: drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.1));
    }
      .quick-menu-item .icon img {
        width: 100%;
        height: 100%;
      }

  .quick-menu-divider {
    width: 3.125rem;
    height: 1px;
    background: var(--gray300);
    margin: 0 auto;
  }

/* ------------------------

/* 반응형 (모바일) */
@media (max-width: 900px) {
  .footer-main {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 5vw 0 5vw;
  }
  .footer-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px;
  }
  .footer-menu ul {
    flex-direction: column;
    gap: 16px;
  }
  .footer-newsletter {
    padding: 60px 20px 80px 20px;
  }
  .newsletter-title {
    font-size: 1.8rem;
    margin-bottom: 32px;
  }
  .newsletter-input-wrap {
    max-width: 100%;
  }
  .newsletter-underline {
    max-width: 100%;
  }
  .newsletter-btn {
    width: 100%;
    max-width: 280px;
    padding: 14px 0;
    font-size: 1.05rem;
  }
}

@media (max-width: 600px) {
  #site-footer {
    font-size: 15px;
  }
  .footer-newsletter {
    padding: 40px 16px 60px 16px;
  }
  .newsletter-inner {
    padding: 0;
  }
  .footer-main {
    padding: 24px 3vw 0 3vw;
  }
  .footer-logo img {
    height: 36px;
  }
  .footer-company-name {
    font-size: 18px;
  }
  .footer-copyright {
    font-size: 13px;
    margin-top: 24px;
    padding-bottom: 24px;
  }
  .newsletter-title {
    font-size: 1.4rem;
    margin-bottom: 28px;
    letter-spacing: -0.01em;
  }
  .newsletter-form {
    gap: 20px;
  }
  .newsletter-input {
    font-size: 1.05rem;
    padding: 6px 0;
  }
  .newsletter-input::placeholder {
    font-size: 1rem;
  }
  .newsletter-btn {
    font-size: 1rem;
    border-radius: 24px;
    padding: 12px 0;
    margin-top: 28px;
    max-width: 100%;
  }
  .newsletter-icon img {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 480px) {
  .footer-newsletter {
    padding: 32px 16px 48px 16px;
  }
  .newsletter-title {
    font-size: 1.25rem;
    margin-bottom: 24px;
  }
  .newsletter-icon {
    margin-right: 8px;
  }
  .newsletter-icon img {
    width: 20px;
    height: 20px;
  }
  .newsletter-input {
    font-size: 0.95rem;
  }
  .newsletter-input::placeholder {
    font-size: 0.9rem;
  }
  .newsletter-btn {
    font-size: 0.95rem;
    border-radius: 20px;
    padding: 10px 0;
  }
}

/* ------------------------
   7. 뉴스레터 영역 스타일 (PC/MO 시안 반영)
------------------------ */
.newsletter-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding: 0 20px;
}
.newsletter-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 40px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.newsletter-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.newsletter-input-wrap {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  margin-bottom: 8px;
}
.newsletter-icon {
  display: flex;
  align-items: center;
  margin-right: 12px;
  font-size: 1.5rem;
}
.newsletter-icon img {
  width: 32px;
  height: 32px;
}
.newsletter-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.15rem;
  color: #888;
  background: transparent;
  padding: 8px 0;
}
.newsletter-input::placeholder {
  color: #bbb;
  font-size: 1.1rem;
}
.newsletter-underline {
  width: 100%;
  max-width: 600px;
  height: 2px;
  background: #222;
  margin: 0 auto 0 auto;
}
.newsletter-btn {
  margin-top: 24px;
  background: #102a5c;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  border: none;
  border-radius: 32px;
  padding: 14px 24px;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: none;
  width: auto;
  min-width: 180px;
}
.newsletter-btn:hover {
  background: #1a3878;
}

/* ------------------------
   8. 푸터 3컬럼 그리드 레이아웃
------------------------ */
.footer-main-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1.5fr;
  gap: 32px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 48px 24px 0 24px;
  align-items: start;
}
.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}
.footer-logo-img {
  height: 48px;
  width: auto;
  margin-bottom: 8px;
}
.footer-contact-col {
  align-items: flex-start;
  gap: 8px;
}
.footer-company-name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}
.footer-company-tel, .footer-company-email {
  font-size: 15px;
  margin-bottom: 4px;
}
.footer-label {
  color: #888;
  margin-right: 8px;
  font-size: 15px;
}
.footer-value {
  color: #fff;
  font-size: 16px;
}
.footer-menu-col {
  align-items: flex-end;
  width: 100%;
  gap: 54px;
}
.footer-menu {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-menu a {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  transition: color 0.2s;
}
.footer-menu a:hover {
  color: #b5b5b5;
}
.footer-copyright {
  text-align: center;
  color: #444;
  font-size: 11px;
  margin: 32px 0 0 0;
  padding-bottom: 32px;
}

@media (max-width: 900px) {
  .footer-main-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 5vw 0 5vw;
  }
  .footer-col, .footer-menu-col {
    align-items: flex-start !important;
    width: 100%;
  }
  .footer-menu {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .footer-logo-img {
    height: 36px;
  }
  .footer-company-name {
    font-size: 18px;
  }
  .footer-copyright {
    font-size: 13px;
    margin-top: 24px;
    padding-bottom: 24px;
  }
}

/* ------------------------
   9. CPT 버튼 스타일 (카테고리 버튼 대체)
------------------------ */
.button-cpt-list {
  display: flex;
  gap: 16px;
  margin: 32px 0 32px 0;
}
.button-cpt-item {
  display: inline-block;
  padding: 0.5rem 1.4rem;
  border-radius: 999px;
  background: #f3f5f7;
  color: #444;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
  letter-spacing: -0.02em;
  border: none;
  outline: none;
  cursor: pointer;
}
.button-cpt-item.selected,
.button-cpt-item:hover,
.button-cpt-item:focus {
  background: #222;
  color: #fff;
}

/* 카테고리/버튼 리스트 전체폭 및 헤더 row 개선 */
.button-category-list {
  display: flex;
  gap: 16px;
  margin: 32px 0 32px 0;
  width: 100%;
  justify-content: flex-start;
  flex-wrap: wrap;
}

/* 마진 보조 클래스 */
.mt-37px {
  margin-top: 37px !important;
}

.button-category-item {
  display: inline-block;
  padding: 0.5rem 1.4rem;
  border-radius: 999px;
  background: #f3f5f7;
  color: #444;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
  letter-spacing: -0.02em;
  border: none;
  outline: none;
  cursor: pointer;
}

.button-category-item.selected,
.button-category-item:hover,
.button-category-item:focus {
  background: #222;
  color: #fff;
}

@media (max-width: 1024px) {
  .button-category-list {
    gap: 12px;
    margin: 28px 0 28px 0;
  }
  
  .mt-37px {
    margin-top: 30px !important;
  }
  
  .button-category-item {
    padding: 0.45rem 1.2rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 767px) {
  .button-category-list {
    gap: 10px;
    margin: 24px 0 24px 0;
  }
  
  .mt-37px {
    margin-top: 24px !important;
  }
  
  .button-category-item {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .button-category-list {
    gap: 8px;
    margin: 20px 0 20px 0;
  }
  
  .mt-37px {
    margin-top: 20px !important;
  }
  
  .button-category-item {
    padding: 0.35rem 0.9rem;
    font-size: 0.85rem;
  }
}

/* 헤더 row 전체폭, 정렬 개선 */
#general-article-list-header, .content-header-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0 0 20px 0;
  padding: 0;
  box-sizing: border-box;
}
.left-items, .content-title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 24px;
  font-weight: 700;
  color: #222;
}
.right-items.flex-row, .content-header-right {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

/* 리스트 타입 아이콘 버튼 스타일 */
.list-type-icons {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 16px;
}
.btn-thumb, .btn-list {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background-color: #f3f5f7;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.btn-thumb:hover, .btn-list:hover {
  background-color: #e8eaed;
}
.btn-thumb::before {
  content: "";
  width: 20px;
  height: 20px;
  background: url('/wp-content/uploads/2025/04/icon-thumb-view.svg') no-repeat center/contain;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}
.btn-list::before {
  content: "";
  width: 20px;
  height: 20px;
  background: url('/wp-content/uploads/2025/04/icon-list-view.svg') no-repeat center/contain;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}
.btn-thumb.active, .btn-list.active {
  background-color: #222;
}
.btn-thumb.active:hover, .btn-list.active:hover {
  background-color: #333;
}
.btn-thumb.active::before, .btn-list.active::before {
  opacity: 1;
  filter: brightness(0) invert(1);
}

/* 검색영역 스타일 개선 */
.search-area {
  display: flex;
  align-items: center;
  background: #f3f5f7;
  border-radius: 8px;
  padding: 0 16px;
  height: 40px;
  flex: 1 1 300px;
  max-width: 320px;
  position: relative;
  transition: all 0.2s ease;
}
.search-area:focus-within {
  background: #fff;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}
.search-area input[type="search"] {
  border: none;
  background: transparent;
  font-size: 1rem;
  color: #222;
  outline: none;
  width: 100%;
  padding: 0 36px 0 0; /* 오른쪽에만 패딩 설정 */
  transition: all 0.2s ease;
}
.search-area input[type="search"]::placeholder {
  color: #999;
  opacity: 1;
  transition: opacity 0.2s ease;
}
.search-area:focus-within input[type="search"]::placeholder {
  opacity: 0.6;
}
.search-area .search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background: url('/wp-content/uploads/2025/04/icon-search.svg') no-repeat center/contain;
  cursor: pointer !important;
  pointer-events: auto !important;
  z-index: 10 !important;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  
  /* 버튼 기본 스타일 초기화 */
  border: none;
  padding: 0;
  margin: 0;
  font-size: 0;
  line-height: 0;
  background-color: transparent;
  outline: none;
}
.search-area .search-icon:hover {
  opacity: 1;
}
.search-area .close-icon {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background: url('/wp-content/uploads/2025/04/icon-close.svg') no-repeat center/contain;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.search-area .close-icon:hover {
  opacity: 1;
}

/* 태블릿 반응형 */
@media (max-width: 1024px) {
  .left-items, .content-title {
    font-size: 22px;
  }
  .search-area {
    max-width: 280px;
  }
  .list-type-icons {
    margin-right: 12px;
  }
}

/* 모바일 반응형 */
@media (max-width: 767px) {
  #general-article-list-header, .content-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
  }
  .left-items, .content-title {
    font-size: 20px;
    margin-bottom: 8px;
    width: 100%;
  }
  .right-items.flex-row, .content-header-right {
    width: 100%;
    justify-content: space-between;
    align-items: center;
  }
  .search-area {
    flex: 1;
    max-width: none;
    height: 36px;
  }
  .search-area input[type="search"] {
    font-size: 14px;
  }
  .btn-thumb, .btn-list {
    width: 32px;
    height: 32px;
  }
  .btn-thumb::before, .btn-list::before {
    width: 18px;
    height: 18px;
  }
  .list-type-icons {
    margin-right: 8px;
    gap: 4px;
  }
}

/* 작은 모바일 화면 */
@media (max-width: 480px) {
  .left-items, .content-title {
    font-size: 18px;
  }
  .search-area {
    height: 34px;
  }
  .search-area input[type="search"] {
    font-size: 13px;
  }
  .search-area .search-icon {
    width: 18px;
    height: 18px;
    right: 10px;
  }
  .search-area .close-icon {
    width: 14px;
    height: 14px;
    right: 36px;
  }
  .btn-thumb, .btn-list {
    width: 30px;
    height: 30px;
  }
  .btn-thumb::before, .btn-list::before {
    width: 16px;
    height: 16px;
  }
}

/* form 전체폭 사용 */
#frm-knowledge,
.container > form#frm-knowledge,
.content-body > form#frm-knowledge {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ------------------------
   10. 카드형 리스트 스타일 (이미지 시안 반영)
------------------------ */
.blog-card {
  background: #F8F9FB;
  border-radius: 8px;
  border-bottom: 1px solid var(--gray100);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  transition: box-shadow 0.3s;
  cursor: pointer;
}

.card-image {
  width: 100%;
  aspect-ratio: 1/1;
  background: #f3f5f7;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card-content {
  padding: 32px 32px 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card-title {
  font-size: 22px;
  font-weight: 700;
  color: #111;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.card-title a {
  color: inherit;
  text-decoration: none;
}
.card-title a:hover {
  text-decoration: underline;
}
.card-excerpt {
  font-size: 16px;
  color: #444;
  line-height: 1.3;
}
.card-category {
  font-size: 16px;
  color: var(--secondary);
  font-weight: 700;
  margin-top: 12px;
  cursor: pointer;
  width: fit-content;
}
@media (max-width: 900px) {
  .card-content {
    padding: 20px 16px 16px 16px;
    gap: 10px;
  }
  .card-title {
    font-size: 1.2rem;
  }
  .card-excerpt {
    font-size: 1rem;
  }
}

/* 카드형(thumb-view)와 리스트형(list-view) 분기 스타일 */
.grid-container.thumb-view {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  width: 100%;
  margin: 2rem auto;
}
.grid-container.thumb-view .blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.grid-container.list-view {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  margin: 2rem auto;
  border-top: 1px solid var(--gray100);
}
.grid-container.list-view .blog-card {
  display: flex;
  flex-direction: row-reverse;
  align-items: stretch;
  min-height: 180px;
  background: #fff;
  border-radius: 0px;
  overflow: hidden;
  box-shadow: none;
  margin-bottom: 0;
  border-bottom: 1px solid var(--gray100);
  transition: background-color 0.2s ease;
}
.grid-container.list-view .blog-card:hover {
  background-color: #f8f9fb;
}
.grid-container.list-view .card-image {
  width: 260px;
  min-width: 260px;
  height: 100%;
  aspect-ratio: auto;
}
.grid-container.list-view .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.grid-container.list-view .card-content {
  flex: 1 1 0;
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.grid-container.list-view .card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.grid-container.list-view .card-excerpt {
  font-size: 15px;
  color: #444;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}
.grid-container.list-view .card-category {
  font-size: 15px;
  color: var(--secondary);
  font-weight: 700;
  margin-top: 8px;
  cursor: pointer;
  width: fit-content;
}

@media (max-width: 1200px) {
  .grid-container.thumb-view {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .grid-container.list-view .card-content {
    padding: 20px 24px;
  }
}

@media (max-width: 900px) {
  .grid-container.thumb-view {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .grid-container.list-view .blog-card {
    flex-direction: row-reverse;
    min-height: 150px;
  }
  .grid-container.list-view .card-image {
    width: 160px;
    min-width: 160px;
  }
  .grid-container.list-view .card-content {
    padding: 16px 20px;
    gap: 8px;
  }
  .grid-container.list-view .card-title {
    font-size: 18px;
  }
  .grid-container.list-view .card-excerpt {
    font-size: 14px;
  }
  .grid-container.list-view .card-category {
    font-size: 14px;
  }
}

@media (max-width: 767px) {
  .grid-container.thumb-view {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .grid-container.list-view .blog-card {
    flex-direction: column;
    min-height: 0;
  }
  .grid-container.list-view .card-image {
   display: none;
  }
  .grid-container.list-view .card-content {
    padding: 20px 16px;
  }
  
  /* 헤더 영역 모바일 반응형 개선 */
  #general-article-list-header, .content-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
  }
  .right-items.flex-row, .content-header-right {
    width: 100%;
    display: flex;
    align-items: center;
  }
  .list-type-icons {
    margin-right: 10px;
    gap: 6px;
  }
  .search-area {
    flex: 1;
  }
}

@media (max-width: 480px) {
  .grid-container.thumb-view {
    gap: 1.25rem;
  }
  .grid-container.list-view .card-image {
    display: none;
  }
  .grid-container.list-view .card-content {
    padding: 16px 12px;
    gap: 6px;
  }
  .grid-container.list-view .card-title {
    font-size: 16px;
  }
  .grid-container.list-view .card-excerpt {
    font-size: 13px;
    -webkit-line-clamp: 2;
  }
  
  /* 아주 작은 화면에서 검색창 UI 개선 */
  .search-area {
    height: 32px;
    padding: 0 12px;
  }
  .search-area input[type="search"] {
    font-size: 13px;
  }
  .search-area .search-icon {
    width: 16px;
    height: 16px;
    right: 10px;
  }
}

/* ------------------------
   11. 페이지네이션 스타일
------------------------ */
.navigation.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 40px 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  color: #666;
  text-decoration: none;
  transition: all 0.2s ease;
}

.page-numbers.current {
  background: #F3F5F7;
  color: #222;
  font-weight: 600;
}

.page-numbers.prev,
.page-numbers.next {
  position: relative;
  width: 40px;
  height: 40px;
  font-size: 0;
  color: transparent;
}

.page-numbers.prev::before,
.page-numbers.next::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.4;
  transition: opacity 0.2s ease;
}

.page-numbers.prev::before {
  background-image: url('/wp-content/uploads/2025/04/icon-arrow-left.svg');
}

.page-numbers.next::before {
  background-image: url('/wp-content/uploads/2025/04/icon-arrow-right.svg');
}

.page-numbers.prev:hover::before,
.page-numbers.next:hover::before {
  opacity: 0.7;
}

@media (max-width: 768px) {
  .page-numbers.prev::before,
  .page-numbers.next::before {
    width: 12px;
    height: 12px;
  }
}

/* ------------------------
   12. 블로그 상세 페이지 스타일
------------------------ */
.single-header-bg {
  width: 100%;
  height: 300px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.single-header-bg .container {
  position: relative;
  z-index: 2;
}

.single-header-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.blog-header-content {
  position: relative;
  z-index: 1;
}

.page-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 10px;
}

.page-subtitle {
  font-size: 18px;
  font-weight: 400;
  opacity: 0.9;
}

.single-post-content {
  max-width: 1200px;
  padding: 60px 0;
}

.single-post-content .container {
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}

.single-post-header {
  padding: 40px 24px 16px;
  position: relative;
}

.single-post-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #222;
}

.single-post-title {
  font-size: 32px;
  font-weight: 700;
  color: #222;
  margin-bottom: 15px;
  line-height: 1.3;
}

.single-post-meta {
  display: flex;
  gap: 20px;
  color: #666;
  font-size: 14px;
}

.single-post-divider {
  border: none;
  border-top: 1px solid #eee;
  margin: 20px 0 80px;
}

.single-post-body {
  text-align: left;
}

.single-post-content ul {
	margin-left: 1.5rem;
}

.single-post-thumbnail {
  margin-bottom: 40px;
  text-align: center;
}

.single-post-thumbnail img {
  width: 45%;
  height: auto;
  border-radius: 8px;
}

.single-post-content {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
}

.single-post-content p {
  margin-bottom: 20px;
}

.single-post-content h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 40px 0 20px;
  color: #222;
  line-height: 1.6;
}

/* blockquote에서 변환된 H2를 위한 특별 스타일 */
.single-post-content h2.converted-from-blockquote {
  font-size: 22px;
  font-weight: 600;
  color: #003960;
  padding: 20px 0;
  border-left: 4px solid #003960;
  padding-left: 20px;
  margin: 35px 0 25px;
  background: linear-gradient(to right, rgba(0, 57, 96, 0.05) 0%, transparent 100%);
  font-style: normal;
  letter-spacing: -0.02em;
}

.single-post-content h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 30px 0 15px;
}

.single-post-content img {
	margin: 40px 0;
}

.single-post-footer {
  margin-top: 60px;
  text-align: center;
}

.btn-back-to-list {
  display: inline-block;
  padding: 10px 16px;
  background: #F3F5F7;
  color: #222;
  border-radius: 6px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.2s ease;
}

.btn-back-to-list:hover {
  background: #222;
  color: #fff;
}

.post-navigation {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  border-top: 1px solid #eee;
}

.nav-item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}

.nav-link {
  display: flex;
  align-items: center;
  width: 100%;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.nav-link:hover:not(.disabled) {
  opacity: 0.7;
}

.nav-link.disabled {
  opacity: 0.5;
  cursor: default;
}

.nav-previous .nav-link {
  justify-content: flex-start;
}

.nav-next .nav-link {
  justify-content: flex-start;
}

.nav-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  margin: 0 15px;
}

.nav-label {
  font-size: 14px;
  font-weight: 700;
  color: #000;
  min-width: 50px;
}

.nav-title {
  color: #222;
  font-weight: 500;
  font-size: 16px;
  transition: color 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-title:hover {
  color: #0054FF;
}

.nav-disabled {
  color: #aaa;
  font-size: 14px;
}

/* 반응형 스타일 */
@media (max-width: 768px) {
  .single-header-bg {
    height: 200px;
  }
  
  .page-title {
    font-size: 28px;
  }
  
  .page-subtitle {
    font-size: 16px;
  }
  
  .single-post-content {
    padding: 40px 0;
  }
  
  .single-post-title {
    font-size: 26px;
  }
  
  .post-navigation {
    gap: 16px;
  }
  
  .nav-item {
    padding: 16px;
  }
  
  .nav-title {
    font-size: 15px;
  }
}

@media screen and (max-width: 768px) {
    body {
        padding-top: 70px; /* 모바일에서는 더 작은 헤더 높이 */
    }
}