/* ============================================================
   style.css - 블로그 스타일 메인 시트
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:       #2563eb;
  --primary-dark:  #1d4ed8;
  --primary-light: #dbeafe;
  --accent:        #f59e0b;
  --bg:            #f8fafc;
  --header:        #e2e8f0;
  --footer:        #e2e8f0;
  --bg-alt:        #f1f5f9;
  --white:         #ffffff;
  --border:        #e2e8f0;
  --text:          #0f172a;
  --text-sec:      #2f3031;
  --muted:         #00050c;
  --danger:        #dc2626;
  --radius:        8px;
  --radius-lg:     14px;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.06);
  --shadow:        0 4px 12px rgba(0,0,0,.08);
  --shadow-lg:     0 8px 28px rgba(0,0,0,.12);
  --header-h:      100px;
}

body {
    font-family: "Malgun Gothic", "맑은 고딕", -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Helvetica Neue", Helvetica, Arial, Dotum, "돋움", sans-serif;
  font-size: 18px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: none; }
img { max-width: 100%; height: auto; }

.inner { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ================================================================
   HEADER
   ================================================================ */
#site-header {
  background: var(--header);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 200;
  height: var(--header-h);
}
#site-header .inner {
  display: flex; align-items: center; gap: 16px;
  height: 100%;
}
.logo a {
  font-size: 21px; font-weight: 800;
  color: var(--primary);
  letter-spacing: -.5px;
  white-space: nowrap;
}
#gnb { display: flex; gap: 2px; flex: 1; }
#gnb a {
  padding: 6px 8px; border-radius: 6px;
  font-size: 18px; font-weight: 500; color: var(--text-sec);
  transition: background .15s, color .15s; white-space: nowrap;
}
#gnb a:hover { background: var(--primary-light); color: var(--primary); text-decoration: none; }

#user-nav { display: flex; gap: 6px; align-items: center; font-size: 18px; white-space: nowrap; }
#user-nav .user-greeting { color: var(--muted); font-size: 18px; margin-right: 2px; }
#user-nav a {
  padding: 6px 8px; border-radius: 6px;
  font-size: 16px; font-weight: 500;
  background: var(--bg-alt); color: var(--text-sec);
  border: 1px solid var(--border);
  transition: all .15s;
}
#user-nav a:hover { background: var(--primary); color: #fff; border-color: var(--primary); text-decoration: none; }
#user-nav a.btn-write { background: var(--primary); color: #fff; border-color: var(--primary); }
#user-nav a.btn-write:hover { background: var(--primary-dark); }

/* 햄버거 버튼 */
.menu-toggle {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  width: 40px; height: 40px; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 0; margin-left: auto; flex-shrink: 0;
}
.menu-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 모바일 메뉴 드로어 */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-h); left: 0; right: 0; bottom: 0;
  background: var(--white);
  z-index: 199;
  padding: 20px 20px 32px;
  overflow-y: auto;
  border-top: 1px solid var(--border);
  animation: slideDown .2s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.mobile-menu.open { display: block; }
.mobile-nav { display: flex; flex-direction: column; gap: 2px; margin-bottom: 20px; }
.mobile-nav a {
  padding: 12px 16px; border-radius: var(--radius);
  font-size: 18px; font-weight: 600; color: var(--text);
  transition: background .12s;
}
.mobile-nav a:hover { background: var(--bg-alt); text-decoration: none; }
.mobile-divider { height: 1px; background: var(--border); margin: 10px 0; }
.mobile-user { display: flex; flex-direction: column; gap: 6px; }
.mobile-user a {
  padding: 12px 16px; border-radius: var(--radius);
  font-size: 19px; font-weight: 500; text-align: center;
  background: var(--bg-alt); color: var(--text);
  border: 1px solid var(--border);
  transition: all .12s;
}
.mobile-user a.primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.mobile-user a:hover { text-decoration: none; opacity: .85; }

/* ================================================================
   MAIN CONTENT
   ================================================================ */
#content { padding: 32px 0 80px; }

/* ================================================================
   BLOG LAYOUT (메인 + 사이드바 2컬럼)
   ================================================================ */
.blog-layout {
  display: grid;
  gap: 32px;
  align-items: start;
}
.blog-main { min-width: 0; }

