
/* 블로그 */
.single .entry-content h2 {
    margin: 20px -5px 15px;
    font-size: 22px;
    font-weight: 700;
    COLOR: #333333;
    PADDING-BOTTOM: 10px;
    TEXT-ALIGN: left;
    BORDER-LEFT: #333333 10px solid;
    padding: 15px;
    BACKGROUND-COLOR: #fafafa;
    BORDER-BOTTOM: 2px solid #333333;
}

.single .entry-content 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;
}

.single .entry-content h4 {
	margin: 16px -5px 10px;
	font-size: 18px;
	font-weight: 600;
	color: #555;
	padding-left: 10px;
	border-left: #777 4px solid;
}

.single .entry-content h5 {
	margin: 14px -5px 8px;
	font-size: 16px;
	font-weight: 500;
	color: #666;
	padding-left: 8px;
	border-left: #aaa 2px solid;
	font-style: italic;
}



.single .entry-content p {
    margin-bottom: 25px;
}

.single .entry-content .wp-block-image {
	display: flex;
	justify-content: center;
	margin-bottom: 30px; /* 적당한 여백, 필요시 조정 가능 */
}

/* 헤더 아래 테두리 */

.single .entry-header .entry-meta {
border-bottom: 1px solid #f2f2f6;
padding-bottom: 20px;
}

/* 포스트 내비게이션 */

/* 포스트 내비게이션 */

.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 .nav-previous {
	justify-content: flex-end;
	margin-left: 10px;
	order: 2;
}

.single .nav-next {
	justify-content: flex-start;
	margin-right: 10px;
	order: 1;
}

.single .post-navigation .gp-icon {
	display: none;
}

.single .nav-previous::after, .single .nav-next::before {
	content: '';
	flex-shrink: 0;
}

.single .nav-previous::after {
	content: '》';
	margin-left: 10px;
}

.single .nav-next::before {
	content: '《';
	margin-right: 10px;
}

.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;
}

.single .prev a:hover, .single .next a:hover {
	text-decoration: none;
	color: white !important;
	background: rgba(255, 255, 255, 0.2);
	transform: scale(1.05);
}

@media (max-width: 768px) {
	.single #nav-below {
		flex-direction: column;
		align-items: center;
	}
	
	.single .nav-previous, .single .nav-next {
		margin-bottom: 10px;
		width: 100%;
	}
	
	.single .nav-previous {
		justify-content: flex-end;
		order: 2;
	}
	
	.single .nav-next {
		justify-content: flex-start;
		order: 1;
	}
}

/* 링크 스타일 */
.single .entry-content a:not(.wp-element-button):not(.ez-toc-btn):not(.ez-toc-link) {
background-image: linear-gradient(to right, rgb(169, 188, 245), rgb(46, 100, 254)) !important;
    background-position: 0px 100% !important;
    background-repeat: no-repeat !important;
    background-size: 100% 0.15em !important;
    box-sizing: inherit !important;
    color: #3e5898 !important;
    font-family: "Gowun Dodum", sans-serif !important;
    font-size: 16px !important;
    padding: 1px 0px !important;
    text-decoration-line: none !important;
    transition: all 0.3s ease !important;
    user-select: auto !important;
    word-break: break-all !important;
    position: relative !important;
    display: inline !important;
    width: auto !important;
    margin: initial !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    animation: none !important;
    box-shadow: none !important;
    white-space: normal !important;
    }
    
.single .entry-content a:not(.wp-element-button):not(.ez-toc-btn):not(.ez-toc-link):not(.wp-block-image a):hover {
        background-size: 100% 100% !important;
    color: white !important;
    background-image: linear-gradient(to right, rgb(46, 100, 254), rgb(116, 159, 251)) !important;
    border-radius: 3px !important;
    padding: 2px 5px !important;
    }

/* 함께 보면 좋은 글 */
/* 관련 글 스타일링 */
.related-articles {
	background-color: #f8f9fa;
	border-radius: 10px;
	padding: 20px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	margin-bottom: 20px;
	border-left: 4px solid #3e5898;
	position: relative;
	list-style: none;
	margin: 20px 0px 20px;
}

.related-articles::before {
	content: '✅ 함께 보면 좋은 글';
	display: block;
	font-weight: bold;
	font-size: 17px;
	margin-bottom: 10px;
	color: #1c1c1c;
}

.related-articles li {
	margin-bottom: 6px;
	line-height: 1.7;
}

.related-articles li::before {
	content: '👉';
	display: inline-block;
	margin-right: 6px;
	font-size: 16px;
}

