/* ===================================
   SPC Technology 티스토리 스킨
   화이트 + 레드 포인트 / 3열 카드 그리드
=================================== */

* { box-sizing: border-box; margin: 0; padding: 0; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }

body {
  font-family: 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  background: #f4f4f4;
  color: #1a1a1a;
  font-size: 14px;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }

/* ===== HEADER ===== */
#header {
  background: #fff;
  
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.header-top {
  max-width: 1320px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 0.5px solid #f0f0f0;
}

.logo-img { height: 26px; width: auto; max-width: 300px; display: block; }
.logo-text { font-size: 17px; font-weight: 700; color: #111; letter-spacing: -.3px; }

/* 검색 */
.search-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #f5f5f5;
  border-radius: 14px;
  padding: 5px 14px;
}
.search-wrap svg { color: #aaa; flex-shrink: 0; }
.search-wrap input {
  border: none; background: none; outline: none;
  font-size: 12px; width: 180px; color: #333;
  font-family: inherit;
}
.search-wrap input::placeholder { color: #aaa; }

/* GNB */
#gnb { border-top: 0.5px solid #f0f0f0; }
.gnb-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 16px;
}


/* 카테고리 네비게이션 */

/* GNB 카테고리 드롭다운 항목 스타일 */
#gnb .category-wrap ul {
  display: flex;
  flex-direction: row;
  list-style: none;
  gap: 0;
  padding: 0 !important;
  margin: 0 !important;
}
#gnb .category-wrap > ul > li {
  position: relative;
  display: inline-block;
}
#gnb .category-wrap > ul > li > a {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  color: #555;
  padding: 10px 13px;
  white-space: nowrap;
  transition: color .15s;
}
#gnb .category-wrap > ul > li > a:hover {
  color: #111;
  font-weight: 500;
}
#gnb .category-wrap > ul > li.current_category > a,
#gnb .category-wrap > ul > li.current > a {
  color: #e00;
  font-weight: 500;
  border-bottom: 2px solid #e00;
}

/* 2단계 드롭다운 */
#gnb .category-wrap > ul > li > ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 0.5px solid #e8e8e8;
  border-radius: 8px;
  min-width: 150px;
  padding: 6px 0;
  z-index: 200;
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
  list-style: none;
  flex-direction: column;
}
#gnb .category-wrap > ul > li:hover > ul {
  display: flex;
}
#gnb .category-wrap > ul > li > ul > li > a {
  display: block;
  font-size: 11px;
  color: #555;
  padding: 7px 16px;
  white-space: nowrap;
  transition: background .1s, color .1s;
}
#gnb .category-wrap > ul > li > ul > li > a:hover {
  background: #fff5f5;
  color: #e00;
}

/* ===== CONTAINER ===== */
#container { max-width: 1320px; margin: 0 auto; padding: 0 16px; }
.content-wrap {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 22px;
  padding: 20px 0 40px;
  align-items: start;
}

/* ===== CONTENT ===== */
#content {}

.feed-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 18px;
}
.feed-title { font-size: 14px; font-weight: 500; color: #111; }
.feed-count { font-size: 13px; color: #e00; }

/* 카드 그리드 */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

#content {
  display: block;
  /* #content는 일반 블록으로 - .grid만 그리드 역할 */
}

#content .feed-head,
#content .not-found,
#content .pagination,
#content .tt-comments-wrap,
#content .post-cover,
#content .entry-content,
#content .related-articles,
#content .comments {
  display: block;
  width: 100%;
}