/* ================================================================
   HERO (메인 페이지 피처드 포스트)
   ================================================================ */
.blog-hero {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 36px;
  xmin-height: 360px;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow-lg);
}
.blog-hero--v1 { background: linear-gradient(135deg, #1e3a8a 0%, #312e81 100%); }
.blog-hero--v2 { background: linear-gradient(135deg, #064e3b 0%, #065f46 100%); }
.blog-hero--v3 { background: linear-gradient(135deg, #7c2d12 0%, #9a3412 100%); }
.blog-hero--v4 { background: linear-gradient(135deg, #4a044e 0%, #701a75 100%); }

.blog-hero__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.blog-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.88) 0%,
    rgba(0,0,0,.55) 45%,
    rgba(0,0,0,.15) 100%
  );
}
.blog-hero__body {
  position: relative; z-index: 1;
  padding: 32px 36px; width: 100%;
}
.blog-hero__tag {
  display: inline-block;
  background: var(--accent); color: #fff;
  font-size: 16px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 10px; border-radius: 4px;
  margin-bottom: 12px;
}
.blog-hero__title {
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 800; color: #fff;
  line-height: 1.35; margin-bottom: 12px;
}
.blog-hero__title a { color: inherit; }
.blog-hero__title a:hover { text-decoration: none; opacity: .9; }
.blog-hero__excerpt {
  font-size: 22px; color: rgba(255,255,255,.78);
  line-height: 1.7; margin-bottom: 16px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-weight:600;
}
.blog-hero__meta {
  display: flex; gap: 16px; flex-wrap: wrap;
  font-size: 18px; color: rgba(255,255,255,.68);
}

/* ================================================================
   SECTION HEADER
   ================================================================ */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.section-title {
  font-size: 17px; font-weight: 800; color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.section-title::before {
  content: '';
  display: inline-block; width: 4px; height: 18px;
  background: var(--primary); border-radius: 2px;
}

/* ================================================================
   POST CARD GRID (메인 & 목록)
   ================================================================ */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
  height:303px;
}

.post-card:hover { box-shadow: var(--shadow-lg);  }

.post-card__thumb {
  aspect-ratio: 16/9;
  overflow: hidden; position: relative;
}
.post-card__thumb a { display: block; width: 100%; height: 100%; }
.post-card__thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.post-card:hover .post-card__thumb img { transform: scale(1.06); }
.post-card__thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
}
.post-card__thumb-placeholder .ph-icon { font-size: 30px; opacity: .55; }
.post-card__thumb-placeholder .ph-board {
  font-size: 16px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; opacity: .55;
}
.post-card-readmore{float:left;width:160px;font-weight: 700;color:black !important;font-size:16px}
.post-card-narrow{float:left;width:100px;font-weight: 700;color:black}

/* 플레이스홀더 그라디언트 변형 */
.ph-bg-0 { background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%); }
.ph-bg-1 { background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%); }
.ph-bg-2 { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); }
.ph-bg-3 { background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%); }
.ph-bg-4 { background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%); }
.ph-bg-5 { background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%); }
.ph-bg-6 { background: linear-gradient(135deg, #f0fdf4 0%, #bbf7d0 100%); }
.ph-bg-7 { background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 100%); }

.post-card__body {
  padding: 18px 20px 20px;
   
}
.post-card__board {
  font-size: 16px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--primary);
  margin-bottom: 7px;display: inline-block;width:100%;
  color: var(--primary);
}
.post-card__board  span{float:right;color:#666}
.post-wraper {width: 100%;height: 205px;display: flex;flex-direction: column; }

.post-card__title {font-size: 18px; font-weight: 600;line-height: 1.25; margin-bottom: 8px;flex-shrink: 0;color: var(--text);}
.post-card__title a { color: var(--text); }
.post-card__title a:hover { color: var(--primary); text-decoration: none; }
.post-card__excerpt {
	flex: 1;
	font-style: normal;
	font-weight: 400;
	font-size: 18px;
	line-height: 1.5;
	font-family: var(--global-body-font-family);
	color: #000308;
	margin-bottom:15px;
	overflow: hidden;
	display: -webkit-box;
	-webkit-box-orient: vertical;
  
}


.post-card__meta {
  display: flex; gap: 10px; flex-wrap: wrap;
  font-size: 16px; color: var(--muted);
  border-top: 1px solid var(--border); padding-top: 11px;
  margin-top: auto;
}
.post-readmore {
    font-weight: bold;
    letter-spacing: .05em;
    text-transform: uppercase;
    text-decoration: none;
    color: inherit;
 
    overflow:hidden
}
/* ================================================================
   ARCHIVE (게시판 목록 페이지)
   ================================================================ */
.archive-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px; padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.archive-header__icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--primary-light); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.archive-header__info { flex: 1; min-width: 0; }
.archive-header__title { font-size: 22px; font-weight: 800; margin: 0; line-height: 1.2; }
.archive-header__count { font-size: 18px; color: var(--muted); margin-top: 2px; }

