/*
Theme Name: K2 Revival
Theme URI: https://example.com
Author: Your Name
Author URI: https://example.com
Description: 2006년 워드프레스 K2 테마의 느낌을 되살린 현대형 클래식 테마입니다. 밝은 블루+화이트 톤, 우측 사이드바 1개, 고정폭(990px) 레이아웃으로 구성되어 있습니다.
Version: 1.0
Requires at least: 5.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: k2-revival
*/

/* ==========================================================================
   1. 기본 리셋 / 기본값
   ========================================================================== */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	font-family: Verdana, Geneva, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.7;
	color: #333333;
	background: #DCEAF7; /* 본문 바깥 영역 - 연한 블루 */
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: #2E6DA4;
	text-decoration: none;
}

a:hover {
	color: #1B4F7A;
	text-decoration: underline;
}

ul, ol {
	margin: 0 0 1em 1.4em;
}

h1, h2, h3, h4 {
	font-family: Georgia, "Times New Roman", serif;
	color: #2E5C8A;
	font-weight: normal;
	line-height: 1.3;
}

/* ==========================================================================
   2. 레이아웃 뼈대
   ========================================================================== */
#wrapper {
	width: 900px;
	margin: 30px auto;
	background: #FFFFFF;
	box-shadow: 0 0 12px rgba(46, 92, 138, 0.18);
}

/* ---- 헤더 ---- */
#header {
	background: linear-gradient(180deg, #4A86C5 0%, #2E5C8A 100%);
	color: #FFFFFF;
	padding: 36px 30px 28px;
}

#header .site-title {
	font-size: 34px;
	margin: 0;
}

#header .site-title a {
	color: #FFFFFF;
}

#header .site-title a:hover {
	color: #DCEAF7;
	text-decoration: none;
}

#header .description {
	margin-top: 6px;
	color: #CDE2F5;
	font-size: 13px;
	font-style: italic;
}

/* ---- 내비게이션 ---- */
#nav {
	background: #EAF3FB;
	border-bottom: 1px solid #C9DCEC;
	padding: 0 20px;
}

#nav ul {
	margin: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
}

#nav ul li a {
	display: block;
	padding: 12px 16px;
	color: #2E5C8A;
	font-size: 12px;
	letter-spacing: 0.3px;
}

#nav ul li a:hover {
	background: #DCEAF7;
	text-decoration: none;
}

/* ---- 본문 + 사이드바 영역 ---- */
#content-wrapper {
	padding: 25px 30px 10px;
	overflow: hidden; /* clearfix */
}

#content {
	width: 620px;
	float: left;
}

#sidebar {
	width: 200px;
	float: right;
}

/* ---- 푸터 ---- */
#footer {
	clear: both;
	background: #2E5C8A;
	color: #CDE2F5;
	text-align: center;
	padding: 18px 20px;
	font-size: 11px;
}

#footer a {
	color: #FFFFFF;
}

/* ==========================================================================
   3. 글 목록 / 본문
   ========================================================================== */
.post {
	margin-bottom: 34px;
	padding-bottom: 22px;
	border-bottom: 1px dashed #C9DCEC;
}

.post:last-child {
	border-bottom: none;
}

.post h2 {
	font-size: 23px;
	margin-bottom: 6px;
}

.post h2 a {
	color: #2E5C8A;
}

.post-meta {
	font-size: 11px;
	color: #8FA9C2;
	margin-bottom: 14px;
}

.post-meta a {
	color: #5B8DB8;
}

.post-thumbnail {
	margin: 10px 0 16px;
}

.entry-content p {
	margin-bottom: 1em;
}

.entry-content blockquote {
	border-left: 3px solid #C9DCEC;
	background: #F3F8FD;
	margin: 1em 0;
	padding: 10px 16px;
	color: #50688A;
}

.post-tags {
	margin-top: 20px;
	padding-top: 14px;
	border-top: 1px dashed #C9DCEC;
}

.post-tags a {
	display: inline-block;
	background: #EAF3FB;
	color: #2E6DA4;
	font-size: 11px;
	padding: 4px 10px;
	margin: 0 4px 4px 0;
	border-radius: 12px;
}

.post-tags a:hover {
	background: #2E6DA4;
	color: #FFFFFF;
	text-decoration: none;
}

.read-more {
	display: inline-block;
	margin-top: 6px;
	font-size: 12px;
	font-weight: bold;
}

