/* BASIC css start */
/* ============================================================
   THE LAB CHEMICAL — main.css
============================================================ */
:root {
  --navy: #0C025B;
  --accent: #a78bfa;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-sub: #475569;
  --text-muted: #94a3b8;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
}

/* 메인 레이아웃 — padding-top은 common.css header-h 변수로 관리 */
#contentWrapper { margin-left: 0 !important; width: 100% !important; }
#contentWrap    { margin-left: 0 !important; width: 100% !important; padding: 0 !important; }
#content        { width: 100% !important; }
.main_layout { padding-bottom: 0; }
.sec_inner { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
section { overflow: hidden; }
.sec-title {
  font-size: 18px; font-weight: 800; color: var(--text);
  letter-spacing: -.4px; margin-bottom: 32px; text-align: center;
}

/* ══════════════════════
   ① 히어로
══════════════════════ */
#hero { margin: 0; }
.hero-bg {
  background: var(--navy);
  position: relative; overflow: hidden;
  padding: 88px 40px 80px;
  min-height: 480px;
  display: flex; align-items: center;
}

/* 격자 패턴 */
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 44px 44px;
}

/* 오른쪽 글로우 */
.hero-bg::before {
  content: '';
  position: absolute; right: 5%; top: 50%; transform: translateY(-50%);
  width: 500px; height: 500px; pointer-events: none;
  background: radial-gradient(circle, rgba(167,139,250,.12) 0%, transparent 65%);
}

/* 왼쪽 하단 서브 글로우 */
.hero-bg::after {
  content: '';
  position: absolute; left: -5%; bottom: -10%;
  width: 400px; height: 400px; pointer-events: none;
  background: radial-gradient(circle, rgba(99,102,241,.08) 0%, transparent 65%);
}

.hero-inner {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto; width: 100%;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10px; font-weight: 700; letter-spacing: .24em;
  color: rgba(255,255,255,.35); margin-bottom: 24px; text-transform: uppercase;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block; width: 20px; height: 1px;
  background: rgba(255,255,255,.25);
}

.hero-title {
  font-size: 62px; font-weight: 900; color: #fff;
  line-height: 1.08; letter-spacing: -2.5px; margin-bottom: 16px;
}
.hero-title em { color: var(--accent); font-style: normal; }

.hero-sub {
  font-size: 16px; color: rgba(255,255,255,.45);
  margin-bottom: 40px; line-height: 1.6;
  display: flex; align-items: center; gap: 0; flex-wrap: wrap;
}
.hero-sub-divider {
  display: inline-block; width: 1px; height: 12px;
  background: rgba(255,255,255,.2); margin: 0 12px; vertical-align: middle;
}

/* 검색창 */
.hero-search {
  display: flex; align-items: center;
  max-width: 620px; margin-bottom: 28px;
  background: #fff;
  border: none;
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,.18);
  transition: box-shadow .2s;
}
.hero-search:focus-within {
  box-shadow: 0 4px 24px rgba(0,0,0,.25), 0 0 0 3px rgba(167,139,250,.5);
}
.hero-search input {
  flex: 1; background: transparent; border: none; outline: none;
  padding: 17px 22px; font-size: 15px;
  color: #0f172a; font-family: inherit;
}
.hero-search input::placeholder { color: #94a3b8; }
.hero-search button {
  flex-shrink: 0; padding: 0 32px;
  height: 54px; background: #7c3aed;
  border: none; cursor: pointer;
  font-size: 14px; font-weight: 800; color: #fff;
  font-family: inherit; letter-spacing: -.1px;
  transition: background .15s;
  border-radius: 0 10px 10px 0;
}
.hero-search button:hover { background: #6d28d9; }

/* 브랜드 퀵태그 */
.hero-tags { display: flex; gap: 7px; flex-wrap: wrap; }
.htag {
  display: inline-flex; align-items: center;
  height: 30px; padding: 0 14px;
  background: rgba(255,255,255,.05);
  border: 0.5px solid rgba(255,255,255,.1);
  border-radius: 20px; font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,.48); text-decoration: none; cursor: pointer;
  font-family: inherit; transition: all .15s;
}
.htag:hover { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.22); }
.htag-all {
  color: var(--accent); border-color: rgba(167,139,250,.28);
  background: rgba(167,139,250,.06);
}
.htag-all:hover { background: rgba(167,139,250,.14); color: #c4b5fd; }

/* ══════════════════════
   ② 통계
══════════════════════ */
#sec-stats {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.stats-list {
  max-width: 1200px; margin: 0 auto; padding: 0 40px;
  display: flex; list-style: none;
}
.stat-item {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  padding: 36px 20px; position: relative;
}
.stat-item + .stat-item::before {
  content: ''; position: absolute; left: 0; top: 28%; bottom: 28%;
  width: 1px; background: var(--border);
}
.stat-row { display: flex; align-items: flex-end; gap: 2px; line-height: 1; }
.stat-num  { font-size: 44px; font-weight: 900; color: var(--navy); letter-spacing: -1.5px; }
.stat-unit { font-size: 16px; font-weight: 700; color: var(--navy); opacity: .65; margin-bottom: 5px; }
.stat-label { font-size: 12px; color: var(--text-muted); font-weight: 600; margin-top: 8px; letter-spacing: .02em; }