.archive-notice {
  background: var(--primary-light); border: 1px solid #bfdbfe;
  border-radius: var(--radius); padding: 10px 16px;
  font-size: 18px; display: flex; align-items: center; gap: 8px;
  margin-bottom: 8px;
}
.archive-notice a { color: var(--text); font-weight: 500; }
.archive-notice a:hover { color: var(--primary); text-decoration: none; }

/* 아카이브 카드 그리드 */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 8px;
}
.archive-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  overflow: hidden; transition: box-shadow .2s, transform .2s;
  display: flex; flex-direction: column;
  height: 200px;
}
.archive-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.archive-card__thumb {
  aspect-ratio: 16/9; overflow: hidden; position: relative;
}
.archive-card__thumb a { display: block; width: 100%; height: 100%; }
.archive-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.archive-card:hover .archive-card__thumb img { transform: scale(1.06); }
.archive-card__thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px;
}
.archive-card__body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.archive-card__meta {
  display: flex; gap: 10px; font-size: 16px;
  color: var(--muted); margin-bottom: 8px; flex-wrap: wrap;
}
.archive-card__title {
  font-size: 18px; font-weight: 700;
  margin: 0 0 8px; line-height: 1.4;
  height: 45px; overflow: hidden;
}
.archive-card__title a { color: var(--text); }
.archive-card__title a:hover { color: var(--primary); text-decoration: none; }
.archive-card__excerpt {
  font-size: 18px; font-weight: 600; color: var(--text-sec);
  line-height: 1.65; margin: 0;
  height: 110px; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; text-overflow: ellipsis;
}

/* 검색 */
.board-search { display: flex; gap: 8px; padding: 20px 0 8px; justify-content: center; }
.board-search form { display: flex; gap: 8px; }
.board-search select, .board-search input[type=text] {
  padding: 8px 14px; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 18px; color: var(--text);
  background: var(--white); transition: border-color .15s;
}
.board-search select:focus, .board-search input:focus {
  outline: none; border-color: var(--primary);
}
.board-search input[type=text] { width: 220px; }

/* ================================================================
   ARTICLE VIEW (게시글 상세)
   ================================================================ */