.related-articles a {
	background-image: linear-gradient(to right, rgb(169, 188, 245), rgb(46, 100, 254)) !important;
	background-position: 0px 100% !important;
	background-repeat: no-repeat !important;
	background-size: 100% 0.15em !important;
	box-sizing: inherit !important;
	color: #3e5898 !important;
	font-family: "Gowun Dodum", sans-serif !important;
	font-size: 16px !important;
	padding: 1px 0px !important;
	text-decoration-line: none !important;
	transition: all 0.3s ease !important;
	user-select: auto !important;
	word-break: break-word !important;
	position: relative !important;
	display: inline !important;
	width: auto !important;
	margin: initial !important;
	background-color: transparent !important;
	border: none !important;
	border-radius: 0 !important;
	animation: none !important;
	box-shadow: none !important;
	white-space: normal !important;
}

.related-articles a:hover {
	background-size: 100% 100% !important;
	color: white !important;
	background-image: linear-gradient(to right, rgb(46, 100, 254), rgb(116, 159, 251)) !important;
	border-radius: 3px !important;
	padding: 2px 5px !important;
}

/* 사이트 전체 */
.site-content {
margin-top: 10px;
}
/* === 어떤 홈/아카이브 타입에서도 그리드 강제 === */
body.home .site-main,
body.blog .site-main,
body.archive .site-main,
body.search .site-main,
body.page.page-template-blog .site-main {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)) !important; /* 1줄 ≈ 한글 18자 폭 */
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
	background: #e9e9e9; /* 격자 라인 색 */
}

/* article 기본 마진 제거 (gap만 사용) */
body.home .site-main > article,
body.blog .site-main > article,
body.archive .site-main > article,
body.search .site-main > article {
  margin: 0 !important;
	background:#fff;
  border-right: 1px solid #e9e9e9;
  border-bottom: 1px solid #e9e9e9;
}
/* 카드 내부 패딩과 그림자 */
.home .inside-article,
.archive .inside-article,
.search .inside-article {
   display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0 !important;
  border: 1px solid rgba(0,0,0,.06);
	box-shadow:0 2px 10px rgba(0,0,0,.06); /* 아주 약하게 */
  border-radius:3px;                     /* 원하면 0으로 */
	box-shadow:0 1px 4px rgba(0,0,0,.05);
  margin:0;                              /* grid gap을 쓰는 경우 */
  background:#fff;/* 칸 배경 */
}
/* 카드 스타일/여백 최소화 */
body.home .inside-article,
body.blog .inside-article,
body.archive .inside-article,
body.search .inside-article {
  display: flex !important;
  flex-direction: column;
  height: 100%;
  padding: 0 !important;
  border: 1px !important;
  border-radius: 1 !important;
  box-shadow:0 1px 2px rgba(0,0,0,.05);
  background: #fff;
}

body.home .inside-article .entry-header,
body.home .inside-article .entry-summary,
body.blog .inside-article .entry-header,
body.blog .inside-article .entry-summary,
body.archive .inside-article .entry-header,
body.archive .inside-article .entry-summary,
body.search .inside-article .entry-header,
body.search .inside-article .entry-summary {
  padding: 8px 10px !important;
  margin: 0 !important;
	max-width: 400px; /* 18글자 기준 폭 */
}

/* 제목 스타일 간결하게 */
.home h2.entry-title,
.archive h2.entry-title,
.search h2.entry-title {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  margin: 6px 0;
}
/* 날짜·메타도 최소 간격 */
.entry-meta { row-gap: 2px; margin: 0 0 4px 0; }

/* 썸네일 컨테이너 - 위쪽 꽉 채우기 및 1:1 비율 유지 */
body.home .post-image,
body.blog .post-image,
body.archive .post-image,
body.search .post-image {
  margin: 0;
  padding: 0;
  width: 100%; /* 부모 요소의 폭에 가득 채우기 */
  height: auto; /* aspect-ratio에 의해 높이가 결정되도록 auto 설정 */
  aspect-ratio: 1/1; /* 1:1 정사각형 비율 유지 */
  overflow: hidden; /* 이미지 확대/축소 시 컨테이너를 벗어나는 부분 숨김 */
  display: block;
}

/* 썸네일 이미지 - 컨테이너를 꽉 채우고 잘라내기 */
body.home .post-image img,
body.blog .post-image img,
body.archive .post-image img,
body.search .post-image img {
  width: 100%; 
  height: 100%; 
  object-fit: cover; /* 컨테이너를 가득 채우고 비율을 유지하며 잘라냄 */
  object-position: center; /* 중앙을 기준으로 이미지 맞춤 */
  display: block; /* 블록 요소로 설정 */
  transition: transform 0.3s ease; /* 호버 효과를 위한 전환 설정 */
}

