/* ================================================= /
/ ▶️ Pretendard-GPC 폰트 정의 및 전역 적용 /
/ ================================================= */

/* 1. Regular 400 */
@font-face {
font-family: 'Pretendard-GPC';
src: url('https://itprism.co.kr/wp-content/uploads/font/Pretendard-Regular.subset.woff2') format('woff2');
font-weight: 400;
font-style: normal;
font-display: swap;
}

/* 2. Medium 600 */
@font-face {
font-family: 'Pretendard-GPC';
src: url('https://itprism.co.kr/wp-content/uploads/font/Pretendard-Medium.subset.woff2') format('woff2');
font-weight: 600;
font-style: normal;
font-display: swap;
}

/* 3. Bold 700 */
@font-face {
font-family: 'Pretendard-GPC';
src: url('https://itprism.co.kr/wp-content/uploads/font/Pretendard-Bold.subset.woff2') format('woff2');
font-weight: 700;
font-style: normal;
font-display: swap;
}

/* 5. strong 태그 Bold 700 */
strong, b {
font-weight: 700 !important;
}

/* ================================================= /
/ 제목(font-family 수정) /
/ ================================================= */
.entry-content .custom-title h2 {
font-family: 'Pretendard-GPC', sans-serif !important;
}
.entry-content .custom-title h3 {
font-family: 'Pretendard-GPC', sans-serif !important;
}
.home h2.entry-title,
.archive h2.entry-title {
font-family: 'Pretendard-GPC', sans-serif !important;
}
.single h1.entry-title {
font-family: 'Pretendard-GPC', sans-serif !important;
}

/* ========================================================= /
/ ▶️ 스크롤 감지 강조 애니메이션 (클래스 기반 - 최종 안정화 버전) /
/ ========================================================= */
.entry-content strong {
  position: relative !important;
  font-weight: 700 !important;
  color: inherit !important;
  background-color: transparent !important;
  z-index: 1 !important;
}

.entry-content strong::after {
  content: '' !important;
  position: absolute !important;
  left: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 50% !important;
  background-color: #FFB74D !important; /* 주황색 */
  z-index: -1 !important;
  
  transform: scaleX(0) !important;
  transform-origin: left !important;
  
  /* 애니메이션 속도: 2초 */
  transition: transform 2s ease !important; 
}

/* JavaScript에 의해 .is-visible 클래스가 추가되면 애니메이션 실행 */
.entry-content strong.is-visible::after {
  transform: scaleX(1) !important;
}
/* = */
/* ▶️ 제목 스타일 (클래스 기반) */
/* = */
.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: 'Pretendard-GPC', 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:  'Pretendard-GPC', 'Noto Sans KR', system-ui, 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;
}
/* ✅ IP 카드 박스 */
.ip-box {
  max-width: 600px;
  margin: 40px auto;
  background-color: #fff;
  border: 2px solid #ccc;
  border-radius: 10px;
  font-family: 'Pretendard-GPC', 'Noto Sans KR', system-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: 'Pretendard-GPC', 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}

/* ====================================================================== */
/* ▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼ 기존 버튼 CSS 교체 ▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼ */
/* ====================================================================== */

/* ====
   🔴 GPC CTA 강제 오버라이드(방법 B)
   - 테마의 a[class*="btn"], .button, .wp-block-button__link 규칙 무력화
   - 반드시 CSS 맨 아래에 배치
   ==== */
.entry-content .gpc-btn-center > a.gpc-link-btn,
.entry-content a.gpc-link-btn.button,
.entry-content a.gpc-link-btn[class*="btn"],
.entry-content .wp-block-button__link.gpc-link-btn{
  /* 레이아웃 & 형태 */
  display: inline-flex !important; /* 아이콘과 텍스트 정렬 */
  align-items: center !important;
  justify-content: center !important;
  min-height: 52px !important;
  padding: 0 24px !important;
  border-radius: 8px !important; /* 살짝 둥근 모서리 */
  border: 0 !important;
  text-align: center !important;
  text-decoration: none !important;
  line-height: 1 !important;
  
  /* 색상 & 폰트 */
  background-color: #ef5350 !important; /* 이미지와 유사한 붉은 계열 */
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-weight: 500 !important;
  font-size: 16px !important;
  
  /* 입체 효과 (그림자) */
  box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14), 
              0 3px 1px -2px rgba(0,0,0,0.12), 
              0 1px 5px 0 rgba(0,0,0,0.2) !important;
  
  /* 부드러운 전환 효과 */
  transition: box-shadow 0.28s ease-in-out, background-color 0.28s ease-in-out !important;
  
  /* 이전 애니메이션 제거 */
  animation: none !important;
}

/* 호버/포커스 상태도 강제 */
.entry-content .gpc-btn-center > a.gpc-link-btn:hover,
.entry-content .gpc-btn-center > a.gpc-link-btn:focus,
.entry-content a.gpc-link-btn.button:hover,
.entry-content a.gpc-link-btn.button:focus{
  background-color: #e53935 !important; /* 살짝 더 진한 색으로 변경 */
  transform: translateY(-1px) !important; /* 살짝 떠오르는 효과 */
  box-shadow: 0 4px 5px 0 rgba(0,0,0,0.14), 
              0 1px 10px 0 rgba(0,0,0,0.12), 
              0 2px 4px -1px rgba(0,0,0,0.3) !important;
  outline: none !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* 전역 a::before 밑칠/덮개 효과 완전 차단(버튼 한정) */
.entry-content a.gpc-link-btn::before,
.entry-content a.gpc-link-btn::after{ content:none !important; display:none !important; }

/* 1) gpc-callout / tip-box 안에서는 전역 하이라이트 애니메이션 끄기 */
.gpc-callout strong,
.tip-box strong {
  /* 전역 하이라이트 해제 */
  animation: none !important;
  background-image: none !important;
  background-color: transparent;
  background-size: auto;
}
/* 2) 박스별 전용 강조 스타일 적용 */
.gpc-callout strong {
  color: #c2185b;
  background-color: #fff3f7;
  padding: 2px 4px;
  border-radius: 4px;
}
.tip-box strong {
  color: #c2185b;
  background-color: #fff3f7;
  padding: 2px 4px;
  border-radius: 4px;
}
/* ========================================================= /
/ ▶️ 시각적 강조용 클래스 (애니메이션 없음) /
/ ========================================================= */

/* <span> 태그에 적용하여 굵게만 표시하는 용도 */
.text-bold {
  font-weight: 700 !important;
}
.entry-content, .entry-content p { font-family: 'Pretendard-GPC','Noto Sans KR',system-ui,sans-serif !important; }