.article-wrap {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); margin-bottom: 16px;
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.article-hero-banner {
  width: 100%; min-height: 160px;
  display: flex; align-items: flex-end;
  padding: 24px 36px;
  position: relative; overflow: hidden;
}
.article-hero-banner__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.article-hero-banner__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, rgba(0,0,0,.3) 100%);
}
.article-hero-banner__tag {
  position: relative; z-index: 1;
  display: inline-block;
  background: rgba(255,255,255,.18); color: #fff;
  font-size: 16px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; padding: 5px 14px;
  border-radius: 20px; border: 1px solid rgba(255,255,255,.35);
}
/* gradient variants */
.article-hero-banner--v1 { background: linear-gradient(135deg, #1e3a8a 0%, #312e81 100%); }
.article-hero-banner--v2 { background: linear-gradient(135deg, #064e3b 0%, #065f46 100%); }
.article-hero-banner--v3 { background: linear-gradient(135deg, #7c2d12 0%, #9a3412 100%); }
.article-hero-banner--v4 { background: linear-gradient(135deg, #4a044e 0%, #701a75 100%); }

.article-header { padding: 26px 36px 22px; border-bottom: 1px solid var(--border); }
.article-board-tag {
  font-size: 16px; font-weight: 700; letter-spacing: .06em;
  color: var(--primary); text-transform: uppercase;
  display: inline-block; margin-bottom: 12px;
}
.article-board-tag a { color: inherit; }
.article-title {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 800; line-height: 1.35;
  margin: 0 0 18px; color: var(--text);
}
.article-byline {
  display: flex; gap: 14px; flex-wrap: wrap;
  font-size: 18px; color: #333888;
  align-items: center;
  padding-top: 14px; border-top: 1px solid var(--border);
}
.article-byline__author {
  font-weight: 700; color: var(--text);
  display: flex; align-items: center; gap: 7px;
}
.author-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.article-byline time { display: flex; align-items: center; gap: 4px; }
.article-byline__modified {
  font-size: 16px; color: var(--muted);
  padding: 2px 8px; border-radius: 4px;
  background: var(--bg-alt); border: 1px solid var(--border);
}
.article-body {
  padding: 30px 36px;
  line-height: 2; font-size: 18px;
  min-height: 200px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.article-body img { max-width: 100%; border-radius: var(--radius); display: block; margin: 16px auto; }
.article-actions {
  padding: 14px 36px; display: flex; gap: 8px;
  justify-content: flex-end; background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.article-body h1,
.article-body h2,
.article-body h3 {
  line-height: 60px;
}
.article-body ul{
  margin-left:30px;margin-bottom:30px
}

.article-nav { display: grid; grid-template-columns: 1fr 1fr; }
.article-nav__item {
  padding: 16px 22px; font-size: 18px;
  display: flex; flex-direction: column; gap: 5px;
  color: var(--text); text-decoration: none;
  transition: background .15s;
}
.article-nav__item:hover { background: var(--bg-alt); text-decoration: none; }
.article-nav__item--next {
  border-left: 1px solid var(--border);
  text-align: right; align-items: flex-end;
}
.article-nav__label {
  font-size: 18px; color: #555;
  font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
}
.article-nav__link { font-size: 18px; font-weight: 700; color: var(--text); }

/* ================================================================
   COMMENT SECTION
   ================================================================ */
.comment-section {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px 36px;
  box-shadow: var(--shadow-sm);
}
.comment-section__title {
  font-size: 18px; font-weight: 700; margin: 0 0 18px;
  padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.comment-section__title span { color: var(--primary); margin-left: 4px; }
.comment-item {
  padding: 14px 0; border-bottom: 1px solid var(--border);
  display: flex; gap: 12px;
}
.comment-item:last-of-type { border-bottom: none; }
.comment-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.comment-body { flex: 1; }
.comment-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.comment-author { font-weight: 700; font-size: 18px; }
.comment-date { font-size: 16px; color: var(--muted); }
.comment-text { font-size: 19px; color: var(--text); line-height: 1.75; }
.comment-del { margin-left: auto; align-self: flex-start; }
.comment-form {
  margin-top: 18px; padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex; gap: 10px; align-items: flex-start;
}
.comment-form textarea {
  flex: 1; padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius); font-family: inherit; font-size: 19px;
  resize: vertical; min-height: 78px; transition: border-color .15s;
}
.comment-form textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.comment-login-notice {
  text-align: center; padding: 20px;
  font-size: 19px; color: var(--muted);
}

/* ================================================================
   BREADCRUMB
   ================================================================ */
.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 18px; color: var(--muted);
  margin-bottom: 18px; flex-wrap: wrap;
}
.breadcrumb a { color:#336699; font-size:16px}
.breadcrumb a:hover { color: var(--primary); text-decoration: none; }
.breadcrumb__sep { color: #336699; font-size:16px !important}
.breadcrumb__current { color: var(--text); font-weight: 500; }

/* ================================================================
   SIDEBAR
   ================================================================ */
.blog-sidebar { position: sticky; top: calc(var(--header-h) + 16px); }
.sidebar-widget {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px; margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.sidebar-widget__title {
  font-size: 16px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--primary);
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px; margin: 0 0 13px;
}
.sidebar-recent, .sidebar-boards { list-style: none; margin: 0; padding: 0; }
.sidebar-recent li {
  padding: 8px 0; border-bottom: 1px solid var(--border);
  font-size: 18px; line-height: 1.5;
}
.sidebar-recent li:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-recent a { color: var(--text); display: block; }
.sidebar-recent a:hover { color: var(--primary); text-decoration: none; }
.sidebar-boards li { padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 18px; }
.sidebar-boards li:last-child { border-bottom: none; }
.sidebar-boards a {
  color: var(--text); display: flex;
  justify-content: space-between; align-items: center;
}
.sidebar-boards a:hover { color: var(--primary); text-decoration: none; }
.sidebar-boards__cnt {
  font-size: 16px; color: var(--muted);
  background: var(--bg-alt); padding: 2px 7px;
  border-radius: 10px; border: 1px solid var(--border);
}

/* ================================================================
   PAGER
   ================================================================ */
.pager { display: flex; justify-content: center; gap: 4px; padding: 24px 0 16px; }
.pager a, .pager span {
  display: inline-flex; min-width: 36px; height: 36px;
  align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 18px; font-weight: 500; color: var(--text-sec);
  padding: 0 10px; transition: all .15s;
}
.pager a:hover { background: var(--primary-light); color: var(--primary); border-color: var(--primary); text-decoration: none; }
.pager span.current { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 700; }

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 20px; gap: 6px;
  border: none; border-radius: var(--radius);
  font-size: 18px; font-weight: 600; font-family: inherit;
  cursor: pointer; transition: all .15s; text-align: center;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); text-decoration: none; color: #fff; }
.btn-secondary { background: var(--bg-alt); color: var(--text-sec); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--border); text-decoration: none; color: var(--text); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; text-decoration: none; color: #fff; }
.btn-sm { padding: 6px 13px; font-size: 18px; }

/* ================================================================
   FORM
   ================================================================ */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 18px; }
.form-group input[type=text],
.form-group input[type=tel],
.form-group input[type=password],
.form-group input[type=email],
.form-group select,
.form-group textarea {
  width: 100%; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 19px; font-family: inherit; color: var(--text);
  background: var(--white); transition: border-color .15s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.form-group textarea { min-height: 200px; resize: vertical; }
.form-hint { font-size: 16px; color: var(--muted); margin-top: 4px; }
.form-error { font-size: 16px; color: var(--danger); margin-top: 4px; }

/* ================================================================
   CARD (generic - write/modify forms etc)
   ================================================================ */
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  padding: 24px; margin-bottom: 20px;
}
.card-title {
  font-size: 18px; font-weight: 700;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 12px; margin-bottom: 20px;
}

/* ================================================================
   ALERT
   ================================================================ */
.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: 19px; }
.alert-success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.alert-error   { background: #fef2f2; color: var(--danger); border: 1px solid #fecaca; }
.alert-info    { background: #eff6ff; color: var(--primary-dark); border: 1px solid var(--primary-light); }

/* ================================================================
   AUTH
   ================================================================ */
.auth-wrap { max-width: 460px; margin: 40px auto; }
.auth-wrap .card-title { font-size: 22px; text-align: center; border-bottom: none; padding-bottom: 4px; }

/* ================================================================
   BADGE
   ================================================================ */
.badge-notice {
  display: inline-block; background: var(--primary);
  color: #fff; font-size: 16px; font-weight: 700;
  padding: 2px 8px; border-radius: 4px; margin-right: 6px;
}

/* ================================================================
   GNB 드롭다운 네비게이션
   ================================================================ */
#gnb .gnb-item { position: relative; display: flex; align-items: center; }
#gnb .gnb-link { display: flex; align-items: center; gap: 2px; }
.gnb-arrow {
  font-size: 16px; opacity: .6;
  transition: transform .2s; display: inline-block;
}
#gnb .gnb-item:hover .gnb-arrow,
#gnb .gnb-item:focus-within .gnb-arrow { transform: rotate(180deg); }
#gnb .gnb-item:hover > .gnb-link,
#gnb .gnb-item:focus-within > .gnb-link {
  background: var(--primary-light); color: var(--primary); text-decoration: none;
}
.gnb-dropdown {
  display: none;
  position: absolute; top: 100%; left: 0;
  min-width: 182px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 6px; padding: 12px 0; z-index: 300;
}
#gnb .gnb-item:hover .gnb-dropdown,
#gnb .gnb-item:focus-within .gnb-dropdown {
  display: block; animation: dropIn .14s ease;
}
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: translateY(0); }
}
#gnb .gnb-dropdown a {
  display: block; padding: 4px 13px;
  border-radius: 6px; font-size: 16px; font-weight: 500;
  color: var(--text); background: none; white-space: nowrap;
  transition: background .12s, color .12s;
}
#gnb .gnb-dropdown a:hover {
  background: var(--bg-alt); color: var(--primary); text-decoration: none;
}

/* 모바일 아코디언 그룹 */
.mobile-group__btn {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 12px 16px; border-radius: var(--radius);
  background: none; border: none; cursor: pointer;
  font-size: 18px; font-weight: 600; color: var(--text);
  font-family: inherit; text-align: left;
  transition: background .12s;
}
.mobile-group__btn:hover { background: var(--bg-alt); }
.mobile-group__arrow { font-size: 16px; transition: transform .2s; opacity: .6; }
.mobile-group.open .mobile-group__arrow { transform: rotate(180deg); }
.mobile-group__items { display: none; padding: 0 0 8px 10px; }
.mobile-group.open .mobile-group__items { display: block; }
.mobile-group__items a {
  display: block; padding: 9px 16px;
  border-radius: var(--radius); font-size: 19px; color: var(--text-sec);
  transition: background .12s;
}
.mobile-group__items a:hover {
  background: var(--bg-alt); color: var(--primary); text-decoration: none;
}

/* ================================================================
   섹션 페이지 공통 (건강정보, 게임, 도구 등)
   ================================================================ */
.section-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
  border-radius: var(--radius-lg); padding: 32px 36px;
  color: #fff; margin-bottom: 28px;
  box-shadow: var(--shadow-lg);
}
.section-hero--green  { background: linear-gradient(135deg, #059669 0%, #065f46 100%); }
.section-hero--orange { background: linear-gradient(135deg, #d97706 0%, #9a3412 100%); }
.section-hero--purple { background: linear-gradient(135deg, #7c3aed 0%, #4c1d95 100%); }
.section-hero--teal   { background: linear-gradient(135deg, #0891b2 0%, #164e63 100%); }
.section-hero__icon {font-size: 64px;margin-top: -23px; width: 92px;float: left;}
.section-hero__title { font-size: 26px; font-weight: 800; margin-top: 8px;float:right;width:calc(100% - 100px)   }
.section-hero__desc  { font-size: 18px;  line-height: 1.65; padding-left: 13px;
    display: inline-block;  }

.section-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px; margin-bottom: 24px;
}
.section-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px;
  box-shadow: var(--shadow-sm); cursor: pointer;
  transition: box-shadow .2s, transform .2s;
  text-decoration: none; display: block; color: inherit;
}
.section-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); text-decoration: none; }
.section-card__icon { font-size: 32px; margin-bottom: 10px;float:left;width:40px;margin-right:9px}
.section-card__title { font-size: 22px; font-weight: 700; margin-top: 12px;float:left;width:calc(100% - 50px) }
.section-card__desc  { font-size: 18px; color: var(--text-sec); line-height: 1.6; ;float:right;width:calc(100% - 50px)}

/* 건강 정보 콘텐츠 */
.info-section {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px 28px;
  box-shadow: var(--shadow-sm); margin-bottom: 16px;
}
.info-section__title {
  font-size: 22px; font-weight: 700; margin-bottom: 14px;
  padding-bottom: 10px; border-bottom: 2px solid var(--primary);
  display: flex; align-items: center; gap: 8px;
}
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li {
  padding: 8px 0 8px 20px; border-bottom: 1px solid var(--border);
  font-size: 18px; line-height: 1.7; position: relative;
}
.info-list li:last-child { border-bottom: none; }
.info-list li::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--primary); font-weight: 700;
}
.info-tip {
  background: var(--primary-light); border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 18px; font-size: 18px; line-height: 1.7;
  margin-top: 14px;
}

/* 게임 컨테이너 */
.game-container {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  box-shadow: var(--shadow-sm); margin-bottom: 16px;
}
.game-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; flex-wrap: wrap; gap: 12px;
}
.game-status {
  display: flex; gap: 16px; font-size: 18px; font-weight: 600;
}
.game-status__item {
  background: var(--bg-alt); padding: 6px 14px;
  border-radius: var(--radius); border: 1px solid var(--border);
}
.game-board { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.game-message {
  text-align: center; padding: 16px;
  font-size: 22px; font-weight: 600; color: var(--primary);
}
.game-result {
  text-align: center; padding: 24px;
}
.game-result__score { font-size: 42px; font-weight: 800; color: var(--primary); }
.game-result__label { font-size: 18px; color: var(--muted); margin-top: 4px; }

/* 도구 컨테이너 */
.tool-container {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow-sm); margin-bottom: 16px;
}
.tool-result {
  text-align: center; padding: 24px 20px;
  background: var(--bg-alt); border-radius: var(--radius-lg);
  margin-top: 20px; border: 1px solid var(--border);
}
.tool-result__value { font-size: 48px; font-weight: 800; color: var(--primary); line-height: 1; }
.tool-result__label { font-size: 18px; color: var(--muted); margin: 6px 0 0; }
.tool-result__badge {
  display: inline-block; padding: 6px 18px; border-radius: 20px;
  font-size: 19px; font-weight: 700; margin-top: 12px;
}
.badge-normal   { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.badge-warning  { background: #fef3c7; color: #d97706; border: 1px solid #fde68a; }
.badge-danger   { background: #fef2f2; color: var(--danger); border: 1px solid #fecaca; }

/* 혈압 기록 테이블 */
.bp-table { width: 100%; border-collapse: collapse; font-size: 18px; margin-top: 16px; }
.bp-table th, .bp-table td {
  padding: 9px 12px; text-align: left;
  border-bottom: 1px solid var(--border);
}
.bp-table th { background: var(--bg-alt); font-weight: 600; color: var(--muted); }
.bp-table tbody tr:hover td { background: #f5f8ff; }

/* ================================================================
   FOOTER
   ================================================================ */
#site-footer {
  background: var(--white); border-top: 1px solid var(--border);
  padding: 28px 0;
}
#site-footer .inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-brand { font-size: 22px; font-weight: 800; color: var(--primary); }
.footer-copy { font-size: 18px; color: var(--muted); }
.footer-brand a{color:#222;margin-left:10px}
/* ================================================================
   RESPONSIVE
   ================================================================ */

.footer-share {
  text-align: center;
  padding: 18px 0 14px;
  border-top: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin: 14px 0;
}
.footer-share__label {
  font-size: 18px; color: #aaa;
  margin: 0 0 10px; letter-spacing: 0.3px;
}
.footer-share__btns {
  display: flex; flex-wrap: wrap;
  justify-content: center; gap: 8px;
}
.sns-btn {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 7px 13px; border: none; border-radius: 99px;
  font-size: 18px; font-weight: 700; cursor: pointer;
  transition: opacity 0.15s, transform 0.12s;
  line-height: 1;
}
.sns-btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.sns-btn:hover  { opacity: 0.85; transform: translateY(-1px); }
.sns-btn:active { transform: scale(0.96); }
.sns-facebook { background: #1877F2; color: #fff; }
.sns-twitter  { background: #000;    color: #fff; }
.sns-naver    { background: #03C75A; color: #fff; }
.sns-line     { background: #00B900; color: #fff; }
.sns-copy     { background: #555;    color: #fff; }
.sns-copy.copied { background: #43a047; }
@media (max-width: 480px) {
  .sns-btn { padding: 7px 10px; font-size: 16px; }
}


@media (max-width: 960px) {
  .blog-layout { grid-template-columns: 1fr; gap: 24px; }
  .blog-sidebar { position: static; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }   /* 960px 이하: 2열 */
  .archive-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  #gnb { display: none; }
  #user-nav { display: none; }
  .menu-toggle { display: flex; }
  .inner { padding: 0 10px; }
  .post-card {height:234px;}

  .post-wraper {width: 100%;height: 145px;display: flex;flex-direction: column; font-size: 20px;}

  /* ── 타이틀 22px ── */
  .post-card__title    { font-size: 22px; }
  .archive-card__title { font-size: 22px; }
  .article-title       { font-size: 22px; }
  .section-title       { font-size: 22px; }
  .section-card__title { font-size: 22px; }
  .info-section__title { font-size: 22px; }

  /* ── 콘텐츠 18px ── */
  .post-card__excerpt {
    flex: 1;
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.4;
    font-family: var(--global-body-font-family);
    color: #000308;
    margin-bottom:10px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
  }
  .archive-card__excerpt { font-size: 18px; }
  .article-body          { font-size: 18px; }
  .section-card__desc    { font-size: 18px; }
  .section-hero__desc    { font-size: 18px; }
  .info-list li          { font-size: 18px; }
  .info-tip              { font-size: 18px; }
  .comment-text          { font-size: 18px; }

  /* ── 브레드크럼 18px ── */
  .breadcrumb            { font-size: 18px; }
  .breadcrumb a          { font-size: 18px; }
  .breadcrumb__current   { font-size: 18px; }
  .breadcrumb__sep       { font-size: 16px !important; }

  /* ── 모바일 메뉴 ── */
  .mobile-nav a          { font-size: 22px; padding: 14px 16px; }
  .mobile-group__btn     { font-size: 22px; padding: 14px 16px; }
  .mobile-group__items button{   background-color:#e9e9e9}
  .mobile-group__items a { font-size: 20px; padding: 5px 16px 5px 20px;  }
  .mobile-user a         { font-size: 20px; padding: 5px 16px 5px 20px; }

  .section-cards { grid-template-columns: 1fr; }

  .blog-hero__title   { font-size: 42px; }
  .blog-hero__excerpt { font-size: 18px; }

  .footer-brand{display:none}
  .footer-copy,.footer-share{width:100%;display:inline-block;text-align:center;margin: 2px 0;padding:0}
  .footer-share__label,.footer-copy{font-size: 18px;}
  .sns-btn {padding: 7px 22px;font-size: 20px; font-weight: 700; cursor: pointer;}
  .footer-copy a{padding:3px 2px;font-size: 22px;color:#333}
  .game-container{padding:15px 10px;}
}

@media (max-width: 600px) {
  .post-grid { grid-template-columns: 1fr; }
  .archive-grid { grid-template-columns: 1fr; }
  .blog-hero_x { min-height: 260px; }
  .blog-hero__body { padding: 20px 20px; }

  /* ── 타이틀 22px ── */
  .blog-hero__title    { font-size: 22px; }
  .post-card__title    { font-size: 22px; }
  .archive-card__title { font-size: 22px; }
  .article-title       { font-size: 22px; }
  .section-title       { font-size: 22px; }
  .section-card__title { font-size: 22px; }
  .info-section__title { font-size: 22px; }

  /* ── 콘텐츠 18px ── */
  .blog-hero__excerpt    { font-size: 18px; }
  .post-card__excerpt    { font-size: 18px; }
  .archive-card__excerpt { font-size: 18px; }
  .article-body          { font-size: 18px; padding: 20px; }
  .section-card__desc    { font-size: 18px; }
  .section-hero__desc    { font-size: 18px; }
  .info-list li          { font-size: 18px; }
  .info-tip              { font-size: 18px; }
  .comment-text          { font-size: 18px; }

  /* ── 브레드크럼 18px ── */
  .breadcrumb            { font-size: 18px; }
  .breadcrumb a          { font-size: 18px; }
  .breadcrumb__current   { font-size: 18px; }
  .breadcrumb__sep       { font-size: 16px !important; }

  /* ── 모바일 메뉴 ── */
  .mobile-nav a          { font-size: 22px; padding: 14px 16px; }
  .mobile-group__btn     { font-size: 22px; padding: 14px 16px;background: #f5f5f5; }

  .mobile-group__items a { font-size: 20px; padding: 5px 16px 5px 20px;  }
  .mobile-user a         { font-size: 20px; padding: 5px 16px 5px 20px; }

  .article-header { padding: 20px 20px 18px; }
  .article-hero-banner { padding: 18px 20px; }
  .article-actions { padding: 12px 20px; }
  .article-nav { grid-template-columns: 1fr; }
  .article-nav__item--next { border-left: none; border-top: 1px solid var(--border); text-align: left; align-items: flex-start; }
  .comment-section { padding: 20px; }
  .auth-wrap { margin: 16px; }
  #content { padding: 20px 0 60px; }
}
@media screen and (min-width: 1025px) {
    .grid-lg-col-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media screen and (min-width: 576px) {
    .grid-sm-col-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}