/* SCH 성남중앙병원 블로그 스킨 */
:root {
  --sch-blue: #0e355b;
  --sch-blue-dark: #091f38;
  --sch-blue-light: #174a7c;
  --sch-orange: #ea521f;
  --sch-green: #5ab3a9;
}

/* ===== 전체 기본 ===== */
body {
  font-family: 'Pretendard', -apple-system, sans-serif !important;
  background: #ffffff !important;
  color: #1a2733 !important;
  margin: 0;
  padding: 0;
}

/* ===== HEADER ===== */
.sch-header {
  background: var(--sch-blue);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.sch-header.scrolled { box-shadow: 0 2px 20px rgba(14,53,91,0.4); }
.sch-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
}
.sch-logo-link { display: flex; align-items: center; flex-shrink: 0; }
.sch-logo-img {
  height: 40px;
  width: auto;
  opacity: 0.6;
  filter: brightness(10) saturate(0);
  display: block;
}
.sch-logo-link:hover .sch-logo-img { opacity: 0.9; }
.sch-nav { margin-left: auto; }
.sch-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.sch-nav a {
  display: block;
  padding: 8px 14px;
  color: rgba(255,255,255,0.82);
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  text-decoration: none;
}
.sch-nav a:hover { color: #fff; background: rgba(255,255,255,0.12); }
.sch-mobile-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}
.sch-mobile-btn span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; }
.sch-mobile-nav { display: none; max-height: 0; overflow: hidden; background: var(--sch-blue-dark); transition: max-height 0.3s; }
.sch-mobile-nav.open { max-height: 300px; }
.sch-mobile-nav ul { padding: 8px 24px 16px; list-style: none; display: flex; flex-direction: column; gap: 2px; }
.sch-mobile-nav a { display: block; padding: 10px 12px; color: rgba(255,255,255,0.85); font-size: 15px; border-radius: 6px; text-decoration: none; }

