/* ========================= */
/* ▶️ 강조 및 텍스트 효과 */
/* ========================= */

.gpc-entry-content strong {
  font-weight: bold;
  background-image: linear-gradient(#fff2a8 0%, #fff2a8 100%);
  background-size: 0% 100%;
  background-repeat: no-repeat;
  background-position: 0 100%;
  animation: highlightGrow 1.2s forwards;
}

@keyframes highlightGrow {
  to {
    background-size: 100% 100%;
  }
}

/* ========================= */
/* ▶️ 제목 스타일 (클래스 기반) */
/* ========================= */

.entry-content .custom-title h2 {
  position: relative;
  padding: 18px 24px;
  margin: 40px 0 20px;
  border-left: 6px solid #222;
  background-color: #f1f1f1;
  font-size: 22px;
  font-weight: 700;
  color: #111;
  box-shadow: inset 0 -1px 0 #333;
}

.entry-content .custom-title h3 {
  margin: 18px -5px 12px;
  font-size: 20px;
  font-weight: 600;
  color: #444;
  padding: 12px;
  text-align: left;
  border-left: #555 6px solid;
  background-color: #f5f5f5;
  border-bottom: 1px solid #ccc;
}

/* ========================= */
/* ▶️ 링크 효과 (클래스 기반) */
/* ========================= */

.entry-content .custom-link a {
  position: relative;
  display: inline-block;
  color: #e53935;
  text-decoration: none;
  transition: color 0.3s ease;
  z-index: 1;
}

.entry-content .custom-link a::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-color: #e53935;
  z-index: -1;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s ease;
  border-radius: 2px;
}

.entry-content .custom-link a:hover::before {
  transform: scaleY(1);
}

.entry-content .custom-link a:hover {
  color: #fff;
}

/* ========================= */
/* ▶️ 이전/다음 글 네비게이션 */
/* ========================= */

.single #nav-below {
  display: flex;
  justify-content: space-between;
  padding: 20px;
  background-color: #343a40;
  border-top: 1px solid #495057;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
  margin-top: 20px;
}

.single .nav-previous,
.single .nav-next {
  display: flex;
  align-items: center;
  flex: 1;
}

.single .prev a,
.single .next a {
  color: #d6d6d6 !important;
  text-decoration: none;
  font-weight: 500 !important;
  transition: color 0.3s, transform 0.3s, background 0.3s;
  border-radius: 5px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, .1);
  line-height: 1.5;
  display: flex;
  align-items: center;
  flex: 1;
}

@keyframes shake-nav {
  0% { transform: translateX(0); }
  25% { transform: translateX(2px); }
  50% { transform: translateX(-2px); }
  75% { transform: translateX(2px); }
  100% { transform: translateX(0); }
}

.single .prev a,
.single .next a {
  animation: shake-nav 2s infinite ease-in-out;
}

/* ========================= */
/* ▶️ 홈/아카이브 제목 (전역 적용) */
/* ========================= */

.home h2.entry-title,
.archive h2.entry-title {
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.4;
  margin-bottom: 10px;
  color: #111;
  font-family: 'Noto Sans KR', sans-serif;
}

/* ========================= */
/* ▶️ 블로그/아카이브 카드 레이아웃 */
/* ========================= */

body.blog .site-main,
body.archive .site-main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 0 auto;
  padding: 0 20px;
}

body.blog .post,
body.archive .post {
  border: 1px solid #ddd;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

body.blog .post .post-image img,
body.archive .post .post-image img {
  width: 100%;
  height: 100%;         /* ✅ 박스 높이에 딱 맞추기 */
  object-fit: cover;    /* ✅ 이미지가 잘려도 꽉 채움 */
  display: block;
  border-radius: 5px;
}

body.blog .post .post-image,
body.archive .post .post-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;     /* ✅ 정사각형 만들기 */
  overflow: hidden;
  border-radius: 5px;
}

body.blog .read-more,
body.archive .read-more {
  display: inline-block;
  padding: 6px 12px;
  background-color: #0073e6;
  color: #fff;
  border-radius: 4px;
  font-size: 14px;
  text-decoration: none;
  margin-top: 10px;
}

body.blog .read-more:hover,
body.archive .read-more:hover {
  background-color: #005bb5;
}

body.blog .entry-meta,
body.archive .entry-meta,
body.blog .entry-footer,
body.archive .entry-footer {
  display: none !important;
}

/* ========================= */
/* ▶️ gpc 커스텀 스타일 (사용 시 클래스 추가 필요) */
/* ========================= */

