/* BASIC css start */
/* ═══════════════════════════════════════════════════════════════════
   THELAB CHEMICAL — Main Page Styles
   ═══════════════════════════════════════════════════════════════════ */

/* ── Hero ── */
#hero { position: relative; overflow: hidden; }
.hero-bg {
  position: relative;
  background: linear-gradient(180deg, #0C025B 0%, #0a1040 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-molecules { position: absolute; inset: 0; pointer-events: none; }
.mol {
  position: absolute;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: rgba(160,140,255,0.1);
  animation: mol-float linear infinite;
  white-space: nowrap;
}
@keyframes mol-float {
  0%   { transform: translateY(0) rotate(0deg); }
  50%  { transform: translateY(-20px) rotate(3deg); }
  100% { transform: translateY(0) rotate(0deg); }
}
.hero-inner {
  position: relative; z-index: 1;
  text-align: center; color: #fff;
  padding: 40px 24px 28px;
  max-width: 680px; width: 100%;
}
.hero-eyebrow {
  font-size: 12px; letter-spacing: 0.18em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 18px;
}
.hero-title {
  font-size: 44px; font-weight: 800;
  line-height: 1.2; margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.hero-title em { font-style: normal; color: #7eb8ff; }
.hero-sub {
  font-size: 15px; color: rgba(255,255,255,0.55);
  margin-bottom: 24px;
}
.hero-search {
  display: flex; gap: 0;
  max-width: 560px; margin: 0 auto;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px; overflow: hidden;
  transition: border-color 0.2s;
}
.hero-search:focus-within { border-color: rgba(126,184,255,0.5); }
.hero-search input {
  flex: 1; padding: 14px 20px;
  background: none; border: none; outline: none;
  color: #fff; font-size: 15px;
}
.hero-search input::placeholder { color: rgba(255,255,255,0.35); }
.hero-search button {
  padding: 14px 28px;
  background: #3b82f6; color: #fff;
  border: none; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: background 0.2s;
  white-space: nowrap;
}
.hero-search button:hover { background: #2563eb; }


/* ── hero ft 태그 영역 ── */
.hero-ft {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: max-content 1fr;
  row-gap: 6px;
  width: fit-content;
  margin: 0 auto;
  padding: 24px 0 20px;
}

.ft-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  text-align: right;
  padding-right: 16px;
  white-space: nowrap;
  align-self: baseline;
}

.ft-tags {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  align-self: baseline;
}

.ft-tag {
  display: inline-block;
  padding: 2px 10px 2px 0;
  font-size: .78rem;
  font-weight: 500;
  color: rgba(210,225,255,.85);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: .01em;
  transition: color .12s;
}
.ft-tag:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255,255,255,.4);
}
.ft-tag--hot {
  color: rgba(255,190,155,.95);
  font-weight: 700;
}
.ft-tag--hot:hover { color: #ffd4b8; }

@media (max-width: 768px) {
  .hero-ft { grid-template-columns: 72px 1fr; }  /* ft-row → hero-ft */
  .ft-tags { flex-wrap: wrap; }
  .ft-label { font-size: .62rem; padding-right: 10px; }
  .ft-tag  { font-size: .72rem; }
}


/* ── hero stats 바 ── */
.hero-stats {
  position: relative; z-index: 1;
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 32px;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
}

.hst-item {
  flex: 1;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.08);
  padding: 0 16px;
  max-width: 200px;
}
.hst-item:last-child { border-right: none; }

.hst-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
}
.hst-unit {
  font-size: .82rem;
  font-weight: 600;
  color: rgba(255,255,255,.5);
  margin-left: 2px;
}
.hst-label {
  display: block;
  font-size: .63rem;
  color: rgba(255,255,255,.28);
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-top: 3px;
}

@media (max-width: 640px) {
  .hero-ft     { padding: 16px 20px; }
  .ft-label    { width: 52px; font-size: .58rem; padding-right: 10px; }
  .ft-tag      { font-size: .78rem; }
  .hero-stats  { padding: 14px 16px; }
  .hst-num     { font-size: 1.25rem; }
  .hero-title  { font-size: 32px; }
}


/* ═══════════════════════════════════════════════════════════════════
   Section A — THELABCOMM
   ═══════════════════════════════════════════════════════════════════ */
#sec-comm { padding: 40px 0 36px; background: #fafafa; }
#sec-comm .sec_inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.comm-header {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #111;
}
.comm-title {
  font-size: 16px; font-weight: 700;
  letter-spacing: -0.01em; color: #111;
}
.comm-more {
  font-size: 13px; color: #999;
  text-decoration: none; transition: color 0.2s;
}
.comm-more:hover { color: #333; }

/* 리스트 */
.comm-list {
  list-style: none; margin: 0 0 16px; padding: 0;
}
.comm-list-item {
  display: flex; justify-content: space-between;
  align-items: center; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background .1s;
}
.comm-list-item:last-child { border-bottom: none; }
.comm-list-item:hover .comm-list-subject { color: #2b7fff; }

.comm-list-subject {
  flex: 1; font-size: 14px; color: #333;
  white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
}
.comm-list-meta {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: #bbb;
}
.comm-list-nick { color: #999; font-weight: 500; }

.comm-list-skel {
  height: 40px; border-bottom: 1px solid #f0f0f0;
  background: linear-gradient(90deg, #f5f5f5 25%, #ebebeb 50%, #f5f5f5 75%);
  background-size: 200% 100%;
  animation: comm-shimmer 1.5s ease-in-out infinite;
}

/* CTA 버튼 */
.comm-cta {
  display: block;
  padding: 12px 20px;
  background: #fff;
  border: 1px dashed #d0d0d0;
  border-radius: 8px;
  font-size: 14px; color: #888;
  text-decoration: none;
  text-align: center;
  transition: border-color .2s, color .2s, background .2s;
}
.comm-cta:hover {
  border-color: #2b7fff;
  color: #2b7fff;
  background: #f0f6ff;
}

.comm-empty {
  padding: 24px 0; text-align: center;
  color: #bbb; font-size: 14px;
}


/* ═══════════════════════════════════════════════════════════════════
   Section B — Science News
   ═══════════════════════════════════════════════════════════════════ */
.info-list font { display: contents; }

#sec-mid { padding: 40px 0; background: #fff; }
#sec-mid .sec_inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.sci-news-hero {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  margin-bottom: 24px;
}
.sci-hero-card {
  display: flex; gap: 16px; padding: 20px;
  background: #fafafa; border: 1px solid #eee;
  border-radius: 10px; text-decoration: none; color: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.sci-hero-card:hover {
  border-color: #ccc;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.sci-hero-thumb {
  width: 120px; height: 90px; border-radius: 6px;
  overflow: hidden; flex-shrink: 0;
}
.sci-hero-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sci-hero-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.sci-hero-title {
  font-size: 16px; font-weight: 700; color: #222; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 8px;
}
.sci-hero-card:hover .sci-hero-title { color: #2b7fff; }
.sci-hero-meta {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: #999;
}
.sci-news-list { display: flex; flex-direction: column; gap: 0; }
.sci-news-skel {
  height: 48px; margin-bottom: 1px;
  background: linear-gradient(90deg, #f5f5f5 25%, #ebebeb 50%, #f5f5f5 75%);
  background-size: 200% 100%;
  animation: comm-shimmer 1.5s ease-in-out infinite;
  border-radius: 4px;
}
.sci-news-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid #f0f0f0;
  text-decoration: none; color: inherit;
  transition: background .1s;
}
.sci-news-item:last-child { border-bottom: none; }
.sci-news-item:hover { background: #fafafa; }
.sci-news-body { flex: 1; min-width: 0; }
.sci-news-title {
  font-size: 14px; font-weight: 600; color: #333;
  line-height: 1.4; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.sci-news-item:hover .sci-news-title { color: #2b7fff; }
.sci-news-meta {
  display: flex; align-items: center; gap: 6px;
  margin-top: 3px; font-size: 11px; color: #bbb;
}
.sci-news-src { font-weight: 600; color: #999; }
.sci-news-lang {
  font-size: 9px; padding: 1px 5px; border-radius: 3px; font-weight: 700;
}
.sci-news-lang.ko { background: #dbeafe; color: #1d4ed8; }
.sci-news-lang.en { background: #f3f4f6; color: #9ca3af; }
.sci-news-cat {
  font-size: 9px; padding: 1px 6px; border-radius: 3px;
  font-weight: 700; text-transform: uppercase;
}
.sci-news-cat-general   { background: #ecfdf5; color: #065f46; }
.sci-news-cat-chemistry { background: #fef9c3; color: #854d0e; }
.sci-news-cat-bio       { background: #ede9fe; color: #5b21b6; }
.sci-news-cat-physics   { background: #dbeafe; color: #1e40af; }
.sci-news-cat-industry  { background: #fee2e2; color: #991b1b; }
.sci-news-empty { padding: 32px 0; text-align: center; color: #bbb; font-size: 13px; }
.sci-news-more-wrap { text-align: center; margin-top: 20px; }
.sci-news-more-btn {
  display: inline-block; padding: 10px 32px;
  border: 1px solid #e5e5e5; border-radius: 8px;
  font-size: 14px; font-weight: 600; color: #666;
  text-decoration: none; transition: all .2s;
}
.sci-news-more-btn:hover { border-color: #2b7fff; color: #2b7fff; }
@media (max-width: 768px) {
  .sci-news-hero { grid-template-columns: 1fr; }
  .sci-hero-thumb { width: 80px; height: 60px; }
}


/* ═══════════════════════════════════════════════════════════════════
   Section C — Boards (3-column)
   ═══════════════════════════════════════════════════════════════════ */
#sec-info { padding: 40px 0 56px; background: #fafafa; }
#sec-info .sec_inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.bottom-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.bottom-grid font { display: contents; }
@media (max-width: 768px) { .bottom-grid { grid-template-columns: 1fr; } }


/* ═══════════════════════════════════════════════════════════════════
   Shared — info columns, lists
   ═══════════════════════════════════════════════════════════════════ */
.info-col-head {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #111;
}
.info-col-title { font-size: 16px; font-weight: 700; color: #111; }
.info-col-more {
  font-size: 13px; color: #999;
  text-decoration: none; transition: color 0.2s;
}
.info-col-more:hover { color: #333; }
.info-list { list-style: none; margin: 0; padding: 0; }
.info-item { border-bottom: 1px solid #f0f0f0; }
.info-item:last-child { border-bottom: none; }
.info-item.skeleton {
  height: 40px; border-radius: 4px; margin-bottom: 8px;
  animation: comm-shimmer 1.5s ease-in-out infinite;
  background: linear-gradient(90deg, #f5f5f5 25%, #ebebeb 50%, #f5f5f5 75%);
  background-size: 200% 100%;
}
.info-link {
  display: flex; justify-content: space-between;
  align-items: center; gap: 12px;
  padding: 10px 0;
  text-decoration: none; color: inherit;
  transition: color 0.2s;
}
.info-link:hover .info-subject { color: #2b7fff; }
.info-subject {
  flex: 1; font-size: 14px; color: #444;
  white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; transition: color 0.2s;
}
.info-meta { flex-shrink: 0; font-size: 12px; color: #bbb; }

.news-src-label {
  flex-shrink: 0; font-size: 11px; font-weight: 600;
  padding: 2px 8px; border-radius: 4px; margin-right: 8px;
}
.news-src-st   { background: #e8f4fd; color: #1a6cb5; }
.news-src-cen  { background: #fef3e2; color: #9a6a16; }
.news-src-bric { background: #e8fbe8; color: #2a7a2a; }

.info-rss-notice { font-size: 12px; color: #bbb; margin-top: 12px; }
.info-rss-notice a { color: #999; }

/* FAQ mini */
.faq-mini-list { list-style: none; margin: 0; padding: 0; }
.faq-mini-item { padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
.faq-mini-item:last-child { border-bottom: none; }
.faq-mini-q {
  font-size: 14px; font-weight: 600; color: #333;
  margin-bottom: 4px; cursor: default;
}
.faq-mini-q::before { content: 'Q.'; color: #2b7fff; font-weight: 700; margin-right: 6px; }
.faq-mini-a { font-size: 13px; color: #888; line-height: 1.5; padding-left: 22px; }

/* scroll buttons */
.scroll-top, .scroll-bottom {
  position: fixed; right: 24px;
  width: 40px; height: 40px;
  background: #fff; border: 1px solid #e5e5e5;
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: #999;
  transition: box-shadow 0.2s, color 0.2s;
  z-index: 100;
}
.scroll-top { bottom: 72px; }
.scroll-bottom { bottom: 24px; }
.scroll-top:hover, .scroll-bottom:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1); color: #333;
}
/* BASIC css end */

