/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

/* 전체 컨테이너 너비 확장 */
@media (min-width: 1025px) {
  /* 전체 레이아웃 wrapper */
  .container.grid-container {
    max-width: 1260px !important;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
  }

  /* 본문 + 사이드바 2단 grid 레이아웃 */
  .generate-columns-container {
    display: grid !important;
    grid-template-columns: 900px 360px !important; /* 본문 900px + 사이드바 360px = 총 1260px */
    column-gap: 0 !important;
    box-sizing: border-box;
  }

  /* 본문 wrapper */
  #primary.content-area {
    width: 900px !important;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
  }

  /* 아티클 내부 전체 */
  .inside-article {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
  }

  /* 본문 내용: 900px 고정 */
  .entry-content {
    width: 900px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box;
  }

  /* 내부 요소들 */
  .entry-content > * {
    max-width: 100% !important;
    box-sizing: border-box;
  }

  /* 사이드바 */
  #right-sidebar {
    width: 360px !important;
    box-sizing: border-box;
  }
}

/* 검색 입력창 높이 및 글자 크기 조정 */
.widget_search input[type="search"] {
  height: 32px !important;
  padding: 4px 8px !important;
  font-size: 15px !important;
  line-height: 1.4 !important;
  box-sizing: border-box;
}

/* 검색 버튼 높이 및 글자 크기 정리 */
.widget_search button {
  height: 32px !important;
  padding: 0 12px !important;
  font-size: 15px !important;
  line-height: 1.4 !important;
  white-space: nowrap !important;
  box-sizing: border-box;
  font-family: "Noto Sans KR", sans-serif;
}

/* 기본 상태에서는 밑줄 제거 */
a {
  text-decoration: none;
}

/* 마우스 오버 시 밑줄 표시 */
a:hover {
  text-decoration: underline;
}

/* ------------------------------
   헤딩(h1, h2, h3) 크기 조정
------------------------------ */
h1 {
  font-size: 30px;
  line-height: 1.4;
  margin-bottom: 1em;
}

h2 {
  font-size: 24px;
  line-height: 1.45;
  margin-top: 2em;
  margin-bottom: 0.9em;
}

h3 {
  font-size: 19px;
  line-height: 1.45;
  margin-top: 1.6em;
  margin-bottom: 0.7em;
}

@media (max-width: 768px) {
  h1 {
    font-size: 25px;
  }

  h2 {
    font-size: 21px;
  }

  h3 {
    font-size: 18px;
  }
}

/* ------------------------------
   <code> 태그에 코드 스타일 적용
------------------------------ */
code {
  font-family: 'Courier New', Courier, monospace;
  background-color: #f4f4f4;
  padding: 2px 4px;
  font-size: 14px;
  color: #c7254e;
  border-radius: 4px;
}

/* 관련 포스트 박스 */
.related-posts {
  border: 2px solid #e9e9e9;
  border-radius: 20px;
  padding: 20px;
}

/* 커스텀 포스트 박스 */
.custom-post-box {
  padding: 0 15px;
}

@media (max-width: 768px) {
  .custom-post-box {
    padding: 0 15px;
  }

  .site-content {
    padding: 0 15px;
  }
}

/* 모바일 테이블 가로 스크롤 */
@media (max-width: 768px) {
  .entry-content table {
    display: block;
    overflow-x: auto;
    width: 100%;
  }

  .entry-content table td,
  .entry-content table th {
    white-space: nowrap;
    min-width: 100px;
  }
}