/* ===== HERO ===== */
.sch-hero {
  background: linear-gradient(135deg, var(--sch-blue-dark) 0%, var(--sch-blue) 55%, var(--sch-blue-light) 100%);
  padding: 72px 24px 64px;
  position: relative;
  overflow: hidden;
}
.sch-wm1 {
  position: absolute;
  left: calc((100% - 1200px) / 2 + 310px);
  top: 50%;
  transform: translateY(-50%) rotate(-5deg);
  width: 1300px;
  pointer-events: none;
  filter: blur(8px) brightness(10) saturate(0);
  opacity: 0.1;
  user-select: none;
}
.sch-wm2 {
  position: absolute;
  left: -60px;
  top: 10%;
  width: 340px;
  pointer-events: none;
  filter: blur(12px) brightness(10) saturate(0);
  opacity: 0.06;
  transform: rotate(8deg);
  user-select: none;
}
.sch-hero-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }
.sch-badge {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(90,179,169,0.2);
  border: 1px solid rgba(90,179,169,0.4);
  color: var(--sch-green);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.sch-hero-title {
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  margin: 0 0 16px;
}
.sch-hero-desc { font-size: 16px; color: rgba(255,255,255,0.72); max-width: 480px; line-height: 1.7; margin: 0 0 36px; }
.sch-stats { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.sch-stat { display: flex; flex-direction: column; }
.sch-stat-num { font-size: 26px; font-weight: 700; color: #ffffff; line-height: 1; }
.sch-stat-label { font-size: 12px; color: rgba(255,255,255,0.55); margin-top: 4px; }
.sch-stat-div { width: 1px; height: 36px; background: rgba(255,255,255,0.15); }

/* ===== WRAP ===== */
.sch-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 24px 60px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}

/* ===== 공지 ===== */
.sch-notice {
  background: #ffffff;
  border: 1px solid #e8ecf0;
  border-left: 4px solid var(--sch-orange);
  border-radius: 6px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #5a6b78;
}
.sch-notice strong { color: var(--sch-blue); }

/* ===== SIDEBAR ===== */
.sch-sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 84px; }
.sch-widget {
  background: #ffffff;
  border-radius: 10px;
  padding: 20px;
  border: 1px solid #e8ecf0;
  box-shadow: 0 1px 3px rgba(14,53,91,0.08);
}
.sch-widget-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--sch-blue);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f4f6f9;
}
.sch-accent {
  display: inline-block;
  width: 4px;
  height: 16px;
  background: linear-gradient(180deg, var(--sch-orange), var(--sch-green));
  border-radius: 2px;
  flex-shrink: 0;
}
.sch-hosp-widget { text-align: center; }
.sch-hosp-logo { width: 100px; margin: 0 auto 14px; display: block; }
.sch-hosp-name { font-size: 16px; font-weight: 700; color: var(--sch-blue); margin: 0 0 2px; }
.sch-hosp-eng { font-size: 10px; color: #9aabb9; letter-spacing: 1px; margin: 0 0 16px; }
.sch-btn-primary {
  display: block;
  padding: 11px;
  background: var(--sch-blue);
  color: #ffffff !important;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 8px;
  text-decoration: none;
}
.sch-btn-primary:hover { background: var(--sch-orange); color: #ffffff !important; }
.sch-btn-kakao {
  display: block;
  padding: 11px;
  background: #FEE500;
  color: #3A1D1D !important;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 8px;
  text-decoration: none;
}
.sch-btn-kakao:hover { background: #F0D800; color: #3A1D1D !important; }
.sch-btn-outline {
  display: block;
  padding: 10px;
  background: transparent;
  color: var(--sch-blue) !important;
  border: 1.5px solid var(--sch-blue);
  border-radius: 6px;
  font-size: 14px;
  text-align: center;
  text-decoration: none;
}
.sch-btn-outline:hover { background: var(--sch-blue); color: #ffffff !important; }
.sch-quick { list-style: none; margin: 0; padding: 0; }
.sch-quick li { padding: 0; margin: 0; }
.sch-quick li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  font-size: 13.5px;
  color: #5a6b78;
  border-radius: 6px;
  text-decoration: none;
}
.sch-quick li a::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--sch-green); flex-shrink: 0; }
.sch-quick li a:hover { background: rgba(14,53,91,0.05); color: var(--sch-blue); }
.sch-recent { display: flex; flex-direction: column; padding: 9px 0; border-bottom: 1px solid #f4f6f9; }
.sch-recent:last-child { border-bottom: none; }
.sch-recent a { font-size: 13px; color: #1a2733; font-weight: 500; line-height: 1.5; margin-bottom: 3px; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sch-recent a:hover { color: var(--sch-orange); }
.sch-recent span { font-size: 11px; color: #9aabb9; }
.sch-dept { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.sch-dept div { padding: 8px; background: rgba(14,53,91,0.04); border: 1px solid #e8ecf0; border-radius: 6px; font-size: 12px; color: var(--sch-blue); text-align: center; font-weight: 500; cursor: pointer; }
.sch-dept div:hover { background: var(--sch-blue); color: #fff; }

/* ===== 티스토리 카테고리 ===== */
.sch-sidebar .tt_category, .sch-sidebar #sideNav { list-style: none; margin: 0; padding: 0; }
.sch-sidebar .tt_category a, .sch-sidebar #sideNav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  font-size: 13.5px;
  color: #5a6b78;
  border-radius: 6px;
  text-decoration: none;
}
.sch-sidebar .tt_category a:hover, .sch-sidebar #sideNav a:hover { background: rgba(14,53,91,0.05); color: var(--sch-blue); }

/* ===== FOOTER ===== */
.sch-footer { background: var(--sch-blue-dark); margin-top: 0; }
.sch-footer-inner { max-width: 1200px; margin: 0 auto; padding: 48px 24px 32px; display: flex; flex-direction: column; gap: 16px; }
.sch-footer-logo { display: flex; align-items: center; gap: 14px; }
.sch-footer-logo-img { height: 36px; width: auto; opacity: 0.5; filter: brightness(10) saturate(0); }
.sch-footer-name { font-size: 18px; font-weight: 700; color: #ffffff; margin: 0 0 2px; }
.sch-footer-eng { font-size: 11px; color: var(--sch-green); letter-spacing: 1.5px; margin: 0; }
.sch-footer-info { font-size: 13px; color: rgba(255,255,255,0.5); margin: 0; line-height: 1.8; }
.sch-footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.sch-footer-links a { font-size: 13px; color: rgba(255,255,255,0.5); text-decoration: none; }
.sch-footer-links a:hover { color: var(--sch-green); }
.sch-footer-bottom { background: rgba(0,0,0,0.2); text-align: center; padding: 16px 24px; font-size: 12px; color: rgba(255,255,255,0.35); border-top: 1px solid rgba(255,255,255,0.06); }

/* ===== MAIN ===== */
.sch-main {
  min-width: 0;
  min-height: 100px;
}

/* ===== 티스토리 글 목록 & 본문 기본 보정 ===== */
.sch-main .entry, 
.sch-main .post,
.sch-main .post-item,
.sch-main article,
.sch-main #content,
.sch-main .tt_article_useless_p_margin {
  display: block;
  visibility: visible;
  overflow: visible;
}
/* ===== 반응형 ===== */
@media (max-width: 900px) {
  .sch-wrap { grid-template-columns: 1fr; }
  .sch-sidebar { position: static; }
  .sch-wm1, .sch-wm2 { display: none; }
}
@media (max-width: 640px) {
  .sch-nav { display: none; }
  .sch-mobile-btn { display: flex; }
  .sch-mobile-nav { display: block; }
  .sch-hero { padding: 48px 20px 40px; }
  .sch-wrap { padding: 24px 16px 40px; }
  .sch-stats { gap: 20px; }
  .sch-stat-div { display: none; }

}