@charset "utf-8";

/* ===============================================
 * CLS 분석웹시스템 메인페이지 (index.jsp) 전용 스타일
 * 참고: KTR(ktr.or.kr) 히어로/뉴스, 한국고분자시험연구소(polymer.co.kr) 카테고리 그리드·견적상담 패널
 * CI: CORE LAB SOLUTION — 네이비(#00393C) + 오렌지 포인트(#00C3BF)
 * 섹션: Header / Hero / Category / Banner / Equipment / Material / Board / Media / Footer
 * 데이터는 전부 더미(placeholder) — 추후 DB 연동
 * =============================================== */

/* ---- 0. 토큰 / 리셋 ---- */
.main-page {
	--cls-navy: #00393C;        /* CI 네이비 (CORE LAB) — 제목·헤더·푸터 */
	--cls-navy-2: #009C90;
	--cls-blue: #00C3BF;        /* 포인트=오렌지 (CI 라인·SOLUTION) — eyebrow/링크/hover 등 강조 */
	--cls-blue-light: #59D8D5;
	--cls-cyan: #00C3BF;
	--cls-orange: #00C3BF;
	--cls-orange-l: #59D8D5;
	--cls-grad: linear-gradient(135deg, #00393C 0%, #009C90 45%, #00C3BF 128%);
	--cls-bg: #f6f7f9;
	--cls-line: #e6e8ec;
	--cls-text: #23303f;
	--cls-muted: #6b7480;
	font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
	background: #fff;
	color: var(--cls-text);
}
.main-page, .main-page * { box-sizing: border-box; }

.main-page #wrap { width: 100%; min-height: 100vh; overflow-x: clip; }/* clip: 자식 sticky 헤더 유지(hidden은 깨뜨림) */

/* leftmenu.jsp navbar / devMenu / 빈 footer 영향 무력화 */
.main-page .navbar.navbar-fixed-top { display: none !important; }
.main-page .program_box { display: none !important; }
.main-page > footer { display: none; }

.main-page img { max-width: 100%; }
.main-page a { color: inherit; text-decoration: none; }
.main-page section { scroll-margin-top: 80px; }

/* 공통 섹션 헤더 */
.main-page .sec-head { text-align: center; margin-bottom: 46px; }
.main-page .sec-head .eyebrow {
	display: inline-block; font-size: 15px; font-weight: 700; letter-spacing: .18em;
	color: var(--cls-blue); text-transform: uppercase; margin-bottom: 12px;
}
.main-page .sec-head h2 { font-size: 38px; font-weight: 800; color: var(--cls-navy); margin: 0 0 14px; letter-spacing: -.02em; }
.main-page .sec-head p { font-size: 17px; color: var(--cls-muted); margin: 0; line-height: 1.6; }
.main-page .sec-inner { width: 100%; max-width: 1600px; margin: 0 auto; padding: 0 24px; }
.main-page .more-link { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--cls-blue); }
.main-page .more-link::after { content: '+'; font-size: 16px; }

/* 헤더/GNB/모바일메뉴는 공통 파일 cls_header.css (← /include/header.jsp 에서 로드) 로 일원화됨 */