/* 마우스 호버 살짝 확대 */
.home .post-image:hover img,
.archive .post-image:hover img,
.search .post-image:hover img { 
  transform: scale(1.05); /* 마우스 호버 시 1.05배 확대 */ 
}


/* Read more 버튼 여백 최소 */
.home .inside-article .read-more-container,
.archive .inside-article .read-more-container,
.search .inside-article .read-more-container {
  margin-top: auto;
  padding: 4px 8px 8px;
}

a.read-more {
	font-size: 11px;
  padding: 2px 5px;
  border: 1px solid #ddd;
  border-radius: 3px;float: none; display: inline-block; } /* float 제거 */

/* 8) 반응형 1열 */
@media (max-width: 600px) {
  .home .site-main, .archive .site-main, .search .site-main { grid-template-columns: 1fr; }
}

.single.separate-containers .inside-article,
body.page.separate-containers .inside-article {
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
}


.home.separate-containers article:first-of-type .inside-article,
.archive.separate-containers article:first-of-type .inside-article {
	border-top-left-radius: 7px;
}

.archive.separate-containers article:nth-of-type(3) .inside-article {
	border-top-right-radius: 7px;
}


@media (min-width: 769px) and (max-width: 1024px) {
	.home.separate-containers article:first-of-type .inside-article,
	.archive.separate-containers article:first-of-type .inside-article {
		border-top-left-radius: 7px;
	}

	.home.separate-containers article:nth-of-type(2) .inside-article,
	.archive.separate-containers article:nth-of-type(2) .inside-article {
		border-top-right-radius: 7px;
	}
}




@media (max-width: 768px) {


.home.separate-containers article:first-of-type .inside-article,
.archive.separate-containers article:first-of-type .inside-article {
	border-top-left-radius: 7px;
		border-top-right-radius: 7px;
}
}


@media (max-width: 920px) {


    .container .site-content .content-area {
        padding: 0 10px;
    }
}

/* 푸터 */
.copyright-bar {
    text-align: left;
}

.copyright-bar h2 {
    font-size: 1.1rem;
    font-weight: 600;
}

@media (max-width: 768px) {
.site-footer.grid-container {
    padding: 0 10px;
}
}

/* 메뉴 */

/* 페이지네이션 */
/* Styling for modern pagination in the GeneratePress WordPress theme */

/* Common Styles */
nav#nav-below.paging-navigation .page-numbers {
    display: inline-block;
    padding: 5px 10px;  /* Increased padding for a more clickable area */
    margin-right: 8px;  /* Slightly reduced margin */
    border: 1px solid #e0e0e0;  /* Subtle border */
    border-radius: 3px;  /* Small border radius for rounded edges */
    font-size: 14px;  /* Reduce font size for a sleeker look */
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;  /* Smoother transitions */
    text-decoration: none;
    background-color: #f5f5f5;  /* Neutral background */
}

/* Current Page Styles */
nav#nav-below.paging-navigation span.page-numbers.current {
    font-weight: 600;  /* Slightly reduced weight for modern feel */
    background: #1e72bd;
    color: #fff;
    border-color: #1e72bd;
}

/* Link Styles */
nav#nav-below.paging-navigation a.page-numbers {
    color: #555;  /* Dark gray for better readability */
}

/* Hover and Focus Styles for Interactivity */
nav#nav-below.paging-navigation a.page-numbers:hover,
nav#nav-below.paging-navigation a.page-numbers:focus {
    background: #1e72bd;
    color: #fff;
    border-color: #1e72bd;
}

/* Container Padding for Separate Containers */
.separate-containers .paging-navigation {
    padding: 20px 0;
    text-align: center;  /* Center-aligns the pagination for a more balanced look */
}

/* Icon Adjustment for Better Alignment */
nav#nav-below.paging-navigation .gp-icon {
    vertical-align: middle;  /* Aligns the icon with the text */
}

/* 버튼 상태 */
/* 공통 버튼 스타일 */
a.myButton1 {
  display: block;
  max-width: 380px;
  margin: 16px auto;

  padding: 14px 24px;
  border-radius: 999px;

  background-color: #3047d9;     /* 파란 배경 */
  color: #fffb3b;                /* 노란 글자 */
  text-decoration: none;
  text-align: center;
  font-size: 18px;
  font-weight: 700;

  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
  cursor: pointer;

  white-space: nowrap;
  transition: background 0.2s ease,
              transform 0.2s ease,
              box-shadow 0.2s ease;
}

