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


/* 🎯 H2 제목 - 벤치마킹 구조 + 원본 색상 적용 (참고용으로 변경 없음) */
.single .entry-content h2 {
    padding: 10px 14px;
    margin: 40px 0 28px 0;
    border-left: 8px solid #333333;
    background-color: #fafafa;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.2em; /* 기존 1.15em에서 약간 키워 계층성 강화 */
    color: #333333;
}

/* 🎯 H3 제목 - 수정안 */
.single .entry-content h3 {
    margin: 30px 0 20px 0; /* 기존 마진 유지 */
    font-weight: 700; /* 기존 폰트 두께 유지 (H2보다 두꺼움) */
    font-size: 1.1em;  /* H2보다 작고 H4보다 크게 조정 */
    color: #444444;   /* 기존 텍스트 색상 유지 */
    position: relative;
    padding-left: 15px; /* ::before 너비(6px) + 기존 여백(9px) */
}

.single .entry-content h3::before {
    content: "";
    display: inline-block;
    width: 6px; /* 기존 너비 유지 */
    height: 1em; /* H3 폰트 크기를 기준으로 높이 조정 (기존 1.2em보다 간결하게) */
    background-color: #555555; /* 기존 ::before 배경색 유지 */
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 2px; /* H2의 테두리 곡률과 유사한 느낌 및 H4와의 차별화 */
}

/* 🎯 H4 제목 - 수정안 */
.single .entry-content h4 {
    margin: 25px 0 12px 0; /* 기존 마진 유지 */
    font-size: 1.0em;  /* H3보다 작게 조정 (기존 18px은 상황에 따라 H3보다 클 수 있었음) */
    font-weight: 600; /* 기존 폰트 두께 유지 */
    color: #555555;    /* 기존 텍스트 색상 유지 */
    position: relative;
    padding-left: 12px; /* ::before 너비(4px) + 기존과 유사한 여백(8px) */
}

.single .entry-content h4::before {
    content: "";
    display: inline-block;
    width: 4px;  /* H3 ::before보다 확실히 얇게 조정 */
    height: 0.9em; /* H4 폰트 크기를 기준으로 높이 조정 (기존 1.1em보다 간결하게) */
    background-color: #777777; /* 기존 ::before 배경색 유지 (H3 ::before보다 밝음) */
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    /* H3와 차별되도록 테두리 곡률 없음 (더욱 심플하고 날렵한 느낌) */
}

/* 🎯 H5 제목 - 수정안 */
.single .entry-content h5 {
    margin: 20px 0 10px 0; /* H4보다 마진 약간 조정 (기존 유지) */
    font-size: 0.9em;  /* H4보다 작게 조정 */
    font-weight: 500; /* 기존 유지 (H4보다 가늘게) */
    color: #666666;   /* 기존 유지 (H4보다 밝은 색) */
    font-style: italic; /* 기존 유지 (차별화 요소) */
    position: relative;
    padding-left: 10px; /* ::before 너비(3px) + 여백(7px) */
}

.single .entry-content h5::before {
    content: "";
    display: inline-block;
    width: 3px;  /* H4 ::before보다 더 얇게 */
    height: 0.85em; /* H5 폰트 크기 기준으로 H4 ::before와 유사하거나 약간 작은 비율로 조정 */
    background-color: #aaaaaa; /* 기존 ::before 색상 유지 (H4 ::before보다 밝음) */
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    /* H4와 마찬가지로 radius 없음 (심플함 유지) */
}



.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):not(.gb-button) {
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):not(.gb-button):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;
    }

/* 함께 보면 좋은 글 */
/* 관련 글 스타일링 */
.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;
}



/* 전면, 아카이브 */

.home h2.entry-title,
.archive h2.entry-title {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3em
}

/* 홈 썸네일 컨테이너를 정사각형으로 유지 */
.home .post-image, 
.archive .post-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1; /* 1:1 비율 */
    overflow: hidden;
    box-shadow: 0 3px 12px -1px rgba(7, 10, 25, 0.2), 0 22px 27px -20px rgba(7, 10, 25, 0.2);
}

/* 썸네일 이미지가 정사각형 영역을 채우도록 설정 */
.home .post-image img, 
.archive .post-image img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* 마우스 오버시 확대 효과 */
.home .post-image:hover img,
.archive .post-image:hover img {
    transform: scale(1.05);
}


/* 사이트 전체 */

.site-content {
margin-top: 40px;
}


.single.separate-containers .inside-article,
.page-template-default.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;
}

.home.separate-containers article:nth-of-type(3) .inside-article,
.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 */
}



/* 버튼 */

.blueBtn.wp-block-buttons > .wp-block-button,
.greenBtn.wp-block-buttons > .wp-block-button,
.redBtn.wp-block-buttons > .wp-block-button,
.purpleBtn.wp-block-buttons > .wp-block-button,
.orangeBtn.wp-block-buttons > .wp-block-button,
.yellowBtn.wp-block-buttons > .wp-block-button {
	width: 85% !important;
	margin: 0 auto !important;
}

.blueBtn .wp-block-button__link,
.greenBtn .wp-block-button__link,
.redBtn .wp-block-button__link,
.purpleBtn .wp-block-button__link,
.orangeBtn .wp-block-button__link,
.yellowBtn .wp-block-button__link {
	display: block !important;
	padding: 18px 30px !important;
	font-size: 18px !important;
	text-align: center !important;
	text-decoration: none !important;
	color: #fff !important;
	border: none !important;
	border-radius: 12px !important;
	font-weight: bold !important;
	white-space: nowrap !important;
	cursor: pointer !important;
	transition: all 0.4s ease !important;
	animation: pulse 2s infinite !important;
	box-sizing: border-box !important;
}