.gpc-entry-content h2,
.gpc-h2 {
  font-size: 22px;
  line-height: 1.5;
  color: #2c3e50;
  padding: 12px 15px;
  background: linear-gradient(90deg, #ecf0f1, transparent);
  border-left: 4px solid #3498db;
  border-radius: 5px;
}

.gpc-alert-box {
  background: #fff8dc;
  border-left: 6px solid #f1c40f;
  padding: 20px;
  margin: 30px 0;
  border-radius: 10px;
  font-size: 18px;
  color: #333;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.gpc-steps {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 15px;
}

.gpc-step {
  flex: 1;
  border: 1px solid #f1c40f;
  border-radius: 8px;
  padding: 15px;
  background: #fff;
  text-align: center;
  transition: all 0.2s ease;
}

.gpc-step:hover { background-color: #fff3c4; }

.gpc-step-title {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 6px;
}

.gpc-step-desc {
  font-size: 14px;
  color: #555;
}

.gpc-styled-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  font-size: 14px;
  text-align: center;
}

.gpc-styled-table thead {
  background: linear-gradient(90deg, #4e54c8, #8f94fb);
  color: white;
}

.gpc-styled-table th,
.gpc-styled-table td {
  padding: 14px 16px;
  font-size: 18px;
}

.gpc-styled-table tbody tr {
  background-color: #fff;
  border-bottom: 1px solid #eee;
}

.gpc-faq-box {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 30px 0;
}

.gpc-faq-item {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.gpc-faq-q {
  background-color: #3b3f45;
  color: #fff;
  padding: 16px;
  font-weight: bold;
  font-size: 18px;
}

.gpc-faq-a {
  background-color: #f9f9f9;
  color: #333;
  padding: 16px;
  font-size: 17px;
  line-height: 1.6;
}

.gpc-card-box {
  padding: 30px;
  border-radius: 16px;
  max-width: 600px;
  margin: 40px auto;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  font-family: 'Apple SD Gothic Neo', sans-serif;
}

.gpc-card-yellow { background-color: #fff1b8; }
.gpc-card-blue   { background-color: #d6f0ff; }
.gpc-card-green  { background-color: #d6f9d6; }

.gpc-card-title {
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #222;
}

.gpc-card-desc {
  font-size: 16px;
  line-height: 1.7;
  color: #333;
}

.gpc-btn-shop {
  display: inline-block;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  color: #fff;
  background-color: #ff9800;
  border-radius: 24px;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: background 0.2s ease;
}

.gpc-btn-shop:hover {
  background-color: #e68900;
}

.gpc-entry-content a {
  position: relative;
  display: inline-block;
  color: #e53935;
  text-decoration: none;
  transition: color 0.3s ease;
  z-index: 1;
}

.gpc-entry-content a::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-color: #e53935;
  z-index: -1;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s ease;
  border-radius: 2px;
}

.gpc-entry-content a:hover::before {
  transform: scaleY(1);
}

.gpc-entry-content a:hover {
  color: #fff;
}
/* ✅ IP 카드 박스 */
.ip-box {
  max-width: 600px;
  margin: 40px auto;
  background-color: #fff;
  border: 2px solid #ccc;
  border-radius: 10px;
  font-family: 'Segoe UI', sans-serif;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}
.ip-box table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.ip-box th {
  background-color: #007bff;
  color: white;
  padding: 20px;
  font-size: 22px;
  text-align: center;
}
.ip-box td {
  padding: 25px 20px;
  font-size: 18px;
  text-align: center;
  background-color: #f9f9f9;
  color: #333;
}

/* ✅ 구간 제목 */
.section-title {
  margin-top: 40px;
  margin-bottom: 16px;
  font-size: 22px;
  font-weight: 700;
  color: #2c3e50;
  padding: 14px 18px;
  background: linear-gradient(90deg, #ecf0f1, transparent);
  border-left: 5px solid #3498db;
  border-radius: 6px;
}

/* ✅ 소제목 */
.sub-section {
  font-size: 18px;
  font-weight: 600;
  margin: 25px 0 10px;
  color: #333;
  background-color: #f2f2f2;
  padding: 10px 14px;
  border-left: 4px solid #888;
  border-radius: 4px;
}

/* ✅ 팁 박스 */
.tip-box {
  background: #fff8dc;
  border-left: 6px solid #f1c40f;
  padding: 15px;
  margin: 20px 0;
  border-radius: 8px;
  font-size: 16px;
  color: #333;
}

/* ✅ 경고 박스 */
.warn-box {
  background: #ffe9e9;
  border-left: 6px solid #e74c3c;
  padding: 15px;
  margin: 20px 0;
  border-radius: 8px;
  font-size: 16px;
  color: #c0392b;
}
@media (max-width: 768px) {
  /* ▶️ gpc-steps: 가로 정렬 → 세로 정렬 */
  .gpc-steps {
    flex-direction: column;
    gap: 14px;
  }

  .gpc-step {
    padding: 14px;
    font-size: 15px;
  }

  .gpc-step-title {
    font-size: 15px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .gpc-step-title span {
    font-size: 13px !important;
    padding: 4px 9px !important;
  }

  .gpc-step-desc {
    font-size: 14px;
    line-height: 1.5;
  }

  /* ▶️ gpc-card-box 내부 정렬 */
  .gpc-card-box {
    padding: 20px;
    margin: 30px 10px;
  }

  /* ▶️ .ip-box 내부 간격 및 폰트 최적화 */
  .ip-box td {
    padding: 18px 12px;
    font-size: 16px;
  }

  .ip-box th {
    font-size: 18px;
    padding: 16px;
  }

  /* ▶️ section-title, sub-section 크기 조정 */
  .section-title {
    font-size: 18px;
    padding: 12px 14px;
  }

  .sub-section {
    font-size: 15px;
    padding: 8px 12px;
  }

  /* ▶️ tip-box, warn-box 여백 및 크기 조정 */
  .tip-box,
  .warn-box {
    padding: 12px;
    font-size: 14px;
    margin: 16px 0;
  }

  /* ▶️ read-more 버튼 줄이기 */
  .read-more {
    padding: 6px 10px !important;
    font-size: 13px !important;
  }
}
.gpc-step-desc strong {
  font-weight: 700;
  color: #000;
  background: #fff9c4;
  padding: 0 3px;
  border-radius: 3px;
}
.ip-box table,
.ip-box thead,
.ip-box tr,
.ip-box td,
.ip-box th {
  border: none !important;
}
/* ✅ IP 셀 폭 조정 및 정렬 */
.ip-box th,
.ip-box td {
  display: table-cell;
  width: 100%;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
}
@media (max-width: 768px) {
  .gpc-styled-table-wrapper {
    overflow-x: hidden; /* ✅ 스크롤 제거 */
  }

  .gpc-styled-table {
    width: 100%;
    min-width: auto;
    table-layout: auto;
  }

  .gpc-styled-table th,
  .gpc-styled-table td {
    font-size: 12px;
    padding: 6px 8px;
    word-break: break-word;
  }
}
/* ✅ 워드프레스 대표 이미지 중앙 정렬 */
.single .post-image img,
.single .featured-image img,
.single .entry-header img {
  display: block;
  margin: 0 auto;
  width: 320px;         /* ✅ 원하는 고정 너비 */
  height: 320px;        /* ✅ 원하는 고정 높이 */
  object-fit: cover;    /* ✅ 비율 유지하면서 잘라내기 */
  border-radius: 8px;   /* 선택: 모서리 둥글게 */
}
/* ✅ 단일 글 제목(h1.entry-title) 크기 줄이기 및 중앙 정렬 */
.single h1.entry-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 20px;
  color: #111;
  text-align: center;
  font-family: 'Noto Sans KR', sans-serif;
}
/* =========================
   🧩 반응형 그리드 & 카드
========================= */
.gpc-grid{display:grid;gap:14px}
.gpc-grid.col2{grid-template-columns:repeat(2,minmax(0,1fr))}
.gpc-grid.col3{grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:768px){.gpc-grid.col2,.gpc-grid.col3{grid-template-columns:1fr}}
.gpc-card{border:1px solid #eee;border-radius:12px;padding:16px;background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.05)}

/* =========================
   ↔️ 테이블 가로 스크롤 래퍼
========================= */
.gpc-table-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
.gpc-table-scroll table{min-width:680px}

/* =========================
   🔻 접이식 FAQ (details)
========================= */
.gpc-qa details{border:1px solid #eee;border-radius:10px;background:#fff;margin:10px 0}
.gpc-qa summary{cursor:pointer;padding:14px 16px;font-weight:700}
.gpc-qa .a{padding:0 16px 14px;color:#444;line-height:1.7}

/* =========================
   📌 스티키 알림 바 (상단 고정)
========================= */
.gpc-sticky-alert{position:sticky;top:0;z-index:50;background:#111;color:#fff;padding:10px 14px;border-left:6px solid #e53935}
.gpc-sticky-alert a{color:#ffd54f;text-decoration:underline}

/* =========================
   🖼️ 이미지+캡션 카드
========================= */
.gpc-figure{margin:18px 0;border-radius:12px;overflow:hidden;box-shadow:0 2px 10px rgba(0,0,0,.06)}
.gpc-figure img{width:100%;display:block}
.gpc-figcap{padding:10px 12px;background:#fafafa;font-size:14px;color:#555}

/* =========================
   💡 핵심 콜아웃 문단
========================= */
.gpc-callout{background:linear-gradient(90deg,#fffde7,#ffffff);border-left:6px solid #fbc02d;padding:14px 16px;border-radius:10px}

a.gpc-link-btn {
  display: inline-block; /* inline-flex 대신 inline-block */
  padding: 8px 16px;
  margin: 4px 0;
  background-color: #0073e6;
  color: #fff !important;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}
a.gpc-link-btn:hover {
  background-color: #005bb5;
  box-shadow: 0 6px 12px rgba(0,0,0,0.25);
  transform: translateY(-2px);
}
.gpc-entry-content a.gpc-link-btn::before {
  content: none !important;
}
.gpc-link-btn {
  display: inline-block;
  padding: 12px 22px;
  background-color: #0066cc; /* 정부24 메인 블루 색상 */
  color: #fff !important;
  font-weight: 700;
  font-size: 15px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.25s ease-in-out;
  box-shadow: 0 3px 8px rgba(0, 102, 204, 0.3);
}

.gpc-link-btn:hover {
  background-color: #004a99;
  box-shadow: 0 4px 10px rgba(0, 102, 204, 0.45);
  transform: translateY(-1px);
}

/* 중간 삽입 시 버튼 정렬 */
.gpc-btn-center {
  text-align: center;
  margin: 18px 0;
}