/* ---- 2. 히어로 (메인비주얼 슬라이드) ---- */
.main-page .hero { position: relative; height: 620px; overflow: hidden; background: var(--cls-navy); }
.main-page .hero-slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; transition: opacity .8s; }
.main-page .hero-slide.on { opacity: 1; }
.main-page .hero-slide::before {
	content: ''; position: absolute; inset: 0;
	background: linear-gradient(100deg, rgba(8,28,38,.94) 0%, rgba(10,38,46,.82) 55%, rgba(12,46,52,.66) 120%);
}
.main-page .hero-slide.s1 { background: url('/img/main/hero1.jpg') center/cover no-repeat #002A2C; }
.main-page .hero-slide.s2 { background: url('/img/main/hero2.jpg') center/cover no-repeat #002A2C; }
.main-page .hero-slide.s3 { background: url('/img/main/hero3.jpg') center/cover no-repeat #002A2C; }
.main-page .hero-inner { position: relative; z-index: 2; max-width: 1600px; width: 100%; margin: 0 auto; padding: 0 24px; color: #fff; }
.main-page .hero-tag {
	display: inline-block; font-size: 15px; font-weight: 700; letter-spacing: .12em;
	padding: 8px 18px; border: 1px solid rgba(255,255,255,.4); border-radius: 30px; margin-bottom: 24px;
}
.main-page .hero-title { font-size: 56px; font-weight: 800; line-height: 1.18; letter-spacing: -.03em; margin: 0 0 22px; word-break: keep-all; }
.main-page .hero-title .accent { color: #00C3BF; }
.main-page .hero-desc { font-size: 19px; font-weight: 400; line-height: 1.6; color: rgba(255,255,255,.88); margin: 0 0 38px; max-width: 560px; word-break: keep-all; }
.main-page .hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.main-page .hero-actions a {
	display: inline-flex; align-items: center; justify-content: center; height: 56px; padding: 0 34px;
	border-radius: 30px; font-size: 17px; font-weight: 700; transition: .2s;
}
.main-page .hero-actions .h-primary { background: #fff; color: var(--cls-blue); }
.main-page .hero-actions .h-primary:hover { transform: translateY(-2px); }
.main-page .hero-actions .h-ghost { border: 1.5px solid rgba(255,255,255,.6); color: #fff; }
.main-page .hero-actions .h-ghost:hover { background: rgba(255,255,255,.12); }
/* 히어로 슬라이드 도트 */
.main-page .hero-dots { position: absolute; left: 0; right: 0; bottom: 30px; z-index: 3; display: flex; justify-content: center; gap: 10px; }
.main-page .hero-dots button { width: 38px; height: 4px; border: 0; border-radius: 4px; background: rgba(255,255,255,.35); cursor: pointer; padding: 0; }
.main-page .hero-dots button.on { background: #fff; }

/* ---- 2-1. 히어로 아래 통합 검색바 (히어로에 살짝 걸침) ---- */
.main-page .hero-search { position: relative; z-index: 5; margin-top: -44px; padding: 0 24px; }
.main-page .hs-inner { max-width: 860px; margin: 0 auto; }
.main-page .hs-box { display: flex; align-items: center; background: #fff; border-radius: 16px; padding: 10px 10px 10px 26px; box-shadow: 0 18px 44px rgba(16,37,64,.18); border: 1px solid var(--cls-line); }
.main-page .hs-box .hs-ico { color: var(--cls-blue); font-size: 20px; margin-right: 12px; flex-shrink: 0; }
.main-page .hs-box input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 16.5px; background: none; color: var(--cls-text); text-overflow: ellipsis; }
@media (max-width: 767px) {
	.main-page .hero-search { padding: 0 16px; }
	.main-page .hs-box { padding: 8px 8px 8px 16px; }
	.main-page .hs-box .hs-ico { margin-right: 8px; }
	.main-page .hs-box button { padding: 0 18px; height: 46px; font-size: 14px; }
	.main-page .hs-box input { font-size: 14px; }
}
.main-page .hs-box input::placeholder { color: #9aa4b2; }
.main-page .hs-box button { flex-shrink: 0; border: 0; background: #00393C; color: #fff; border-radius: 12px; height: 52px; padding: 0 30px; font-size: 16px; font-weight: 700; cursor: pointer; transition: background .2s; }
.main-page .hs-box button:hover { background: #009C90; }
.main-page .hs-box button:hover { opacity: .92; }

/* ---- 3. 시험평가 카테고리 (polymer 그리드 참고) ---- */
.main-page .sec-category { padding: 96px 0; background: #fff; }
.main-page .cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.main-page .cat-card {
	display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
	padding: 34px 30px; background: #fff; border: 1px solid var(--cls-line); border-radius: 16px;
	transition: .25s; min-height: 200px;
}
.main-page .cat-card:hover { border-color: transparent; box-shadow: 0 16px 36px rgba(0,150,144,.18); transform: translateY(-4px); }
.main-page .cat-card .cat-ico {
	width: 60px; height: 60px; border-radius: 16px; background: var(--cls-bg);
	display: flex; align-items: center; justify-content: center; font-size: 26px; transition: .25s;
}
.main-page .cat-card:hover .cat-ico { background: #00C3BF; }
.main-page .cat-card h3 { font-size: 21px; font-weight: 700; color: var(--cls-navy); margin: 0; }
.main-page .cat-card p { font-size: 15px; color: var(--cls-muted); margin: 0; line-height: 1.55; }

/* ---- 4. 메인배너 (가로 띠 배너) ---- */
.main-page .sec-banner { padding: 0 0 96px; background: #fff; }
/* 동적 배너(.admin-bnr 상/중/하)와 크기 통일 */
.main-page .main-banner {
	max-width: 1600px; margin: 0 auto; border-radius: 20px; overflow: hidden;
	background: var(--cls-grad); color: #fff; padding: 48px 56px;
	display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.main-page .main-banner .bn-text h3 { font-size: 28px; font-weight: 800; margin: 0 0 8px; line-height: 1.3; letter-spacing: -0.5px; }
.main-page .main-banner .bn-text p { font-size: 15px; margin: 0; opacity: .92; }
.main-page .main-banner .bn-btn {
	display: inline-flex; align-items: center; height: 52px; padding: 0 36px; border-radius: 26px;
	background: #fff; color: var(--cls-blue); font-size: 16px; font-weight: 700; white-space: nowrap;
}

/* ---- 5. 장비 / 6. 시험물질정보 (카드 그리드 공통) ---- */
.main-page .sec-cards { padding: 96px 0; }
.main-page .sec-equipment { background: var(--cls-bg); }
.main-page .sec-material { background: #fff; }
.main-page .card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.main-page .info-card { background: #fff; border: 1px solid var(--cls-line); border-radius: 14px; overflow: hidden; transition: .25s; }
.main-page .sec-equipment .info-card { background: #fff; }
.main-page .info-card:hover { box-shadow: 0 14px 32px rgba(10,37,64,.12); transform: translateY(-4px); }
.main-page .info-card .thumb {
	height: 180px; background: linear-gradient(135deg, #eef0f3, #e1e5ec); position: relative; overflow: hidden;
	display: flex; align-items: center; justify-content: center; color: #9aa4b2; font-size: 14px;
}
.main-page .info-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.main-page .info-card .cap { padding: 20px 22px; }
.main-page .info-card .cap .badge { display: inline-block; font-size: 12px; font-weight: 700; color: var(--cls-orange); background: #e9f8f7; padding: 4px 10px; border-radius: 20px; margin-bottom: 10px; }
.main-page .info-card .cap h3 { font-size: 18px; font-weight: 700; color: var(--cls-navy); margin: 0 0 6px; }
.main-page .info-card .cap p { font-size: 14px; color: var(--cls-muted); margin: 0; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.main-page .sec-top { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 40px; }
.main-page .sec-top .sec-head { text-align: left; margin-bottom: 0; }

/* ---- 7. 공지/뉴스 (design4 참고: 언더라인 탭 + 대표카드 + 리스트 뱃지) ---- */
.main-page .sec-board { padding: 96px 0; background: var(--cls-bg); }
/* 언더라인 탭 */
.main-page .board-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; border-bottom: 2px solid #e3e7ee; margin-bottom: 32px; }
.main-page .board-tabs button {
	border: 0; background: none; color: var(--cls-muted); padding: 12px 22px; font-size: 16px; font-weight: 700; cursor: pointer;
	border-bottom: 2px solid transparent; margin-bottom: -2px; transition: color .2s, border-color .2s;
}
.main-page .board-tabs button:hover { color: var(--cls-text); }
.main-page .board-tabs button.on { color: var(--cls-blue); border-bottom-color: var(--cls-blue); }
.main-page .board-more { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; color: var(--cls-blue); padding: 12px 6px 12px 20px; white-space: nowrap; transition: opacity .2s; }
.main-page .board-more::after { content: '+'; font-size: 16px; line-height: 1; }
.main-page .board-more:hover { opacity: .7; }
/* 패널: 좌 대표카드 + 우 리스트 */
.main-page .board-panel { display: none; grid-template-columns: 320px 1fr; gap: 36px; align-items: start; }
.main-page .board-panel.on { display: grid; }
.main-page .board-panel > * { min-width: 0; }
/* 대표카드 */
.main-page .board-feature { border-radius: 16px; overflow: hidden; border: 1px solid var(--cls-line); background: #fff; cursor: pointer; transition: box-shadow .2s, transform .2s; }
.main-page .board-feature:hover { box-shadow: 0 14px 32px rgba(16,37,64,.12); transform: translateY(-3px); }
.main-page .board-feature .bf-img { height: 188px; background: #00393C; position: relative; display: flex; align-items: center; justify-content: center; }
.main-page .board-feature .bf-img .bf-ico { font-size: 50px; opacity: .25; }
.main-page .board-feature .bf-img .bf-hot { position: absolute; top: 14px; left: 14px; background: var(--cls-orange); color: #fff; font-size: 11px; font-weight: 800; padding: 4px 11px; border-radius: 5px; letter-spacing: .04em; }
.main-page .board-feature .bf-body { padding: 18px 20px 20px; }
.main-page .board-feature .f-title { font-size: 16px; font-weight: 700; color: var(--cls-navy); line-height: 1.5; margin: 0 0 8px;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 3em;
	word-break: keep-all; overflow-wrap: anywhere; }
.main-page .board-feature .f-date { font-size: 13px; color: var(--cls-muted); }
/* 리스트 */
.main-page .board-list { list-style: none; margin: 0; padding: 0; }
.main-page .board-list li { border-bottom: 1px solid #e7eaf0; }
.main-page .board-list li:last-child { border-bottom: 0; }
.main-page .board-list li a { display: flex; align-items: center; gap: 14px; padding: 15px 6px; transition: background .15s, padding .15s; }
.main-page .board-list li a:hover { background: #fafbfd; padding-left: 12px; }
.main-page .board-list li a:hover .b-title { color: var(--cls-blue); }
.main-page .board-list .b-date { background: #eef4fc; color: var(--cls-navy); font-size: 12px; font-weight: 700; padding: 6px 9px; border-radius: 7px; text-align: center; min-width: 54px; flex-shrink: 0; line-height: 1.4; }
.main-page .board-list .b-title { font-size: 15.5px; font-weight: 500; color: var(--cls-text); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.main-page .board-list .b-bdg { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 12px; white-space: nowrap; flex-shrink: 0; }
.main-page .board-list .bdg-notice { background: #DFF3F2; color: #00393C; }
.main-page .board-list .bdg-news   { background: #E8F6F5; color: #007A77; }
.main-page .board-list .bdg-bid    { background: #D7EEED; color: #00C3BF; }
.main-page .board-list .bdg-gosi   { background: #E3F5F4; color: #009C90; }
.main-page .board-list .bdg-recruit{ background: #DCF1F0; color: #00595B; }

/* ---- 8. 유튜브 / E-BOOK ---- */
.main-page .sec-media { padding: 96px 0; background: #fff; }
.main-page .media-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.main-page .media-box h3 { font-size: 22px; font-weight: 800; color: var(--cls-navy); margin: 0 0 20px; display: flex; align-items: center; gap: 10px; }
.main-page .media-box h3 .ico { width: 30px; height: 30px; border-radius: 8px; background: #00C3BF; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 15px; }
.main-page .yt-main { border-radius: 14px; overflow: hidden; background: #000; aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; color: #fff; }
.main-page .yt-thumb { aspect-ratio: 16/9; background: linear-gradient(135deg,#1a1a2e,#002A2C); border-radius: 14px; display:flex; align-items:center; justify-content:center; color:#fff; position: relative; }
.main-page .yt-thumb::after { content: '▶'; position: absolute; width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.2); display:flex; align-items:center; justify-content:center; }
.main-page .ebook-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.main-page .ebook-card { text-align: center; }
.main-page .ebook-card .cover { aspect-ratio: 3/4; border-radius: 10px; background: linear-gradient(135deg,#eef0f3,#dde2ea); box-shadow: 0 8px 20px rgba(32,52,79,.12); display:flex; align-items:center; justify-content:center; color:#9aa4b2; margin-bottom: 12px; }
.main-page .ebook-card .e-title { font-size: 15px; font-weight: 600; color: var(--cls-navy); }

/* ---- 우측 고정 견적·상담 패널 (polymer 참고) ---- */
.main-page .quote-fab { position: fixed; right: 24px; bottom: 30px; z-index: 900; display: flex; flex-direction: column; gap: 10px; }
.main-page .quote-fab a {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
	width: 88px; height: 88px; border-radius: 18px; box-shadow: 0 10px 26px rgba(10,37,64,.22);
	font-size: 13.5px; font-weight: 700; line-height: 1.3; text-align: center; transition: transform .2s;
}
.main-page .quote-fab .q-consult { background: #009C90; color: #fff; }/* 미드틸 — 푸터(딥틸)와 구분, 청록보다 차분 */
.main-page .quote-fab .q-kakao { background: #FEE500; color: #3C1E1E; }
.main-page .quote-fab .q-kakao .q-ico { display: flex; }
.main-page .quote-fab .q-top { background: #fff; color: var(--cls-navy); border: 1.5px solid var(--cls-line); box-shadow: 0 6px 18px rgba(10,37,64,.12); }
.main-page .quote-fab a .q-ico { font-size: 24px; line-height: 1; }
.main-page .quote-fab a:hover { transform: translateY(-3px); }

/* 간편상담 모달 */
.main-page .qc-modal-bg { display: none; position: fixed; inset: 0; background: rgba(32,52,79,.55); z-index: 1300; }
.main-page .qc-modal-bg.on { display: block; }
.main-page .qc-modal {
	display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%);
	width: 92%; max-width: 440px; background: #fff; border-radius: 18px; padding: 34px 30px 30px;
	z-index: 1310; box-shadow: 0 24px 60px rgba(10,37,64,.3); max-height: 90vh; overflow-y: auto;
}
.main-page .qc-modal.on { display: block; }
.main-page .qc-modal .qc-close { position: absolute; top: 16px; right: 18px; width: 34px; height: 34px; border: 0; background: none; font-size: 28px; line-height: 1; color: var(--cls-muted); cursor: pointer; }
.main-page .qc-modal .qc-title { font-size: 24px; font-weight: 800; color: var(--cls-navy); margin: 0 0 8px; }
.main-page .qc-modal .qc-desc { font-size: 14.5px; color: var(--cls-muted); margin: 0 0 22px; line-height: 1.5; }
.main-page .qc-modal .qc-field { margin-bottom: 14px; }
.main-page .qc-modal .qc-field label { display: block; font-size: 14px; font-weight: 600; color: var(--cls-text); margin-bottom: 6px; }
.main-page .qc-modal .qc-field label em { color: var(--cls-orange); font-style: normal; }
.main-page .qc-modal .qc-field input, .main-page .qc-modal .qc-field textarea {
	width: 100%; border: 1px solid var(--cls-line); border-radius: 10px; padding: 12px 14px;
	font-size: 15px; font-family: inherit; color: var(--cls-text); background: #fbfcfd; transition: border-color .2s;
}
.main-page .qc-modal .qc-field input:focus, .main-page .qc-modal .qc-field textarea:focus { outline: none; border-color: var(--cls-orange); background: #fff; }
.main-page .qc-modal .qc-field textarea { resize: vertical; }
.main-page .qc-modal .qc-agree { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--cls-muted); margin: 6px 0 20px; cursor: pointer; }
.main-page .qc-modal .qc-agree input { width: 16px; height: 16px; accent-color: var(--cls-orange); }
.main-page .qc-modal .qc-submit { width: 100%; height: 52px; border: 0; border-radius: 12px; background: #00393C; color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; transition: background .2s; }
.main-page .qc-modal .qc-submit:hover { background: #009C90; }
.main-page .qc-modal .qc-submit:hover { opacity: .92; }

/* ---- 9. 푸터 ---- */
/* 푸터는 공통 cls_footer.css 로 일원화 (index.jsp 도 /include/cls_footer.jsp include) — 중복 스타일 제거 */

/* ---- 10. 반응형 ---- */
@media (max-width: 1280px) {
	.main-page .cat-grid { grid-template-columns: repeat(2, 1fr); }
	.main-page .card-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
	.main-page .hero { height: 520px; }
	.main-page .hero-title { font-size: 40px; }
	.main-page .board-panel.on { grid-template-columns: 1fr; }
	.main-page .media-grid { grid-template-columns: 1fr; }
	.main-page .card-grid { grid-template-columns: repeat(2, 1fr); }
	.main-page .sec-head h2 { font-size: 30px; }
}
@media (max-width: 767px) {
	.main-page .board-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
	.main-page .board-tabs::-webkit-scrollbar { display: none; }
	.main-page .board-tabs button { flex: 0 0 auto; white-space: nowrap; }
	.main-page .hero { height: 460px; }
	.main-page .hero-title { font-size: 30px; }
	.main-page .hero-desc { font-size: 16px; }
	.main-page .hero-actions a { height: 50px; padding: 0 24px; font-size: 15px; }
	.main-page .sec-category, .main-page .sec-cards, .main-page .sec-board, .main-page .sec-media { padding: 60px 0; }
	.main-page .cat-grid, .main-page .card-grid, .main-page .ebook-grid { grid-template-columns: repeat(2, 1fr); }
	.main-page .main-banner { padding: 36px 28px; text-align: center; justify-content: center; }
	.main-page .main-banner .bn-text h3 { font-size: 23px; }
	.main-page .sec-top { flex-direction: column; align-items: flex-start; gap: 16px; }
	.main-page .quote-fab a { width: 72px; height: 72px; font-size: 12px; }
	.main-page .sec-head h2 { font-size: 25px; }
}
@media (max-width: 480px) {
	.main-page .cat-grid, .main-page .card-grid, .main-page .ebook-grid { grid-template-columns: 1fr; }
}
/* 모바일 슬라이드 메뉴(.m-nav)는 공통 cls_header.css 로 일원화됨 */

/* 유튜브/E-BOOK 영역 더보기 */
.main-page .media-box h3 .media-more { margin-left: auto; font-size: 14px; font-weight: 600; color: var(--cls-blue); }
.main-page .media-box h3 .media-more:hover { text-decoration: underline; }
.main-page .media-box h3 .media-more::after { content: " +"; }

/* 유튜브/E-BOOK 높이 정렬 (E-BOOK을 유튜브 16:9 높이에 맞춤) */
.main-page .media-box { display: flex; flex-direction: column; }
.main-page .ebook-grid { flex: 1; }
.main-page .ebook-card { display: flex; flex-direction: column; }
.main-page .ebook-card .cover { aspect-ratio: auto; flex: 1; }

/* =================================================================
   [2026-06-02] design1 → index 통합: 메인 허브 / 관리자배너 / 좌측 인디케이터
   (design1.jsp 인라인 <style>에서 이관. 전부 .main-page 스코프 — board.css 등 전역과 충돌 없음)
   ================================================================= */
/* 메인 비주얼(히어로 슬라이드) 안에 검색 + 시험평가 항목 통합 허브 */
.main-page footer.cls-footer { display: block !important; }
.main-page .hero-hub { height: auto; min-height: 0; overflow: visible; display: flex; align-items: center; }
.main-page .hero-hub .hub-overlay { position: relative; z-index: 2; width: 100%; max-width: 1000px; margin: 0 auto; padding: 50px 24px 60px; text-align: center; }
.main-page .hub-overlay .hero-tag { display: inline-flex; align-items: center; padding: 6px 18px; background: rgba(0, 195, 191, 0.18); border: 1px solid rgba(0, 195, 191, 0.5); color: #99EAE8; font-size: 13px; font-weight: 700; border-radius: 30px; letter-spacing: 0.5px; margin-bottom: 20px; backdrop-filter: blur(4px); }
.main-page .hub-h2 { font-size: 38px; font-weight: 800; color: #fff; line-height: 1.25; letter-spacing: -.02em; margin: 0 0 10px; word-break: keep-all; }
.main-page .hub-h2 .accent { color: #00C3BF; }
.main-page .hub-desc { font-size: 16px; color: rgba(255,255,255,.85); margin: 0 0 24px; word-break: keep-all; }
/* 메인 허브 (검색 + 카테고리) */
.main-page .hub-search-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    max-width: 920px;
    margin: 0 auto 50px;
}
.main-page .hub-search {
    display: flex; align-items: center; gap: 14px;
    background: #ffffff;
    border-radius: 60px;
    box-shadow: 0 22px 46px rgba(0,0,0,0.28);
    padding: 14px 14px 14px 36px;
    flex: 1;
    margin: 0;
}
.main-page .hub-search .hs-ico { color: #00C3BF; font-size: 30px; flex-shrink: 0; }
.main-page .hub-search input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 23px; font-weight: 500; color: #1e293b; background: none; }
.main-page .hub-search input::placeholder { color: #94a3b8; font-weight: 400; }
.main-page .hub-search button { flex-shrink: 0; border: 0; background: #00393C; color: #fff; border-radius: 50px; height: 66px; padding: 0 50px; font-size: 20px; font-weight: 700; cursor: pointer; transition: background 0.25s; box-shadow: 0 4px 12px rgba(0, 57, 60, 0.25); }
.main-page .hub-search button:hover { background: #009C90; }
.main-page .hub-search button:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(32, 52, 79, 0.4); }

/* 개수 적응형: 한 줄 최대 4칸(--cols), 카드는 칸 폭에 맞춰 유동(약 220px).
   컨테이너 폭을 cols 기준(칸당 235px)으로 제한해 카드 수가 적어도 늘어나지 않음(1개=235px). 마지막 줄 가운데 정렬. */
.main-page .hub-cats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: calc(var(--cols, 4) * 235px);
    margin: 0 auto 20px;
}
.main-page .hub-cat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 0 calc((100% - (var(--cols, 4) - 1) * 20px) / var(--cols, 4));
    /* flex item 기본 min-width:auto 는 긴 카테고리명이 카드를 밀어내 열 정렬을 깨뜨린다 */
    min-width: 0;
    box-sizing: border-box;
    gap: 16px;
    padding: 32px 16px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-decoration: none;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.main-page .hub-cat:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
.main-page .hub-cat .hc-ic {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 86px;
    height: 86px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    font-size: 40px;
    transition: all 0.3s;
}
.main-page .hub-cat .hc-ic svg { width: 42px; height: 42px; color: #fff; }
.main-page .hub-cat:hover .hc-ic {
    background: linear-gradient(135deg, #00C3BF 0%, #00C3BF 100%);
    box-shadow: 0 12px 24px rgba(0, 195, 191, 0.4);
    transform: scale(1.1) rotate(-5deg);
    color: #fff;
}
/* 카테고리명이 길면 줄바꿈되는데, word-break 기본값(normal)은 한글을 글자 단위로 끊는다
   (예: "건축자재 오염물질 방출 확 / 인시험"). keep-all 로 어절 단위 줄바꿈 강제.
   공백 없는 장문("건축자재오염물질방출확인시험")·긴 영문 단어는 어절 단위로 끊을 수 없으므로
   overflow-wrap:anywhere 로 예외 처리한다.
   ※ break-word 가 아니라 anywhere 여야 한다. break-word 는 min-content 폭 계산에
     반영되지 않아 flex/grid 칸이 글자 길이에 맞춰 늘어나 버려(카드 폭 깨짐) 줄바꿈이 발동하지 않는다. */
.main-page .hub-cat .hc-nm {
    display: block;
    max-width: 100%;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
    transition: color 0.3s;
    text-align: center;
    line-height: 1.4;
    word-break: keep-all;
    overflow-wrap: anywhere;
}
.main-page .hub-cat:hover .hc-nm {
    color: #00C3BF;
}

.main-page .hero-hub .hero-dots { position: static; margin-top: 50px; justify-content: center; }

/* 배너 상담문의 버튼 추가용 스타일 및 여백 조정 */
.main-page .sec-banner { padding-top: 96px; }
.main-page .main-banner .bn-acts { display: flex; gap: 12px; flex-wrap: wrap; }
.main-page .main-banner .bn-btn.ghost { background: transparent; border: 1.5px solid rgba(255,255,255,0.6); color: #fff; }
.main-page .main-banner .bn-btn.ghost:hover { background: rgba(255,255,255,0.15); border-color: #fff; }

@media (max-width: 1024px) {
    .main-page .hub-h2 { font-size: 32px; }
    .main-page .hub-search-wrap { padding: 0 20px; }
}
@media (max-width: 767px) {
    .main-page .hub-h2 { font-size: 26px; }
    .main-page .hub-search-wrap { padding: 0 16px; margin-bottom: 30px; flex-direction: column; }
    .main-page .hub-search { max-width: none; width: 100%; border-radius: 20px; padding: 8px 8px 8px 20px; }
    .main-page .hub-search input { font-size: 15px; }
    .main-page .hub-search button { height: 46px; padding: 0 24px; font-size: 14px; border-radius: 14px; }
    /* 모바일: 카드명 길이와 무관하게 항상 2열 고정(grid). flex+min-width:auto 로 인한 2-1-2 불규칙 배치 방지 */
    .main-page .hub-cats { display: grid; grid-template-columns: repeat(2, 1fr); max-width: none; gap: 12px; margin-bottom: 24px; padding: 0 16px; }
    .main-page .hub-cat { flex: none; width: auto; min-width: 0; padding: 24px 16px; gap: 12px; border-radius: 20px; }
    .main-page .hub-cat .hc-ic { width: 64px; height: 64px; font-size: 30px; }
    .main-page .hub-cat .hc-nm { font-size: 15px; text-shadow: 0 1px 4px rgba(0,0,0,0.8); }
    .main-page .hub-overlay { padding: 40px 16px 50px; }
    .main-page .sec-banner { padding-top: 60px; }
}

/* ── 관리자 배너 (상단, 중단, 하단 공통 및 변형) ── */
.main-page .admin-bnr-sec{width:100%;padding:0 0 96px}
.main-page .admin-bnr-sec.s-top{background:#f6f7f9}
.main-page .admin-bnr-sec.s-mid{background:#fff}
.main-page .admin-bnr-sec.s-btm{background:#f6f7f9}
.main-page .admin-bnr{max-width: 1600px;margin:0 auto;border-radius:20px;padding:48px 56px;display:flex;align-items:center;justify-content:space-between;position:relative;overflow:hidden}
.main-page .admin-bnr-bg{position:absolute;right:-40px;top:-40px;width:300px;height:300px;pointer-events:none}
.main-page .ab-text h3{font-size:28px;font-weight:800;margin-bottom:8px;line-height:1.3;letter-spacing:-0.5px}
.main-page .ab-text p{font-size:15px;margin:0}
.main-page .ab-btn{display:inline-flex;align-items:center;height:52px;padding:0 36px;border-radius:26px;font-size:16px;font-weight:700;text-decoration:none;transition:transform .2s,box-shadow .2s;white-space:nowrap;flex-shrink:0}
.main-page .ab-btn:hover{transform:translateY(-3px);box-shadow:0 12px 24px rgba(0,0,0,0.15)}

/* 상단 배너 (화사하고 산뜻한 탠저린 오렌지) */
.main-page .admin-bnr.b-top{background:#00393C;color:#fff}/* 로고 C — 딥틸 단색 */
.main-page .admin-bnr.b-top .admin-bnr-bg{display:none}
.main-page .admin-bnr.b-top .ab-text p{color:rgba(255,255,255,0.9)}
.main-page .admin-bnr.b-top .ab-btn{background:#fff;color:#00393C}

/* 중단 배너 (청량하고 맑은 스카이 블루) */
.main-page .admin-bnr.b-mid{background:#009C90;border:none;color:#fff}/* 로고 L — 미드틸 단색 */
.main-page .admin-bnr.b-mid .admin-bnr-bg{background:radial-gradient(circle,rgba(255,255,255,0.15) 0%,transparent 70%);right:10%;top:50%;transform:translateY(-50%)}
.main-page .admin-bnr.b-mid .ab-text p{color:rgba(255,255,255,0.9)}
.main-page .admin-bnr.b-mid .ab-btn{background:#fff;color:#009C90}

/* 하단 배너 (코어랩 시그니처 네이비 + 화이트 포인트) */
.main-page .admin-bnr.b-btm{background:#e9f8f7;color:#00393C}/* 로고 S 계열 — 연청록(눈부심 완화) + 딥틸 텍스트 */
.main-page .admin-bnr.b-btm .admin-bnr-bg{display:none}/* 연청록 배경엔 장식 원 제거(멍처럼 보임) */
.main-page .admin-bnr.b-btm .ab-text p{color:rgba(0,57,60,0.78)}
.main-page .admin-bnr.b-btm .ab-btn{background:#00393C;color:#fff}

@media(max-width:1600px){
  .main-page .admin-bnr{margin:0 24px}
  .main-page .main-banner{margin:0 24px}
}
@media(max-width:767px){
  .main-page .admin-bnr-sec{padding:0 0 64px}
  .main-page .admin-bnr{flex-direction:column;align-items:flex-start;gap:20px;padding:32px 24px;margin:0 16px}
  .main-page .ab-text h3{font-size:22px}
}

/* ── 좌측 섹션 인디케이터 (스크롤 네비게이션 / kmwta 스타일) ── */
.main-page .main-indicator{position:fixed;left:24px;top:50%;transform:translateY(-50%);z-index:400;display:flex;flex-direction:column;gap:10px}
.main-page .main-indicator .ind-item{display:flex;align-items:center;gap:12px;text-decoration:none;padding:4px 0;cursor:pointer}
.main-page .main-indicator .ind-dot{width:14px;height:14px;border-radius:50%;background:#94a3b8;border:2px solid #fff;box-shadow:0 1px 5px rgba(0,0,0,.3);flex-shrink:0;transition:all .25s}
.main-page .main-indicator .ind-label{font-size:13px;font-weight:800;color:#00393C;letter-spacing:-.02em;white-space:nowrap;background:#fff;padding:3px 10px;border-radius:20px;box-shadow:0 2px 8px rgba(0,0,0,.18);opacity:0;transform:translateX(-6px);transition:all .25s;pointer-events:none}
.main-page .main-indicator .ind-item:hover .ind-label,.main-page .main-indicator .ind-item.active .ind-label{opacity:1;transform:translateX(0)}
.main-page .main-indicator .ind-item:hover .ind-dot{background:#00C3BF}
.main-page .main-indicator .ind-item.active .ind-dot{background:#00C3BF;box-shadow:0 0 0 5px rgba(0,195,191,.25),0 1px 5px rgba(0,0,0,.3);transform:scale(1.15)}
.main-page .main-indicator .ind-item.active .ind-label{color:#00C3BF}
@media(max-width:1280px){.main-page .main-indicator{display:none}}

.main-page .ft-logo-img { height: 40px; width: auto; display: block; }
