/* /hte/after/assets/css/style.css */

/* ===== Theme tokens (soft dark) ===== */
:root{
  --bg: #0f172a;         /* slate-900 느낌 */
  --panel: #111c33;      /* 카드/섹션 배경 */
  --panel2: #0b1220;     /* 더 진한 레이어 */
  --border: rgba(255,255,255,0.10);

  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.68);
  --muted2: rgba(255,255,255,0.55);

  --brand: #7aa2ff;      /* 채도 낮춘 포인트 */
  --brand2: #5d86ff;     /* hover */
  --shadow: 0 18px 60px rgba(0,0,0,0.35);
}

body.hte-after{
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

/* 기본 링크 */
a{ color: inherit; }
a:hover{ color: var(--text); }

/* ===== Header ===== */
.hte-topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(15,23,42,0.72);
  border-bottom: 1px solid var(--border) !important;
}

.hte-brand .text-dark{ color: var(--text) !important; }
.hte-brand .text-muted{ color: var(--muted) !important; }

.hte-mark{
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--brand);
  display:inline-block;
  box-shadow: 0 0 0 4px rgba(122,162,255,0.18);
}

/* nav link */
.hte-nav-link{
  text-decoration:none;
  padding: 8px 10px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 14px;
  transition: background .15s ease, color .15s ease;
}
.hte-nav-link:hover{
  background: rgba(255,255,255,0.06);
  color: var(--text);
}
.hte-nav-link.active{
  background: rgba(122,162,255,0.18);
  color: var(--text);
  font-weight:700;
}

/* ===== Main ===== */
.hte-main{ min-height: 65vh; }

/* ===== Panels (replace bg-dark-subtle feeling) ===== */
.hte-panel{
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 0 0 rgba(0,0,0,0);
}

/* ===== Buttons (soft brand) ===== */
.btn-primary{
  background: var(--brand);
  border-color: var(--brand);
  color: #0b1220;
  font-weight: 700;
}
.btn-primary:hover{
  background: var(--brand2);
  border-color: var(--brand2);
  color: #0b1220;
}

.btn-outline-secondary{
  border-color: rgba(255,255,255,0.22);
  color: var(--text);
}
.btn-outline-secondary:hover{
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.32);
  color: var(--text);
}

/* ===== Text helpers (bootstrap 충돌 완화) ===== */
.text-muted{ color: var(--muted) !important; }
.bg-dark-subtle{ background: rgba(255,255,255,0.04) !important; }
.bg-primary-subtle{ background: rgba(122,162,255,0.18) !important; }
.text-primary{ color: var(--brand) !important; }

/* list-group on dark */
.list-group-item{
  border-color: rgba(255,255,255,0.14) !important;
}
.list-group-item-action:hover{
  background: rgba(255,255,255,0.06) !important;
}

/* hero image card */
.shadow{ box-shadow: var(--shadow) !important; }

/* ===== Footer ===== */
.hte-footer{
  background: rgba(255,255,255,0.02);
  border-top: 1px solid var(--border) !important;
}
.hte-footer .fw-bold{ color: var(--text) !important; }
.hte-footer .text-muted{ color: var(--muted) !important; }
.hte-foot-link{
  text-decoration:none;
  color: var(--muted);
  font-size:14px;
}
.hte-foot-link:hover{
  color: var(--text);
  text-decoration: underline;
}

/* offcanvas dark (mobile menu) */
.offcanvas{
  background: #0b1220 !important;
  color: var(--text) !important;
}
.btn-close{
  filter: invert(1);
}

/* ===== Make it less bootstrap-y / more industrial ===== */

/* 전반 라운딩 최소화 */
:root{
  --r1: 6px;   /* 기본 라운드 */
  --r0: 0px;   /* 완전 각 */
}

/* Bootstrap 라운딩을 대체하고 싶으면 여기서 강하게 */
.rounded-4{ border-radius: var(--r1) !important; }
.rounded-3{ border-radius: var(--r1) !important; }
.rounded-2{ border-radius: var(--r1) !important; }
.btn, .form-control, .badge, .list-group-item{
  border-radius: var(--r1) !important;
}

/* 패널/카드: 각지고 '설계된' 느낌 */
.hte-panel{
  border-radius: var(--r1) !important;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.035);
  box-shadow: none !important;
}

/* “부트스트랩 배지” 느낌 줄이기 */
.badge{
  font-weight: 700;
  letter-spacing: .2px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.04) !important;
  color: rgba(255,255,255,0.86) !important;
}

/* 버튼도 더 각지게 + 덜 '부트스트랩' */
.btn{
  padding: 10px 14px;
  font-weight: 800;
  letter-spacing: .2px;
  box-shadow: none !important;
}
.btn-lg{
  padding: 12px 16px;
}
.btn-primary{
  border-width: 1px;
}
.btn-outline-secondary{
  border-width: 1px;
}

/* 섹션 타이포를 더 '기업'스럽게 */
h1, h2, h3, h4, h5{
  letter-spacing: -0.3px;
}
.display-5{
  letter-spacing: -0.8px;
}