.card {
  background: #f9f9f9;
  border-radius: 10px;
  overflow: hidden;
  border: 0.5px solid #e8e8e8;
  transition: border-color .2s, transform .2s;
  display: flex;
  flex-direction: column;
}
.card:hover { border-color: #e00; transform: translateY(-2px); }
.card-link { display: block; }

.thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #fff;
  
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.thumb img { width: 90%; height: 90%; object-fit: contain; display: block; }

.thumb-no-img {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.brand-text { font-size: 13px; font-weight: 700; color: #ccc; letter-spacing: .5px; }

.badge {
  display: inline-block;
  font-size: 9px; background: #e00; color: #fff;
  padding: 2px 7px; border-radius: 3px; font-weight: 500;
  margin-bottom: 6px;
}

.card-body { padding: 12px 13px 20px; background: #f9f9f9; flex: 1; display: flex; flex-direction: column; }
.card-cat { display: none; }
.card-title {
  font-size: 12px; font-weight: 500; color: #1a1a1a;
  line-height: 1.55; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta { display: flex; justify-content: space-between; margin-top: auto; }
.card-date { font-size: 10px; color: #bbb; }
.card-reply { font-size: 10px; color: #ccc; }

/* 글 상세 */
.post-cover {
  background: #1a1a2e center/cover no-repeat;
  border-radius: 10px;
  padding: 40px 30px;
  margin-bottom: 24px;
  position: relative;
}
.post-cover::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(0,0,0,.45);
  border-radius: 10px;
}
.post-cover-inner { position: relative; z-index: 1; }
.post-category { font-size: 11px; color: rgba(255,255,255,.7); }
.post-title { font-size: 22px; font-weight: 600; color: #fff; margin: 8px 0; line-height: 1.4; }
.post-meta { font-size: 12px; color: rgba(255,255,255,.6); }
.post-author { margin-right: 10px; }

.entry-content { 
  background: #fff;
  padding: 40px;
  border-radius: 10px;
  line-height: 1.8; 
  font-size: 15px; 
  color: #333;
  margin-top: 24px;
  border: 0.5px solid #e8e8e8;
}
.entry-content img { 
  max-width: 100%; 
  height: auto; 
  border-radius: 8px;
  margin: 20px 0;
}

/* 관련글 */
.related-articles { 
  background: #fff;
  padding: 40px;
  border-radius: 10px;
  margin-top: 24px; 
  border: 0.5px solid #e8e8e8;
  padding-top: 40px;
}
.related-articles h2 { font-size: 14px; font-weight: 500; margin-bottom: 14px; }
.related-articles ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; list-style: none; }
.related-articles li { 
  background: #f9f9f9;
  border: 0.5px solid #e8e8e8;
  border-radius: 8px;
  padding: 12px;
  transition: border-color .2s, transform .2s;
}
.related-articles li:hover {
  border-color: #e00;
  transform: translateY(-2px);
}
.related-articles li a { display: block; font-size: 12px; color: #333; }
.related-articles li img { width: 100%; border-radius: 6px; margin-bottom: 6px; }

/* 댓글 */
.comments { 
  background: #fff;
  padding: 40px;
  border-radius: 10px;
  margin-top: 24px; 
  border: 0.5px solid #e8e8e8;
  overflow: visible !important;
}

/* Tistory 댓글 시스템 스타일 */
.tt-comments-wrap {
  font-size: 14px;
  line-height: 1.8;
  color: #333;
  word-break: break-word;
}

/* 각 댓글 항목 정리 */
.tt-comments-wrap .tt-comment-item,
.tt-comments-wrap .reply-item {
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 12px;
}

.tt-comments-wrap .tt-comment-item:last-child {
  border-bottom: none;
}

/* 더보기 버튼 위치 조정 - position 사용 */
.tt-comments-wrap .tt-btn,
.tt-comments-wrap .more-button,
.tt-comments-wrap .tt-more,
.tt-comments-wrap [class*="more"] {
  position: relative !important;
  left: -120px !important;
  margin-right: -100px !important;
}

/* 댓글 입력 폼 */
.tt-comments-wrap textarea,
.tt-comments-wrap input[type="text"],
.tt-comments-wrap input[type="password"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  margin-bottom: 10px;
  box-sizing: border-box;
}

.tt-comments-wrap textarea:focus,
.tt-comments-wrap input:focus {
  outline: none;
  border-color: #e00;
}

/* 댓글 입력 폼의 등록/작성 버튼 - 빨강색 박스 */
input[type="submit"],
.tt-comments-wrap input[type="submit"],
.tt-comments-wrap .tt-btn-submit,
.tt-comments-wrap .btn-submit,
.tt-comments-wrap button[type="submit"],
.tt-comments-form input[type="submit"],
.tt-form input[type="submit"] {
  background: #e00 !important;
  color: #fff !important;
  border: none !important;
  padding: 10px 24px !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  cursor: pointer;
  transition: background .2s;
  height: auto !important;
  line-height: 1.4 !important;
  display: inline-block !important;
  vertical-align: baseline !important;
  white-space: nowrap !important;
  min-width: 60px !important;
}

input[type="submit"]:hover,
.tt-comments-wrap input[type="submit"]:hover,
.tt-comments-wrap button[type="submit"]:hover {
  background: #cc0000 !important;
}
}

/* 댓글 관련 버튼 - 텍스트 링크 스타일 (덧글, 삭제 등) */
.tt-comments-wrap .btn,
.tt-comments-wrap button,
.tt-comments-wrap a.btn,
.tt-comments-wrap .btn-text {
  background: transparent !important;
  color: #888 !important;
  border: none !important;
  padding: 0 6px !important;
  border-radius: 0 !important;
  font-size: 12px !important;
  font-weight: normal !important;
  cursor: pointer;
  transition: color .2s;
  text-decoration: none;
  height: auto !important;
  line-height: 1.4 !important;
  display: inline-block !important;
  vertical-align: baseline !important;
  white-space: nowrap !important;
}

.tt-comments-wrap .btn:hover,
.tt-comments-wrap button:hover,
.tt-comments-wrap a.btn:hover,
.tt-comments-wrap .btn-text:hover {
  color: #333 !important;
  text-decoration: underline;
}

/* ===== 표(Table) 팔렛트 ===== */
:root {
  /* 표 색상 팔렛트 - 여기서 수정 가능! */
  --table-header-bg: #e00;        /* 헤더 배경색 */
  --table-header-color: #fff;     /* 헤더 글씨색 */
  --table-border: #ccc;           /* 테두리 색 (연한 회색) */
  --table-row-bg: #fff;           /* 홀수 행 배경 */
  --table-row-alt-bg: #f9f9f9;    /* 짝수 행 배경 */
  --table-hover-bg: #fff5f5;      /* 호버 배경 */
}

/* 본문 표 스타일 */
.entry-content table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin: 24px 0 !important;
  border: 1.5px solid var(--table-border) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 0 0 1.5px var(--table-border) !important;
}

.entry-content table th {
  background: var(--table-header-bg) !important;
  color: var(--table-header-color) !important;
  padding: 14px !important;
  text-align: left !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  border-right: 1px solid var(--table-border) !important;
  border-bottom: 1px solid var(--table-border) !important;
}

.entry-content table th:last-child {
  border-right: none !important;
}

.entry-content table td {
  padding: 12px 14px !important;
  border-right: 1px solid var(--table-border) !important;
  border-bottom: none !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
}

.entry-content table td:last-child {
  border-right: none !important;
}

.entry-content table tbody tr {
  transition: background-color .2s !important;
}

.entry-content table tbody tr:nth-child(odd) {
  background: var(--table-row-bg) !important;
}

.entry-content table tbody tr:nth-child(even) {
  background: var(--table-row-alt-bg) !important;
}

.entry-content table tbody tr:hover {
  background: var(--table-hover-bg) !important;
}

/* 관련글/카테고리 표 - 스타일 제거 (직계 > 만) */
.entry-content > table {
  border: none !important;
  background: transparent !important;
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.entry-content > table td,
.entry-content > table th,
.entry-content > table tr {
  border: none !important;
  background: transparent !important;
  padding: 4px 0 !important;
  color: #333 !important;
}

/* 기본 표 스타일 */
table {
  border-collapse: collapse;
}
/* ===== "다른글" 섹션만 숨김 (마지막 div) ===== */
.entry-content > div:last-child {
  display: none !important;
}

/* 페이지네이션 */
.pagination { margin-top: 30px; text-align: center; padding: 10px 0; display: flex; justify-content: center; align-items: center; gap: 4px; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  font-size: 12px; color: #666;
  border-radius: 6px; background: transparent;
  border: none;
  transition: all .15s;
}
.pagination .selected { background: #e00; color: #fff; font-weight: 500; }
.pagination a:hover { background: #f5f5f5; color: #111; }
.pagination .prev::before { content: '←'; font-size: 16px; }
.pagination .prev { font-size: 0; }
.pagination .next::before { content: '→'; font-size: 16px; }
.pagination .next { font-size: 0; }
.pagination .no_more { opacity: .25; pointer-events: none; }

/* ===== SIDEBAR ===== */
#aside { display: flex; flex-direction: column; gap: 10px; padding-top: 40px; }

.s-card {
  background: #f9f9f9;
  background: #fff;
  
  border-radius: 10px;
  border: 0.5px solid #e8e8e8;
  padding: 14px;
}
.s-card-title {
  font-size: 12px; font-weight: 500; color: #111;
  margin-bottom: 10px; padding-bottom: 8px;
  border-bottom: 0.5px solid #f0f0f0;
}

/* 프로필 */
.profile-logo-wrap { margin-bottom: 10px; }
.profile-logo-img { width: 80%; max-height: 40px; object-fit: contain; display: block; margin: 10px auto 0; }
.profile-logo-placeholder {
  width: 100%; height: 50px;
  border: 1.5px dashed #ddd; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: #bbb;
}
.profile-name { font-size: 13px; font-weight: 500; color: #111; text-align: center; margin-bottom: 3px; }
.profile-tag { font-size: 11px; color: #e00; text-align: center; margin-bottom: 7px; }
.profile-desc { font-size: 11px; color: #888; line-height: 1.6; text-align: center; }
.profile-stats {
  display: flex; justify-content: center;
  margin-top: 10px; padding-top: 10px; border-top: 0.5px solid #f0f0f0;
}
.stat-num { font-size: 15px; font-weight: 500; color: #111; text-align: center; }
.stat-label { font-size: 10px; color: #bbb; text-align: center; margin-top: 2px; }

/* FOLLOW 카드 */
.follow-card {
  background: #f9f9f9;
  background: linear-gradient(135deg, #cc0000 0%, #ff2020 100%);
  border-radius: 10px;
  padding: 14px;
}
.follow-title { font-size: 12px; font-weight: 700; color: #fff; letter-spacing: .8px; margin-bottom: 7px; }
.follow-desc { font-size: 11px; color: rgba(255,255,255,.9); line-height: 1.6; margin-bottom: 11px; }
.follow-btns { display: flex; gap: 5px; }
.f-btn {
  flex: 1; padding: 7px 4px; border-radius: 7px;
  text-align: center; background: rgba(255,255,255,.2);
  border: 1.5px solid rgba(255,255,255,.7);
  color: #fff !important; font-size: 11px; font-weight: 600;
  white-space: nowrap; cursor: pointer; transition: background .15s;
}
.f-btn:hover { background: rgba(255,255,255,.35); color: #fff !important; }

/* 카테고리 위젯 */
.category-wrap ul { list-style: none; }
.category-wrap ul li a {
  font-size: 12px; color: #555;
  display: flex; justify-content: space-between; align-items: center;
  padding: 3.5px 0; transition: color .1s;
}
.category-wrap ul li a:hover { color: #e00; }
.category-wrap ul li.current_category > a,
.category-wrap ul li.current > a { color: #e00; font-weight: 500; }

/* 하위 카테고리 */
.category-wrap ul ul { padding-left: 10px; }
.category-wrap ul ul li a { font-size: 11.5px; color: #888; }

/* 최근글/인기글 탭 */
.tab-wrap { display: flex; gap: 8px; align-items: center; }
.tab { font-size: 12px; color: #bbb; cursor: pointer; user-select: none; }
.tab.on { color: #111; font-weight: 500; }
.tab-div { color: #e0e0e0; font-size: 12px; }

.recent-list { list-style: none; }
.recent-item { border-bottom: 0.5px solid #f5f5f5; }
.recent-item:last-child { border-bottom: none; }
.recent-item a { display: flex; gap: 8px; align-items: center; padding: 7px 0; }
.recent-thumb {
  width: 40px; height: 40px; border-radius: 6px;
  overflow: hidden; flex-shrink: 0; background: #f5f5f5;
}
.recent-thumb img { width: 100%; height: 100%; object-fit: cover; }
.recent-title {
  font-size: 11.5px; font-weight: 500; color: #222; line-height: 1.45; margin-bottom: 3px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.recent-date { font-size: 10px; color: #bbb; }


/* ===== 플로팅 버튼 ===== */
.floating-btns {
  position: fixed;
  right: 28px;
  bottom: 70px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 500;
}
.floating-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.floating-btn {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: #e00;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 14px rgba(220,0,0,.35);
  transition: transform .2s, box-shadow .2s;
}
.floating-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 20px rgba(220,0,0,.45);
  color: #fff;
}
.floating-tooltip {
  position: absolute;
  right: 56px;
  background: #111;
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.floating-tooltip::after {
  content: '';
  position: absolute;
  left: 100%; top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: #111;
}
.floating-item:hover .floating-tooltip { opacity: 1; }

/* ===== FOOTER ===== */
#footer { background: #fff; border-top: 0.5px solid #eee; margin-top: 20px; }
.footer-inner {
  max-width: 1320px; margin: 0 auto; padding: 16px 16px;
  text-align: center; font-size: 11px; color: #aaa;
}

/* ===== NOT FOUND ===== */
.not-found { padding: 40px 0; text-align: center; color: #aaa; font-size: 13px; }

/* ===== 햄버거 버튼 (모바일만 표시) ===== */
.hamburger { display: none; }

/* ===== 모바일 드로어 ===== */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 0; right: -280px;
  width: 280px; height: 100%;
  background: #fff;
  
  z-index: 1000;
  box-shadow: -4px 0 20px rgba(0,0,0,.15);
  transition: right .3s ease;
  overflow-y: auto;
}
.mobile-drawer.open { right: 0; }
.drawer-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 999;
}
.drawer-overlay.open { display: block; }
.drawer-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid #eee;
  font-size: 14px; font-weight: 600; color: #111;
}
.drawer-close {
  background: none; border: none; font-size: 18px; color: #999; cursor: pointer;
}
.drawer-body { padding: 12px 18px; }
.drawer-category ul { list-style: none; }
.drawer-category ul li a {
  display: flex; justify-content: space-between;
  font-size: 13px; color: #444;
  padding: 9px 0;
  border-bottom: 0.5px solid #f5f5f5;
}
.drawer-category ul li a:hover { color: #e00; }
.drawer-category ul ul { padding-left: 12px; }
.drawer-category ul ul li a { font-size: 12px; color: #888; }

/* ===== 모바일 하단 고정 바 ===== */
.mobile-bottom-bar { display: none; }

/* ===== 반응형 ===== */
@media (max-width: 768px) {
  .floating-btns { display: none; }
  #container { padding: 0 12px; }
  .content-wrap {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 16px 0 80px;
  }
  #aside { display: none; }
  .grid { grid-template-columns: 1fr; gap: 12px; }
  #gnb { display: none; }
  .header-top { padding: 10px 14px; }
  .header-right { display: flex; align-items: center; gap: 10px; }
  .search-wrap input { width: 80px; }
  .logo-text { font-size: 15px; }

  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px; height: 18px;
    background: none; border: none; cursor: pointer; padding: 0;
    flex-shrink: 0;
  }
  .hamburger span {
    display: block;
    width: 100%; height: 2px;
    background: #333; border-radius: 2px;
  }
  .mobile-drawer { display: block; }

  .mobile-bottom-bar {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #fff;
  
    border-top: 1px solid #eee;
    z-index: 500;
    box-shadow: 0 -2px 10px rgba(0,0,0,.08);
  }
  .bottom-btn {
    flex: 1;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 8px 0;
    color: #555;
    font-size: 10px; gap: 3px;
    border-right: 0.5px solid #f0f0f0;
  }
  .bottom-btn:last-child { border-right: none; }
  .bottom-btn svg { color: #e00; }
  .bottom-btn:hover { color: #e00; background: #fff5f5; }
}

/* ===== GNB 메뉴 강제 가로정렬 (티스토리 menu 태그 대응) ===== */
#gnb ul,
#gnb .category > ul,
#gnb nav > ul {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  gap: 0 !important;
}
#gnb ul li {
  display: inline-block !important;
  float: none !important;
  position: relative;
}
#gnb ul li a {
  display: flex !important;
  align-items: center;
  gap: 3px;
  font-size: 13.5px;
  color: #555;
  padding: 10px 15px;
  white-space: nowrap;
  transition: color .15s;
}
#gnb ul li a:hover { color: #111; font-weight: 500; }
#gnb ul li.current_category > a,
#gnb ul li.current > a {
  color: #e00;
  font-weight: 500;
  border-bottom: 2px solid #e00;
}

/* 드롭다운 서브메뉴 */
#gnb ul li ul {
  display: none !important;
  position: absolute !important;
  flex-direction: column !important;
  top: 100%; left: 0;
  background: #fff;
  
  border: 0.5px solid #e8e8e8;
  border-radius: 8px;
  min-width: 130px;
  padding: 6px 0 !important;
  z-index: 200;
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
}
#gnb ul li.has-sub:hover > ul {
  display: flex !important;
}
#gnb ul li ul li a {
  font-size: 11px !important;
  color: #555 !important;
  padding: 7px 16px !important;
  border-bottom: none !important;
  font-weight: 400 !important;
}
#gnb ul li ul li a:hover {
  background: #fff5f5;
  color: #e00 !important;
}

/* ===== 글 목록 (원본 구조 활용) ===== */
.inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 10px;
}
.post-item {
  background: #fff;
  
  border-radius: 10px;
  overflow: hidden;
  border: 0.5px solid #e8e8e8;
  transition: border-color .2s, transform .2s;
}
.post-item:hover { border-color: #e00; transform: translateY(-2px); }
.post-item > a {
  display: block;
  text-decoration: none;
  color: inherit;
}
.post-item .thum {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #f5f5f5;
}
.post-item .thum img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.post-item .badge-wrap {
  display: block;
  padding: 10px 13px 0;
}
.post-item .title {
  display: block;
  font-size: 12px; font-weight: 500; color: #1a1a1a;
  line-height: 1.55; padding: 5px 13px 6px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.post-item .meta {
  display: block;
  padding: 0 13px 12px;
}
.post-item .date { font-size: 10px; color: #bbb; }

/* 상세페이지일때 inner grid 해제 */
.post-cover ~ .inner,
#article-view ~ .inner { display: block; }