/* 페이지네이션 */
.pagination,
.nav-links {
	margin-top: 10px;
	padding-top: 14px;
	border-top: 1px solid #EAF3FB;
	font-size: 12px;
}

.nav-links .nav-previous,
.nav-links .nav-next {
	display: inline-block;
	margin-right: 16px;
}

/* ==========================================================================
   4. 사이드바 / 위젯
   ========================================================================== */
.widget {
	margin-bottom: 28px;
	font-size: 12px;
}

.widget-title {
	background: #EAF3FB;
	border-left: 3px solid #2E6DA4;
	padding: 8px 12px;
	font-size: 13px;
	margin-bottom: 10px;
	color: #2E5C8A;
}

.widget ul {
	list-style: none;
	margin: 0;
}

.widget ul li {
	padding: 5px 0;
	border-bottom: 1px dotted #E3ECF5;
}

.widget ul ul {
	margin-left: 15px;
	margin-top: 5px;
}

.widget ul ul li {
	padding: 4px 0;
	border-bottom: none;
	font-size: 11px;
	color: #5A7A99;
}

.widget select,
.widget input[type="text"],
.widget input[type="search"] {
	width: 100%;
	padding: 6px;
	border: 1px solid #C9DCEC;
}

/* ==========================================================================
   5. 댓글 (K2 특유의 트레디드 댓글 느낌)
   ========================================================================== */
#comments {
	margin-top: 30px;
	padding-top: 20px;
	border-top: 2px solid #EAF3FB;
}

#comments h2,
#comments h3 {
	font-size: 18px;
	margin-bottom: 14px;
}

.comment-list,
.comment-list .children {
	list-style: none;
	margin: 0;
}

.comment-list .children {
	margin-left: 28px;
	padding-left: 14px;
	border-left: 2px solid #EAF3FB;
}

.comment-body {
	background: #F8FBFE;
	border: 1px solid #EAF3FB;
	border-radius: 4px;
	padding: 14px 16px;
	margin-bottom: 14px;
}

.comment-author {
	font-weight: bold;
	color: #2E5C8A;
}

.comment-metadata {
	font-size: 11px;
	color: #8FA9C2;
	margin-bottom: 8px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 8px;
	border: 1px solid #C9DCEC;
	margin-bottom: 10px;
	font-family: inherit;
}

.comment-form input[type="submit"] {
	background: #2E6DA4;
	color: #FFFFFF;
	border: none;
	padding: 9px 20px;
	cursor: pointer;
}

.comment-form input[type="submit"]:hover {
	background: #1B4F7A;
}

/* ==========================================================================
   6. 페이지 템플릿: 태그 모음 / 전체 글 목록
   ========================================================================== */

/* ---- 태그 모음 페이지 (태그 클라우드) ---- */
.tag-archive-summary,
.archive-summary {
	color: #5B8DB8;
	font-size: 12px;
	margin-bottom: 24px;
}

.tag-cloud {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 18px;
	line-height: 1.5;
}

.tag-cloud-item {
	color: #2E6DA4;
	white-space: nowrap;
}

.tag-cloud-item:hover {
	color: #1B4F7A;
	text-decoration: underline;
}

/* ---- 전체 글 목록 페이지 ---- */
.archive-year {
	margin-top: 28px;
	margin-bottom: 10px;
	font-size: 17px;
	color: #2E5C8A;
	background: #EAF3FB;
	padding: 8px 14px;
	border-left: 3px solid #2E6DA4;
}

.archive-year:first-of-type {
	margin-top: 0;
}

.archive-posts {
	list-style: none;
	margin: 0 0 10px 0;
}

.archive-post-row {
	display: flex;
	gap: 14px;
	padding: 7px 4px;
	border-bottom: 1px dotted #EAF3FB;
	font-size: 13px;
}

.archive-post-date {
	color: #8FA9C2;
	width: 46px;
	flex-shrink: 0;
}

/* ==========================================================================
   7. 반응형 (좁은 화면에서는 가변폭 + 사이드바 아래로)
   ========================================================================== */
@media (max-width: 1020px) {
	#wrapper {
		width: 94%;
		margin: 16px auto;
	}

	#content,
	#sidebar {
		width: 100%;
		float: none;
	}

	#sidebar {
		margin-top: 20px;
		border-top: 2px solid #EAF3FB;
		padding-top: 20px;
	}
}