/* list-group 느낌 줄이기: “리뉴얼 커스텀 리스트”처럼 */
.list-group{
  border-radius: var(--r1) !important;
  overflow: hidden;
}
.list-group-item{
  background: rgba(255,255,255,0.02) !important;
  border-color: rgba(255,255,255,0.12) !important;
}
.list-group-item-action:hover{
  background: rgba(255,255,255,0.05) !important;
}

/* 히어로 이미지 박스도 각지고 라인 강조 */
.ratio.rounded-4{
  border: 1px solid rgba(255,255,255,0.14);
}

/* 링크 hover도 '부트스트랩' 아닌 느낌으로 */
a.text-decoration-none:hover{
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

/* (가로 오버플로우 방지용 안전장치) */
html, body{ overflow-x: hidden; }

/* Solutions list */
.hte-ul{ margin:0; padding-left: 18px; color: rgba(255,255,255,0.86); }
.hte-ul li{ margin: 8px 0; }

/* About mini cards */
.hte-miniCard{
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.02);
}

/* Key-value block */
.hte-kv{ display: grid; gap: 10px; }
.hte-kv-row{ display:grid; grid-template-columns: 110px 1fr; gap: 12px; }
.hte-kv-k{ color: rgba(255,255,255,0.80); font-weight: 800; }
.hte-kv-v{ color: rgba(255,255,255,0.66); }

/* History */
.hte-historyBlock{
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.hte-historyBlock:last-child{ border-bottom:none; }
.hte-historyYear{
  font-weight: 900;
  letter-spacing: .8px;
  color: rgba(255,255,255,0.88);
}

/* 리스트 재사용 */
.hte-ul{ margin:0; padding-left: 18px; color: rgba(255,255,255,0.86); }
.hte-ul li{ margin: 8px 0; }

/* Notice list (custom table-like rows) */
.hte-search .form-control{
  background: rgba(255,255,255,0.02);
  border-color: rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.92);
}
.hte-search .form-control::placeholder{
  color: rgba(255,255,255,0.45);
}

.hte-tableHead{
  border-bottom: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.02);
  font-weight: 800;
}
.hte-colTitle{ flex: 1; }
.hte-colDate{ width: 130px; text-align: right; }
.hte-colHit{ width: 80px; text-align: right; }

.hte-row{
  display: flex;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background .15s ease;
}
.hte-row:last-child{ border-bottom:none; }
.hte-row:hover{ background: rgba(255,255,255,0.04); }

.hte-rowMain{ flex:1; min-width: 0; }
.hte-rowTitle{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hte-rowMeta{
  margin-top: 4px;
  font-size: 13px;
}

/* Notice view */
.hte-hr{
  border-color: rgba(255,255,255,0.10) !important;
  opacity: 1;
}

.hte-content{
  color: rgba(255,255,255,0.88);
  line-height: 1.85;
  font-size: 16px;
  white-space: normal;
}

.hte-navlist{
  border-top: 1px solid rgba(255,255,255,0.10);
  margin-top: 22px;
  padding-top: 18px;
  display: grid;
  gap: 10px;
}

.hte-navitem{
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
}

.hte-navlabel{
  font-weight: 900;
  color: rgba(255,255,255,0.78);
}

.hte-navlink a{
  color: rgba(255,255,255,0.88);
}
.hte-navlink a:hover{
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Contact form styling (less bootstrap-y) */
.hte-label{
  font-weight: 900;
  color: rgba(255,255,255,0.82);
  margin-bottom: 6px;
}
.hte-input{
  background: rgba(255,255,255,0.02) !important;
  border: 1px solid rgba(255,255,255,0.16) !important;
  color: rgba(255,255,255,0.92) !important;
  box-shadow: none !important;
}
.hte-input:focus{
  border-color: rgba(122,162,255,0.55) !important;
  outline: none;
}
.hte-input::placeholder{
  color: rgba(255,255,255,0.45) !important;
}

.hte-chip{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.02);
}

.hte-checkline{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.02);
}

/* Map */
.hte-map{
  position: relative;
  height: 260px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.02);
  overflow: hidden;
}
.hte-map-fallback{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* Doc content */
.hte-doc h2{
  font-size: 18px;
  font-weight: 900;
  margin-top: 26px;
  margin-bottom: 10px;
}
.hte-doc p{
  color: rgba(255,255,255,0.78);
  line-height: 1.85;
  margin-bottom: 10px;
}

/* FAQ */
.hte-faq-item{
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.hte-faq-item:last-child{ border-bottom:none; }

.hte-faq-q{
  width:100%;
  display:flex;
  align-items:center;
  gap:12px;
  padding: 16px 18px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.92);
  text-align: left;
}
.hte-faq-q:hover{
  background: rgba(255,255,255,0.04);
}
.hte-faq-no{
  font-weight: 900;
  color: rgba(255,255,255,0.55);
  min-width: 46px;
}
.hte-faq-title{
  font-weight: 800;
  flex: 1;
}
.hte-faq-icon{
  font-weight: 900;
  opacity: .7;
}

.hte-faq-a{
  padding: 0 18px 16px 76px;
  color: rgba(255,255,255,0.78);
  line-height: 1.85;
}