/* 화살표 아이콘 추가 (▶) */
a.myButton1::after {
  content: " \25B6"; /* ▶ */
}

/* 마우스 올렸을 때 */
a.myButton1:hover {
  background-color: #2436b8; /* 조금 더 진한 파란색 */
  transform: translateY(-3px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.35);
}



@keyframes pulse {
	0% { transform: scale(1); }
	50% { transform: scale(1.05); }
	100% { transform: scale(1); }
}


/* author box */

.saboxplugin-wrap {
    margin-top: 20px !important;
}

.saboxplugin-wrap .saboxplugin-gravatar img {
    border-radius: 50% !important;
    object-fit: cover;
    border: 3px solid #fff;
}


/* read more 버튼 */

/* 스타일 핵심 정의 */
a.read-more {
    float: right;
    overflow: hidden;
    position: relative;
    height: 28px;
    background-color: #fdfdff;
    color: #000000;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 28px;
    padding: 0 13px;
   margin: 10px 0 20px;
    border: 1px solid #f2f2f6;
    border-radius: 3px;
    transition: all 0.17s ease;
    text-decoration: none;
}

/* hover 시 색상 반전 */
a.read-more:hover {
    color: #ffffff;
    background-color: #0073aa; /* WordPress 기본 파랑 */
    border-color: #0073aa;
}

/* 아이콘 대체 (→) */
a.read-more::before {
    content: '→';
    margin-right: 5px;
    position: relative;
    top: 0;
}

/* 인용구 */
/* WordPress blockquote 스타일 */
.wp-block-quote {
  position: relative;
  background: #f9f9f9;
  border-left: 10px solid #ff4848;
  margin: 1.5em 10px;
  padding: 1.2em 30px 1.2em 75px;
  quotes: "“" "”" "‘" "’";
  text-align: left;
  font-style: normal;
  font-size: 0.99em;
  border-radius: 3px;
  color: #000;
}

/* 인용 부호 */
.wp-block-quote::before {
  font-family: Arial, sans-serif;
  content: open-quote;
  color: #ff4848;
  font-size: 4em;
  position: absolute;
  left: 20px;
  top: -10px;
  line-height: 1;
  opacity: 0.2;
}

/* 닫는 따옴표 제거 */
.wp-block-quote::after {
  content: '';
}

/* 여러 문단 대응 */
.wp-block-quote p:not(:first-child) {
  display: inline-block;
  line-height: 1.65em;
  margin-bottom: 21px;
}

/* 첫/마지막 문단 스타일 */
.wp-block-quote p:first-child,
.wp-block-quote p:last-child {
  display: inline;
  line-height: 1.1em;
}

/* 인용 출처 */
.wp-block-quote cite {
  padding-top: 20px;
  display: block;
  font-style: italic;
  font-size: 15px;
  color: #777;
}

/* 댓글 */

@media (min-width: 769px) {
    .comment-form #author,
    .comment-form #email {
        float: left;
        width: 48%;
        box-sizing: border-box;
        margin-bottom: 1rem;
    }

    .comment-form #author {
        margin-right: 4%;
    }

    .comment-form #url {
        clear: both;
        width: 100%;
        box-sizing: border-box;
        margin-bottom: 1rem;
    }
}

#reply-title {
display: none;
}


h3.comments-title {
    line-height: 1;
    margin-top: 0;
    margin-bottom: 26px;
    border-bottom: 2px solid #222;
    font-weight: 600;
}

h3.comments-title span {
    line-height: 17px;
    display: inline-block;
    padding: 7px 12px 4px;
    background-color: #222;
    color: #fff;
        font-size: 0.7em;
}

/* 아카이브 */

.archive header.page-header {
    background-color: transparent;
}


/* 테이블 */

/* Gutenberg table style */

.table-style-1 thead {
	background-color: #8f919e;
	color: white;
	border-bottom: 3px solid #6c6d78; /* 어두운 회색 계열 */
}


.table-style-2 thead {
	background-color: rgb(27 127 204 / 80%);
	color: white;
	border-bottom: 3px solid #1c5e9c;
}


.table-style-1 thead th,
.table-style-2 thead th {
	border: 1px solid #444;
}


.gutenberg-style-3 {
border-bottom: none !important;
}

.gutenberg-style-3 table {
border-top: 1px solid #f0f0f0;
border-bottom: 1px solid #f0f0f0;
border-left: none;
border-right: none;
}

