/* 앵커 이동 시 고정 네비바 가림 방지 */
html {
  scroll-padding-top: 65px;
}

/* 인라인 코드: <code> 단독 */
:not(pre)>code {
  color: #000000e1 !important;
  background: none !important;
  padding: 0 !important;
  font-weight: normal !important;
  font-family: inherit;
}

/* card layout */
.card-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 1.5rem;
  justify-items: center;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

.card {
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 24px;
  width: 100%;
  max-width: 360px;
  box-sizing: border-box;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.card h3 {
  margin-top: 0;
  font-size: 1.15rem;
  color: #1f2937;
}

.card p {
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.5;
}

.card p strong {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
  color: #111827;
}

/* nav.pagination */
nav.pagination {
  display: flex !important;
  flex-wrap: nowrap !important;
  /* 한 줄 유지 */
  justify-content: center !important;
  /* 가운데 정렬 유지 */
  align-items: center !important;
  gap: 0 !important;
  /* 간격은 개별 요소에 */
  overflow-x: auto;
}

/* 이전, 다음, 페이지 리스트 모두 flex row 내부 아이템 */
nav.pagination .pagination-previous,
nav.pagination .pagination-next,
nav.pagination .pagination-list {
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* 이전과 다음 버튼 바로 옆에 붙도록 여백 제거 */
nav.pagination .pagination-previous {
  margin-right: 0.25rem !important;
}

nav.pagination .pagination-next {
  margin-left: 0.25rem !important;
}

/* 페이지 번호 리스트 아이템 가로 배치 */
nav.pagination .pagination-list {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 0.25rem !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}

/* 각 페이지 번호 버튼 스타일 */
nav.pagination .pagination-list li {
  margin: 0 !important;
  padding: 0 !important;
}

nav.pagination .pagination-link {
  white-space: nowrap !important;
  padding: 0.35rem 0.8rem !important;
  font-size: 0.9rem !important;
  flex: 0 0 auto !important;
}

/* Sticky CTA Button */
#sticky-cta {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  opacity: 0;
  transform: translateY(100px);
  transition: all 0.3s ease;
}

#sticky-cta.visible {
  opacity: 1;
  transform: translateY(0);
}

#sticky-cta a {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

#sticky-cta a:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
}

/* Hero Section Hover Effects */
.button:hover {
  transform: translateY(-2px);
}

/* Mobile Responsive Improvements */
@media screen and (max-width: 768px) {

  /* Hero Section */
  section#section1 .container {
    padding: 2rem 1rem !important;
  }

  section#section1 h1 {
    font-size: 1.8rem !important;
  }

  section#section1 h2 {
    font-size: 1rem !important;
  }

  section#section1 .button {
    display: block !important;
    width: 100%;
    margin: 0.5rem 0 !important;
    padding: 0.8rem 1.5rem !important;
  }

  /* Trust Section */
  #trust-section>.container>div:nth-child(2) {
    gap: 1.5rem !important;
  }

  #trust-section>.container>div:nth-child(2)>div {
    flex: 1 1 40%;
  }

  #trust-section .has-text-centered:last-child>div {
    gap: 0.5rem !important;
  }

  #trust-section span {
    font-size: 0.75rem !important;
    padding: 0.3rem 0.8rem !important;
  }

  /* Sticky CTA on Mobile */
  #sticky-cta {
    bottom: 10px;
    right: 10px;
  }

  #sticky-cta a {
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
  }

  /* Card Layout */
  .card-wrapper {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Animation for scroll reveal */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  animation: fadeInUp 0.6s ease-out;
}

/* 이전/다음 버튼 스타일 */
nav.pagination .pagination-previous,
nav.pagination .pagination-next {
  white-space: nowrap !important;
  padding: 0.35rem 0.8rem !important;
  font-size: 0.9rem !important;
  cursor: pointer;
}

/* 비활성화 상태 */
nav.pagination .is-disabled {
  pointer-events: none !important;
  opacity: 0.8 !important;
  cursor: default !important;
}


/* Hugo 코드 블록 - 모든 선택자에 적용 */
.highlight,
div.highlight,
.markdown-body .highlight,
.content .highlight,
article .highlight {
  margin-top: 0px !important;  /* 완전히 붙임 */
  margin-bottom: 16px !important;
  display: block !important;
}

.highlight pre,
div.highlight pre {
  margin: 0 !important;
  padding: 12px;
  overflow: auto;
  font-size: 85%;
  line-height: 1.45;
  background-color: #272822 !important;
  border-radius: 0px;
}

/* 코드 블록 내 텍스트 색상 */
.highlight pre code,
.highlight code,
div.highlight pre code,
div.highlight code {
  background-color: transparent !important;
  padding: 0;
  color: #f8f8f2 !important;
}