/* ══════════════════════
   ③ 브랜드 캐러셀
══════════════════════ */
#sec-brands {
  padding: 60px 0 68px; background: var(--bg);
  border-bottom: 1px solid var(--border); overflow: hidden;
}
.brand-carousel-wrap {
  position: relative; width: 92%; overflow: hidden;
  display: flex; flex-direction: column; gap: 12px; margin: 0 auto;
}
.brand-carousel-wrap::before,
.brand-carousel-wrap::after {
  content: ''; position: absolute; top: 0; bottom: 0;
  width: 100px; z-index: 2; pointer-events: none;
}
.brand-carousel-wrap::before { left: 0; background: linear-gradient(to right, #fff, transparent); }
.brand-carousel-wrap::after  { right: 0; background: linear-gradient(to left, #fff, transparent); }
.brand-track { display: flex; gap: 12px; width: max-content; }
.brand-track-1 { animation: brandScroll 60s linear infinite; }
.brand-track-2 { animation: brandScroll 60s linear infinite reverse; }
.brand-carousel-wrap:hover .brand-track { animation-play-state: paused; }
@keyframes brandScroll { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
.brand-card {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  width: 176px; height: 96px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg);
  text-decoration: none; padding: 14px 18px; overflow: hidden;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.brand-card:hover {
  border-color: var(--navy); transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(12,2,91,.1);
}
.brand-card img { max-height: 72px; max-width: 100%; object-fit: contain; }
.brand-card.brand-nolink { cursor: default; }
.brand-card.brand-nolink:hover { border-color: var(--border); transform: none; box-shadow: none; }

/* ══════════════════════
   ④ 3×2 정보 패널
══════════════════════ */
#sec-info {
  padding: 60px 0 80px;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.03);
}

.info-col {
  padding: 24px 22px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.info-col:nth-child(2n) { border-right: none; }
.info-col:nth-child(5),
.info-col:nth-child(6) { border-bottom: none; }

.info-col-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 2px solid var(--navy);
}
.info-col-title {
  font-size: 13px; font-weight: 800; color: var(--text); letter-spacing: -.3px;
}
.info-col-more {
  font-size: 11px; color: var(--text-muted); text-decoration: none; font-weight: 600;
  transition: color .15s;
}
.info-col-more:hover { color: var(--navy); }
.info-badge-live {
  font-size: 9px; font-weight: 800; padding: 2px 7px;
  background: #dcfce7; color: #15803d; border-radius: 4px; letter-spacing: .06em;
}

/* 공통 리스트 */
.info-list { list-style: none; margin: 0; padding: 0; }
.info-item { border-bottom: 1px solid #f1f5f9; }
.info-item:last-child { border-bottom: none; }
.info-link {
  display: flex; flex-direction: column; gap: 3px;
  padding: 9px 0; text-decoration: none;
}
.info-link:hover .info-subject { color: var(--navy); }
.info-subject {
  font-size: 12px; font-weight: 600; color: var(--text); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color .15s;
}
.info-meta { font-size: 10px; color: #cbd5e1; font-weight: 500; }

/* 커뮤니티 배지 */
.comm-badge {
  display: inline-flex; align-items: center;
  height: 16px; padding: 0 6px; border-radius: 3px;
  font-size: 9px; font-weight: 800; margin-bottom: 3px; letter-spacing: .03em;
}
.badge-q { background: #eff6ff; color: #1d4ed8; }
.badge-s { background: #f0fdf4; color: #15803d; }
.badge-r { background: #fff7ed; color: #c2410c; }

/* 접수 배지 */
.info-badge-proc {
  display: inline-flex; align-items: center;
  height: 16px; padding: 0 6px; border-radius: 3px;
  font-size: 9px; font-weight: 800; letter-spacing: .03em;
  background: #eff6ff; color: #2563eb; margin-bottom: 3px;
}

/* 견적/MSDS CTA 버튼 */


/* 뉴스 소스 라벨 */
.news-src-label {
  font-size: 9px; font-weight: 800; letter-spacing: .07em;
  text-transform: uppercase; margin-bottom: 3px;
}
.news-src-st   { color: var(--navy); }
.news-src-cen  { color: #b45309; }
.news-src-bric { color: #0f766e; }
.news-src-nst  { color: #6d28d9; }

/* RSS 실패 메시지 */
.info-rss-notice {
  font-size: 11px; color: var(--text-muted); margin-top: 12px; line-height: 1.6;
}
.info-rss-notice a { color: var(--navy); font-weight: 600; }

/* 스켈레톤 */
.info-item.skeleton {
  height: 52px; border-radius: 5px; margin: 5px 0; border: none;
  background: linear-gradient(90deg, #f1f5f9 25%, #e8edf5 50%, #f1f5f9 75%);
  background-size: 200% 100%; animation: shimmer 1.6s infinite;
}
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* FAQ 미니 */
.faq-mini-list { list-style: none; margin: 0; padding: 0; }
.faq-mini-item { padding: 9px 0; border-bottom: 1px solid #f1f5f9; }
.faq-mini-item:last-child { border-bottom: none; }
.faq-mini-q {
  font-size: 12px; font-weight: 700; color: var(--text); margin-bottom: 4px;
  display: flex; gap: 6px; align-items: flex-start;
}
.faq-mini-q::before {
  content: 'Q';
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 4px;
  background: var(--navy); color: #fff;
  font-size: 9px; font-weight: 900; flex-shrink: 0; margin-top: 1px;
}
.faq-mini-a {
  font-size: 11px; color: var(--text-sub); line-height: 1.55; padding-left: 22px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ── 반응형 ── */
@media (max-width: 640px) {
  .info-grid { grid-template-columns: 1fr; }
  .info-col { border-right: none !important; border-bottom: 1px solid var(--border) !important; }
  .info-col:last-child { border-bottom: none !important; }
}
@media (max-width: 1023px) {
  .hero-bg { padding: 64px 32px 56px; }
  .hero-title { font-size: 44px; }
  .sec_inner { padding: 0 24px; }
}
@media (max-width: 767px) {
  .hero-bg { padding: 48px 20px 44px; min-height: 360px; }
  .hero-title { font-size: 34px; letter-spacing: -1.5px; }
  .hero-sub { font-size: 14px; }
  .info-grid { grid-template-columns: 1fr; }
  .info-col { border-right: none !important; border-bottom: 1px solid var(--border) !important; }
  .info-col:last-child { border-bottom: none !important; }
  .stats-list { flex-wrap: wrap; padding: 0 20px; }
  .stat-item { min-width: 140px; padding: 24px 12px; }
  .sec_inner { padding: 0 16px; }
}

/* ── MakeShop 게시판 font 태그 오염 방지 ── */
.info-grid font { display: contents; font-size: inherit !important; }
.info-list font { display: contents; font-size: inherit !important; }
.info-col font  { font-size: inherit !important; }

/* info-grid 자체도 font 태그에 안 깨지도록 */
.info-grid { align-items: start; }
.info-col  { align-self: start; min-width: 0; }

/* 날짜 포맷 정리 — 너무 긴 날짜 자르기 */
.info-meta {
  font-size: 10px; color: #cbd5e1; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* 공지사항 subject font 크기 강제 */
.info-subject font { font-size: 12px !important; font-weight: 600 !important; }

/* ── 메인 히어로 공백 강제 제거 ── */
body.main_layout #contentWrapper,
#contentWrapper.main_layout,
.main_layout { padding-top: 0 !important; margin-top: 0 !important; }
#hero { margin-top: 0 !important; padding-top: 0 !important; }

/* ── 화학기호 부유 애니메이션 ── */
.hero-molecules {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 1;
}
.mol {
  position: absolute;
  font-size: 13px; font-weight: 700;
  color: rgba(255,255,255,.07);
  font-family: 'Montserrat', 'Pretendard', monospace;
  letter-spacing: .05em;
  animation: molFloat linear infinite;
  user-select: none;
}
@keyframes molFloat {
  0%   { transform: translateY(0px) rotate(0deg); opacity: .07; }
  25%  { transform: translateY(-28px) rotate(3deg); opacity: .12; }
  50%  { transform: translateY(-14px) rotate(-2deg); opacity: .07; }
  75%  { transform: translateY(-36px) rotate(4deg); opacity: .11; }
  100% { transform: translateY(0px) rotate(0deg); opacity: .07; }
}

/* ── info-col 높이 균등 반응형 보정 ── */
@media (max-width: 640px) {
  .info-grid { grid-auto-rows: auto; }
  .info-col { min-height: unset; }
}
/* BASIC css end */