.wp-block-table table {
border-collapse: collapse;
}

.wp-block-table figcaption {
text-align: center;
}


/* Gutenberg table style */

/* 부모 클래스: table-style-3 */
.table-style-3 table,
.table-style-5 table,
.table-style-6 table,
.table-style-4 table {
	border-collapse: collapse;
	width: 100%;
}

.table-style-3 th,
.table-style-3 td,
.table-style-5 th,
.table-style-5 td,
.table-style-6 th,
.table-style-6 td,
.table-style-4 th,
.table-style-4 td {
	border: 1px solid #444;
	padding: 8px;
	text-align: left;
}

.table-style-3 thead th:first-child {
	background-color: #222;
	color: #ccc;
}

.table-style-5 thead th:first-child {
	background-color: #4B4E6D;
	color: #fff;
}

.table-style-6 thead th:first-child {
	background-color: #aaa;
	color: #fff;
}

.table-style-4 thead th:first-child {
	background-color: #2A3B2D; /* 시크한 어두운 그린 */
	color: #fff;
}

.table-style-3 tbody td:first-child {
	background-color: #222;
	color: #ccc;
	border-color: #333;
}

.table-style-5 tbody td:first-child {
	background-color: #4B4E6D;
	color: #fff;
	border-color: #3A3D55;
}

.table-style-6 tbody td:first-child {
	background-color: #aaa;
	color: #fff;
	border-color: #888;
}

.table-style-4 tbody td:first-child {
	background-color: #2A3B2D; /* 시크한 어두운 그린 */
	color: #fff;
	border-color: #1E2E23; /* 어두운 테두리 */
}

.table-style-3 thead th:not(:first-child),
.table-style-5 thead th:not(:first-child),
.table-style-6 thead th:not(:first-child),
.table-style-4 thead th:not(:first-child),
.table-style-3 tbody td:not(:first-child),
.table-style-5 tbody td:not(:first-child),
.table-style-6 tbody td:not(:first-child),
.table-style-4 tbody td:not(:first-child) {
	background-color: #fff;
	color: #000;
}

.table-style-3 tbody tr:nth-child(even) td:not(:first-child),
.table-style-5 tbody tr:nth-child(even) td:not(:first-child),
.table-style-6 tbody tr:nth-child(even) td:not(:first-child),
.table-style-4 tbody tr:nth-child(even) td:not(:first-child) {
	background-color: #f9f9f9;
}

/* ===== 공통 쿠팡 사이드바 카드 스타일 ===== */
.coupang-widget-box {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  padding: 12px 10px 14px;
  margin-bottom: 20px;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.coupang-widget-title {
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  padding: 7px 10px 9px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff7b7b, #ffb347);
  color: #ffffff;
}

/* PC 에서만 노출 */
.coupang-only-pc {
  display: block;
}

@media (max-width: 768px) {
  .coupang-only-pc {
    display: none !important;
  }
}

/* 사이드바 부모에서 overflow 막는 거 강제로 풀기 */
.inside-right-sidebar,
.inside-left-sidebar,
.widget-area.sidebar {
    overflow: visible !important;
}

/* ===== 사이드바/컨테이너 쪽 레이아웃 완화 ===== */
/* 사이드바 내부 박스가 sticky 쓸 수 있도록 부모는 overflow 해제 */
#left-sidebar,
#right-sidebar,
.inside-left-sidebar,
.inside-right-sidebar {
  overflow: visible !important;
  align-items: flex-start;
}

/* ===== 좌우 쿠팡 배너 sticky 강제 적용 ===== */
#left-sidebar .coupang-widget-box,
#right-sidebar .coupang-widget-box {
  position: sticky !important;
  top: 90px;              /* 헤더 높이에 맞게 70~120 사이에서 조절 */
  z-index: 100;
}
/* 쿠팡 배너 스티키 테스트 */
.coupang-sticky-widget {
    position: -webkit-sticky;
    position: sticky;
    top: 100px;
    z-index: 9999;
}

/* 부모 overflow 열기 */
.inside-right-sidebar,
.inside-left-sidebar,
.widget-area.sidebar {
    overflow: visible !important;
}



/* 모바일에서는 스티키 끄기 (선택) */
@media (max-width: 768px) {
    .my-coupang-sticky {
        position: static;
    }
}


/* 푸터 쿠팡 배너 중앙 정렬 */
.coupang-footer-banner {
  display: flex;
  justify-content: center;  /* 가로 가운데 정렬 */
  padding: 20px 0;
}

.coupang-footer-banner iframe {
  display: block;
  margin: 0 auto;
}

