/* 사이트 전체 배경 이미지 제거 */
body {
    background-image: none !important;
    background-color: #ffffff !important;
}

/* ===================== */
/* 이미지 중앙정렬 (개선 버전) */
/* ===================== */
.single .wp-block-image img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* ===================== */
/* GeneratePress 기본 스타일 */
/* ===================== */

/* Site title and tag line */
.site-description {
	margin-top: 1.2em;
	background-color: rgba(31,32,36, 0.4);
	padding: 14px;
	border: 1px solid var(--contrast-5);
}

/* Box shadow */
.site, .box-shadow {
	box-shadow: 0px 0px 20px -10px rgba(0,0,0,0.3);
}

/* Forms and buttons */
.button, .submit {
	border-radius: 3px;
}

/* Sidebar */
.sidebar.is-right-sidebar {
	background-color: var(--base-2);
}

@media(min-width: 769px) {
	.sidebar.is-right-sidebar > .inside-right-sidebar {
        position: sticky;
        top: 54px;
    }
}

/* Category label */
body:not(.single):not(.blog):not(.search-results) .post-term-item {
	padding: 5px 10px;
	border-radius: 3px;
}

body.blog .post-term-item,
body.search-results .post-term-item {
	padding: 10px 20px;
}

/* Category colors */
body:not(.single) .post-term-item.term-business { background-color: var(--business); }
body:not(.single) .post-term-item.term-community { background-color: var(--community); }
body:not(.single) .post-term-item.term-education { background-color: var(--education); }
body:not(.single) .post-term-item.term-entertainment { background-color: var(--entertainment); }
body:not(.single) .post-term-item.term-lifestyle { background-color: var(--lifestyle); }
body:not(.single) .post-term-item.term-technology { background-color: var(--technology); }
body:not(.single) .post-term-item.term-travel { background-color: var(--travel); }

/* Category layout */
.archive .site-main {
	padding: 30px;
	background-color: var(--base-2);
}

@media (min-width: 769px) {
	.archive .site-main .ratio-third {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
	}
	.archive .site-main .ratio-third > .gb-query-loop-item:first-child {
		grid-column: 1 / 3;
		grid-row: 1 / 3;
	}
}

/* ===================== */
/* Heading 디자인 */
/* ===================== */

.single .entry-content h2 { 
    margin: 1.15em 0 0.6em 0; 
    font-weight: normal; 
    font-size: 25px; 
    line-height: 40px; 
    background: linear-gradient(to right, #18609C, #49A9D0); 
    border: 1px solid #fff; 
    padding: 5px 15px; 
    color: white; 
    border-radius: 0 10px 0 10px; 
    box-shadow: inset 0 0 5px rgba(53, 86, 129, 0.5); 
}

.single .entry-content h3 { 
    color: #124875; 
    padding: 3px 9px; 
    margin: 30px 0 20px 0; 
    border-left: #18609C 10px solid; 
    border-bottom: 2px solid #18609C; 
    font-size: 1.2em; 
    font-weight: 700; 
}

.single .entry-content h4 { 
    padding: 3px 9px; 
    border-left: 5px solid #18609C; 
    border-bottom: 1px solid #18609C; 
    margin-bottom: 15px;
}

.single .entry-content h5 { 
    padding: 3px 9px; 
    border-bottom: 1px solid #18609C; 
    margin-bottom: 15px;
}

/* ===================== */
/* jm-table */
/* ===================== */

.jm-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.9em;
}

.jm-table th,
.jm-table td {
  text-align: left;
  padding: 10px 12px;
}

.jm-table th {
  background-color: #f9f9f9;
  width: 25%;
}

.jm-table tr:nth-child(even) {
  background-color: #e1f0fb;
}

/* ===================== */
/* jm-table3 */
/* ===================== */

.jm-table3 {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.9em;
  table-layout: fixed;
}

.jm-table3 th,
.jm-table3 td {
  text-align: left;
  padding: 10px 12px;
}

.jm-table3 th {
  background-color: #f9f9f9;
}

.jm-table3 tr:nth-child(even) {
  background-color: #e1f0fb;
}

.jm-table3 th:nth-child(1),
.jm-table3 td:nth-child(1) { width: 20%; }

.jm-table3 th:nth-child(2),
.jm-table3 td:nth-child(2) { width: 40%; }

.jm-table3 th:nth-child(3),
.jm-table3 td:nth-child(3) { width: 40%; }

/* 링크 스타일 */
.jm-table a {
  color: #007acc;
  text-decoration: underline;
}

/* ===================== */
/* embed + iframe 중앙정렬 + 반응형 */
/* ===================== */

/* iframe 기본 */
.single .entry-content iframe {
    max-width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* embed 중앙 */
.single .entry-content .wp-block-embed {
    text-align: center;
}

/* 비율 유지 */
.single .entry-content .wp-block-embed__wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
}

.single .entry-content .wp-block-embed__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Agoda 등 위젯 중앙 */
.single .entry-content div[id^="adgshp"] {
    display: flex;
    justify-content: center;
}

/* 글 상세 페이지에서만 적용 */
.single .entry-content a {
  color: #2563eb;
  text-decoration: underline;
  transition: color 0.2s ease;
  font-weight: 600;
}

/* 마우스 오버 */
.single .entry-content a:hover {
  color: #1e40af;
}