:root {
  --color-bg: #f5f5f5;
  --color-bg1: #333;  
  --color-bg-alt: #ffffff;
  --color-primary: #e5e7eb;
  --color-primary-soft: #daf5e7;
  --color-text: #111827;
  --color-text1: #FFFFFF;
  --color-text-sub: #6b7280;
  --color-border: #e5e7eb;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-soft: 0 16px 35px rgba(15, 23, 42, 0.08);
}

*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html,
body {
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Noto Sans KR", system-ui, sans-serif;
  line-height: 1.6;
  color: var(--color-bg1);
  background-color: var(--color-bg);
}

a {
  color: var(--color-text);
  text-decoration: none;
}

a:hover {
  color: var(--color-text);
  text-decoration: underline;
}

.link-font_color1 {
  color: var(--color-text1);
  text-decoration: none;
}

.link-font_color1:hover {
  color: var(--color-text1);
  text-decoration: none;
}


/* 전체 래퍼 */
.site-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

/* 상단 헤더 영역 */
.site-header {
  position: relative;
  overflow: hidden;
}

.header-image {
  width: 100%;
  height: 260px;
/*  background-image: url("https://picsum.photos/1200/400?random=1234"); */
  background-image: url("/imgs/jae/top2.jpg");
  background-size: cover;
  background-position: center;
}

.header-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  padding: 0 20px;
}

.site-title {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.site-description {
  font-size: 1rem;
  opacity: 0.9;
}

/* 상단 네비게이션 */
.main-nav {
  background: #222;
  border-top: 4px solid #444;
}

.nav-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 0 15px;
}

.nav-toggle {
  display: none;
  cursor: pointer;
  padding: 10px 0;
  color: #fff;
  font-size: 0.9rem;
}

.nav-menu {
  list-style: none;
  display: flex;
  margin-left: auto;
  flex-wrap: wrap;
}

.nav-menu li a {
  display: block;
  padding: 10px 15px;
  color: #eee;
  font-size: 0.9rem;
}

.nav-menu li a:hover,
.nav-menu li a.active {
  background: #111;
  color: #fff;
}

/* 메인 콘텐츠 레이아웃 */
.content-wrapper {
  display: flex;
  gap: 30px;
  padding: 30px 30px 40px;
}

main {
  flex: 1 1 0;
  min-width: 0;
}

.sidebar {
  flex: 0 0 260px;
}

/* 글 스타일 */
.post {
  margin-bottom: 40px;
  border-bottom: 1px solid #eee;
  padding-bottom: 25px;
}

.post-title {
  font-size: 1.7rem;
  margin-bottom: 5px;
}

.post-meta {
  font-size: 0.8rem;
  color: #777;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/*
.post-thumbnail {
  margin: 15px 0;
}

.post-thumbnail img {
  max-width: 100%;
  height: auto;
  display: block;
}
*/

.post-thumbnail {
  margin: 15px 0;
  /* 부모 요소가 내부 이미지 때문에 늘어나지 않도록 방지 */
  overflow: hidden; 
  width: 100%;
}

.post-thumbnail img {
  /* 이미지가 부모 너비보다 크더라도 100%에 맞춤 */
  max-width: 100%;
  /* 비율을 유지하며 높이 자동 조절 */
  height: auto;
  /* 하단 미세한 공백 제거 및 중앙 정렬을 위한 설정 */
  display: block;
  margin: 10 auto;
  /* 가로/세로 비율이 깨지지 않도록 보장 */
  object-fit: contain;
}

.read-more {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

/* 사이드바 */
.widget {
  margin-bottom: 30px;
  font-size: 0.9rem;
}

.widget-title {
  font-size: 1rem;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #555;
}

.widget ul {
  list-style: none;
}

.widget ul li {
  margin-bottom: 6px;
}

.search-form input[type="text"] {
  width: 100%;
  padding: 7px 9px;
  border: 1px solid #ddd;
  font-size: 0.9rem;
}

/* 푸터 */
.site-footer {
  background: #e6e6e6;
  border-top: 1px solid #d0d0d0;
  padding: 25px 30px 10px;
  font-size: 0.85rem;
}

.footer-widgets {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 15px;
}

.footer-widget {
  flex: 1 1 0;
  min-width: 180px;
}

.footer-widget-title {
  font-size: 0.9rem;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #555;
}

.footer-widget ul {
  list-style: none;
}

.footer-widget ul li {
  margin-bottom: 6px;
}

.footer-credit {
  border-top: 1px solid #ccc;
  padding-top: 10px;
  text-align: center;
  color: #666;
}

/* 반응형 처리 */
@media (max-width: 960px) {
  .content-wrapper {
	flex-direction: column;
	padding: 20px 20px 30px;
  }

  .sidebar {
	flex-basis: auto;
  }

  .header-image {
	height: 220px;
  }

  .site-title {
	font-size: 2rem;
  }
}

@media (max-width: 720px) {
  .nav-inner {
	flex-direction: column;
	align-items: flex-start;
  }

  .nav-toggle {
	display: block;
  }

  .nav-menu {
	width: 100%;
	flex-direction: column;
	display: none; /* 기본은 접기 */
  }

  .nav-menu.open {
	display: flex;
  }

  .nav-menu li a {
	padding-left: 0;
  }

  .header-image {
	height: 200px;
  }

  .header-inner {
	position: static;
	transform: none;
	padding: 15px;
	background: rgba(0, 0, 0, 0.3);
  }

  .site-wrapper {
	box-shadow: none;
  }
}









/* CKEditor 전체 영역 기본 스타일 */
.ck-content {
  font-family: "Malgun Gothic", Inter, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
  color: #1f1f1f !important;
  padding: 20px;
  margin: 0;
}

/* 내부 모든 요소 공통 상속 */
.ck-content * {
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
  color: inherit !important;
  text-decoration: none !important;
}

/* CKEditor 콘텐츠 기본 영역 */
.ck-content {
    font-size: 16px;
    line-height: 1.7;
    color: #222;
    word-break: break-word;
}

/* 제목 */
.ck-content h2 {
    margin: 40px 0 16px;
    font-weight: 700;
}

.ck-content h3 {
    margin: 32px 0 12px;
    font-size: 18px;
    font-weight: 600;
}

/* 문단 */
.ck-content p {
    margin: 12px 0;
}

/* 리스트 */
.ck-content ul,
.ck-content ol {
    margin: 12px 0 12px 20px;
	padding-left: 8px; /* 점이 들어갈 공간을 확보 */
}

.ck-content li {
    margin: 6px 0;
	list-style-type: disc;
	padding-left: 0px; /* 점이 들어갈 공간을 확보 */

}

/* 강조 */
.ck-content strong {
    font-weight: 600;
    color: #111;
}

/* 표 */
.ck-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 15px;
}

.ck-content th,
.ck-content td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}

.ck-content th {
    background-color: #f5f7fa;
    font-weight: 600;
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .ck-content {
        font-size: 15px;
    }

    .ck-content h2 {
        font-size: 20px;
    }

    .ck-content h3 {
        font-size: 17px;
    }
}