/* --- 색상별 일반 스타일 --- */
.blueBtn .wp-block-button__link {
	background-color: #007bff !important;
	box-shadow: 0 0 20px rgba(17, 75, 134, 0.5) !important;
}

.greenBtn .wp-block-button__link {
	background-color: #28a745 !important;
	box-shadow: 0 0 20px rgba(0, 178, 47, 0.5) !important;
}

.redBtn .wp-block-button__link {
	background-color: #dc3545 !important;
	box-shadow: 0 0 20px rgba(255, 0, 0, 0.5) !important;
}

/* [색상 수정] 보라색 버튼 스타일 */
.purpleBtn .wp-block-button__link {
	background-color: #6A3FFB !important;
	box-shadow: 0 0 20px rgba(106, 63, 251, 0.5) !important;
}

/* [색상 수정] 주황색 버튼 스타일 */
.orangeBtn .wp-block-button__link {
	background-color: #F58248 !important;
	box-shadow: 0 0 20px rgba(245, 130, 72, 0.5) !important;
}

/* [색상 수정] 노란색 버튼 스타일 */
.yellowBtn .wp-block-button__link {
	background-color: #FDB901 !important;
	box-shadow: 0 0 20px rgba(253, 185, 1, 0.5) !important;
}


/* --- 색상별 Hover(마우스 오버) 스타일 --- */
.blueBtn .wp-block-button__link:hover,
.greenBtn .wp-block-button__link:hover,
.redBtn .wp-block-button__link:hover,
.purpleBtn .wp-block-button__link:hover,
.orangeBtn .wp-block-button__link:hover,
.yellowBtn .wp-block-button__link:hover {
	transform: scale(1.03);
	color: #fff !important;
}

.blueBtn .wp-block-button__link:hover {
	background-color: #0069df !important;
	box-shadow: 0 0 25px rgba(0, 84, 164, 0.7) !important;
}

.greenBtn .wp-block-button__link:hover {
	background-color: #218838 !important;
	box-shadow: 0 0 25px rgba(0, 178, 47, 0.7) !important;
}

.redBtn .wp-block-button__link:hover {
	background-color: #c82333 !important;
	box-shadow: 0 0 25px rgba(255, 0, 0, 0.7) !important;
}

/* [색상 수정] 보라색 버튼 hover 스타일 */
.purpleBtn .wp-block-button__link:hover {
	background-color: #5629e8 !important;
	box-shadow: 0 0 25px rgba(86, 41, 232, 0.7) !important;
}

/* [색상 수정] 주황색 버튼 hover 스타일 */
.orangeBtn .wp-block-button__link:hover {
	background-color: #e36e31 !important;
	box-shadow: 0 0 25px rgba(227, 110, 49, 0.7) !important;
}

/* [색상 수정] 노란색 버튼 hover 스타일 */
.yellowBtn .wp-block-button__link:hover {
	background-color: #e3a400 !important;
	box-shadow: 0 0 25px rgba(227, 164, 0, 0.7) !important;
}


/* --- 애니메이션 --- */
@keyframes pulse {
	0% { transform: scale(1); }
	50% { transform: scale(1.02); }
	100% { transform: scale(1); }
}

/* PC 버튼 스타일 */
@media (min-width: 769px) {
  .blueBtn .wp-block-button__link,
  .greenBtn .wp-block-button__link,
  .redBtn .wp-block-button__link,
  .orangeBtn .wp-block-button__link,
  .purpleBtn .wp-block-button__link,
  .tealBtn .wp-block-button__link,
  .pinkBtn .wp-block-button__link,
  .yellowBtn .wp-block-button__link,
  .cyanBtn .wp-block-button__link,
  .emeraldBtn .wp-block-button__link,
  .indigoBtn .wp-block-button__link {
    font-size: 18px !important;
  }
}


/* 모바일 전용 스타일 */
@media (max-width: 768px) {
  .blueBtn .wp-block-button__link,
  .greenBtn .wp-block-button__link,
  .redBtn .wp-block-button__link,
  .orangeBtn .wp-block-button__link,
  .purpleBtn .wp-block-button__link,
  .tealBtn .wp-block-button__link,
  .pinkBtn .wp-block-button__link,
  .yellowBtn .wp-block-button__link,
  .cyanBtn .wp-block-button__link,
  .emeraldBtn .wp-block-button__link,
  .indigoBtn .wp-block-button__link {
    font-size: 15px !important; /* 모바일용 폰트 크기 */
  }
}

/* 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 25px;
  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;
}

/* 관련 글 */
	.wp-show-posts-columns .wp-show-posts-inner {
		margin: 0 0 0 2em;
	}

	article.wp-show-posts-single {
		margin-bottom: 20px !important;
	}

	.wp-show-posts-inner {
		border: 1px solid #ddd;
		border-radius: 8px;
		overflow: hidden;
		box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
		transition: transform 0.2s ease, box-shadow 0.2s ease;
		background-color: #fff;
		height: 100%;
		display: flex;
		flex-direction: column;
	}

	.wp-show-posts-entry-header {
		padding-right: 3px;
		padding-left: 3px;
	}
