@charset "utf-8";

/****************** 메인 공통 ******************/
/* 시안의 콘텐츠 폭은 1400px. inner-padding(좌우 50px)을 감안해 1500px으로 잡는다. */
#wrap.main .section .inner-padding { max-width: 1500px; }

/* 시안에서 의도한 줄바꿈. <br> 대신 블록으로 끊어 좁은 화면에서도 자연 줄바꿈이 되게 한다. */
#wrap.main .line { display: block; }


/****************** 메인비주얼 ******************/
/* 첫 화면에 자주찾는 메뉴까지 들어오도록 화면 높이에서 그 띠의 높이(--quick-h)를 뺀다.
   --quick-h = .quick-menu 높이 140px(위아래 여백 20×2 + 항목 100). ≤1200px 에서는 제목이 위로 올라가 217px (퀵메뉴 미디어쿼리에서 바꾼다).
   너무 낮은 화면에선 카피·검색창·바로가기가 겹치지 않게 560px 아래로 줄이지 않고, 큰 화면은 시안 높이(947px)에서 멈춘다.
   위 여백 = 헤더(80px), 아래 여백 = 바로가기 카드(170px) — 카피가 둘 사이 빈 공간의 가운데에 온다 */
#wrap.main { --quick-h: 140px; }
.main-vi { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; height: calc(100vh - var(--quick-h)); min-height: 560px; max-height: 947px; padding: 80px 0 170px; overflow: hidden; }
.main-vi .mainvi-swiper { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.main-vi .mainvi-swiper::after { content: ""; position: absolute; top: 0; left: 0; z-index: 2; width: 100%; height: 100%; background-color: var(--black40); }
.main-vi .swiper-slide .img-wrap { display: block; width: 100%; height: 100%; }
.main-vi .swiper-slide img { width: 100%; height: 100%; object-fit: cover; }

/* 카피 + 통합검색 */
.main-vi .vi-inner { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 4rem; }
.main-vi .vi-tit { position: relative; line-height: 1.5; font-weight: 500; font-size: clamp(3rem, 3.02vw, 5.8rem); color: #fff; text-align: center; word-break: keep-all; filter: drop-shadow(0 4px 7px var(--black20)); }
.main-vi .vi-tit strong { font-weight: 700; }
/* Ephesis 글자를 아웃라인 SVG로 변환해 글자 단위로 써지는 효과를 준다(웹폰트 의존 제거). */
.main-vi .vi-tit .script { position: absolute; top: -0.72em; left: 85%; z-index: -1; display: block; width: clamp(22rem, 23.2vw, 44.5rem); height: auto; color: var(--secondary400); transform: translateX(-50%) rotate(-7.6deg); }

.main-vi .search-box { display: flex; align-items: center; width: 600px; max-width: 100%; height: 60px; background-color: #fff; border-radius: 3px; box-shadow: 0 4px 14px 0 var(--black20); overflow: hidden; }
/* placeholder만 시안(16px)보다 키웠다(요청). 박스·여백·아이콘은 시안 그대로. */
.main-vi .search-box input { flex-grow: 1; min-width: 0; height: 100%; padding: 0 20px; font-size: 18px; color: var(--gray-17); border: 0; background: none; }
.main-vi .search-box input::placeholder { color: var(--gray-75); }
.main-vi .search-box button { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 60px; height: 100%; color: #fff; background-color: var(--primary500); }
.main-vi .search-box button .ico { width: 21.5px; height: 21.5px; }

/* 바로가기 3종 — ⚠️ 2026-09-28 주석 처리. 「기업지원컨택센터 · 충북 데이터기반 성과관리시스템 · 충북연구장비정보망」
   3개를 메인비주얼에서 빼기로 해(고객사 요청) 쓰는 마크업이 없다. 되살리려면 주석만 벗기면 된다.
   원래 메모 — 3번 칸만 multiply(시안 지정, 마지막 카드가 어두워져 3단이 구분된다) ·
   배경은 시안 400/500/700 대신 600(4.83)·800(7.10)·900(10.55)로 한 단계씩 내렸다(400은 흰 글씨 2.52로 미달) ·
   --ico-bg 는 화살표 아이콘 원 안쪽을 뚫는 색이라 배경색과 같이 간다 · 카드는 시안 333×230 · 24px에서 줄였다(2026-09-15 요청) */
/*
.main-vi .short-cut { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; }
.main-vi .short-cut .item { position: relative; isolation: isolate; width: 280px; }
.main-vi .short-cut .item::before { content: ""; position: absolute; top: 0; left: 0; z-index: 0; width: 100%; height: 100%; opacity: .5; mix-blend-mode: soft-light; background: url(/resource/_main/img/main/main-shortcut--01-6acef41514ddfd4a3937651c3fa39d0f.jpg) no-repeat center center / cover; }
.main-vi .short-cut .item:nth-child(2)::before { background-image: url(/resource/_main/img/main/main-shortcut--02-a904df6d604a7b42cc07613a713577d4.jpg); }
.main-vi .short-cut .item:nth-child(3)::before { background-image: url(/resource/_main/img/main/main-shortcut--03-cab3bd65b4e4175ab45ca82a91508252.jpg); mix-blend-mode: multiply; }
.main-vi .short-cut .item:nth-child(1) { --ico-bg: var(--primary600); background-color: var(--ico-bg); }
.main-vi .short-cut .item:nth-child(2) { --ico-bg: var(--primary800); background-color: var(--ico-bg); }
.main-vi .short-cut .item:nth-child(3) { --ico-bg: var(--primary900); background-color: var(--ico-bg); }
.main-vi .short-cut .item > a { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; height: 170px; padding: 24px; color: #fff; }
.main-vi .short-cut .item > a .txt-24 { font-size: 2rem; }
.main-vi .short-cut .item > a .ico-arrow { width: 23.5px; height: 23.5px; transition: transform .3s; }
.main-vi .short-cut .item > a:hover .ico-arrow,
.main-vi .short-cut .item > a:focus .ico-arrow { transform: translateX(5px); }
*/

/* 슬라이드 컨트롤 */
.main-vi .vi-control { position: absolute; bottom: 30px; left: 30px; z-index: 3; display: flex; align-items: center; gap: 10px; color: #fff; }
.main-vi .vi-control .swiper-pagination { position: relative; top: unset; left: unset; bottom: unset; width: fit-content; font-size: 2rem; color: var(--white70); }
.main-vi .vi-control .swiper-pagination .swiper-pagination-current { font-weight: 700; color: #fff; }
.main-vi .vi-control .btn-wrap { display: flex; align-items: center; gap: 10px; }
.main-vi .vi-control .btn-wrap button { position: relative; top: unset; left: unset; right: unset; bottom: unset; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin: 0; color: #fff; background: none; }
.main-vi .vi-control .btn-wrap button .ico { width: 24px; height: 24px; }
.main-vi .vi-control .btn-wrap button::after { display: none; }
/* 정지/재생은 항상 둘 중 하나만. 위 button 규칙(클래스 3+요소 1)보다 선택자를 한 단계 올려야 먹는다. */
.main-vi .vi-control .btn-wrap .swiper-button-play { display: none; }
.main-vi.paused .vi-control .btn-wrap .swiper-button-pause { display: none; }
.main-vi.paused .vi-control .btn-wrap .swiper-button-play { display: flex; }

/* 등장 효과 — 기본값을 '재생이 끝난 상태'로 두어 JS가 죽어도 콘텐츠가 보이게 한다.
   GSAP 3.10.4는 clip-path 문자열 보간이 불안정해 커스텀 프로퍼티(--reveal)를 대신 트윈한다. */
.main-vi .vi-tit .line { --reveal: 0%; clip-path: inset(-0.2em var(--reveal) -0.2em -0.2em); }
/* 획별 클립. 기준 상자는 각 글자의 fill-box라 글자마다 제 폭만큼만 쓸린다. */
.main-vi .vi-tit .script .ch { --reveal: 0%; clip-path: inset(-20% var(--reveal) -20% -20%); }

/* 배경 슬라이드 서서히 줌아웃 */
@media (prefers-reduced-motion: no-preference) {
	.main-vi .swiper-slide-active img { animation: viZoom 7s ease-out forwards; }
}
@keyframes viZoom {
	from { transform: scale(1.08); }
	to { transform: scale(1); }
}

@media only screen and (max-width: 1400px) {
	/* 화면이 좁아지면 가운데 바로가기와 좌하단 컨트롤이 겹친다 → 검색창 아래로 내린다 */
	.main-vi .vi-control { position: relative; bottom: auto; left: auto; margin-top: 3rem; }
}
@media only screen and (max-width: 1023px) {
	.main-vi { height: auto; min-height: 0; max-height: none; padding: 140px 0 0; }
	.main-vi .vi-inner { gap: 3rem; }
	/* 아래 여백은 컨트롤이 가져간다 */
	.main-vi .vi-control { margin-bottom: 6rem; }
	/* 바로가기 3종 — 2026-09-28 주석 처리(위 기본 규칙과 함께) */
	/*
	.main-vi .short-cut { position: relative; bottom: unset; left: unset; transform: none; flex-direction: column; width: 100%; }
	.main-vi .short-cut .item { width: 100%; }
	.main-vi .short-cut .item > a { flex-direction: row; align-items: center; justify-content: space-between; height: auto; padding: 20px; }
	.main-vi .short-cut .item > a .line { display: inline; }
	*/
}
@media only screen and (max-width: 767px) {
	.main-vi { padding-top: 110px; }
	.main-vi .search-box { height: 50px; }
	.main-vi .search-box button { width: 50px; }
}
@media only screen and (max-width: 560px) {
	/* 좁은 화면에선 필기체가 카피 폭을 넘어 잘린다 → 크기를 줄이고 오른쪽 끝에서 안쪽으로 당긴다 */
	.main-vi .vi-tit .script { width: clamp(14rem, 40vw, 22rem); left: 70%; }
}

/****************** 섹션 공통 ******************/
.section { padding: 90px 0; }
.section .sec-tit { margin-bottom: 30px; line-height: 1.6; font-weight: 400; font-size: 3.5rem; color: #000; text-align: center; word-break: keep-all; }
.section .sec-tit strong { font-weight: 700; }

@media only screen and (max-width: 1023px) {
	.section { padding: 60px 0; }
	.section .sec-tit { margin-bottom: 20px; font-size: 2.8rem; }
}


/****************** 사업공고 ******************/
.notice-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
/* --line은 구분선이 그려진 정도(0~1). 기본값 1(다 그려진 상태)이라 JS가 죽어도 선은 보인다. */
.notice-grid .item { position: relative; --line: 1; }
/* 칸 사이 구분선. 시안에서 카드 안쪽으로 들여져 있어 border가 아니라 가상요소로 그린다. */
.notice-grid .item::before { content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%) scaleX(var(--line)); transform-origin: left center; width: calc(100% - 38px); height: 1px; background-color: var(--gray-e5); }
.notice-grid .item::after { content: ""; position: absolute; top: 50%; right: 0; transform: translateY(-50%) scaleY(var(--line)); transform-origin: center top; width: 1px; height: calc(100% - 58px); background-color: var(--gray-e5); }
/* 바깥 테두리는 시안에서 숨겨져 있다. 아래 규칙은 카드 8개 · 4열 기준. */
.notice-grid .item:nth-child(4n)::after { display: none; }
.notice-grid .item:nth-last-child(-n+4)::before { display: none; }

.notice-grid .item > a { display: flex; flex-direction: column; justify-content: space-between; height: 300px; padding: 24px; }
.notice-grid .item .top { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
/* 시안은 primary50 배경 + primary500 글씨(3.38)라 AA 미달 → primary700(5.77)로 올렸다 */
.notice-grid .item .cate { display: block; max-width: 100px; height: 26px; padding: 2px 8px; line-height: 1.6; font-size: 14px; color: var(--primary700); background-color: var(--primary50); border-radius: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notice-grid .item .tit { line-height: 1.6; font-weight: 500; font-size: 18px; color: #000; word-break: keep-all; }
.notice-grid .item .bottom { display: flex; flex-direction: column; gap: 10px; }
.notice-grid .item .meta li { display: flex; align-items: center; gap: 10px; line-height: 1.6; font-size: 16px; color: var(--gray-75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notice-grid .item .meta li + li { margin-top: 8px; }
.notice-grid .item .meta li svg { flex-shrink: 0; width: 15px; }

/* 상태 뱃지 — 66px 원 + 5px 띄운 링 */
.notice-grid .item .state { position: relative; align-self: flex-end; display: flex; align-items: center; justify-content: center; width: 66px; height: 66px; line-height: 1.6; font-size: 16px; border-radius: 100%; }
.notice-grid .item .state::after { content: ""; position: absolute; top: -5px; left: -5px; width: 76px; height: 76px; border-radius: 100%; }
/* 시안은 primary500 + 흰 글씨(3.73)라 AA 미달 → primary600(4.83)으로 올렸다. 링도 같이 맞춤 */
.notice-grid .item .state.ing { color: #fff; background-color: var(--primary600); }
.notice-grid .item .state.ing::after { border: 1px dashed var(--primary600); }
.notice-grid .item .state.done { color: var(--gray-55); background-color: var(--gray-f5); }
.notice-grid .item .state.done::after { border: 1px solid var(--gray-e5); }

/* 진행 뱃지의 점선 링은 카드에 마우스를 올리면 돌아간다.
   애니메이션을 항상 걸어두고 재생만 토글해야 hover가 풀릴 때 각도가 0으로 튀지 않는다. */
@media (prefers-reduced-motion: no-preference) {
	.notice-grid .item .state.ing::after { animation: stateSpin 8s linear infinite; animation-play-state: paused; }
	.notice-grid .item > a:hover .state.ing::after,
	.notice-grid .item > a:focus-visible .state.ing::after { animation-play-state: running; }
}
@keyframes stateSpin {
	to { transform: rotate(360deg); }
}

.notice-grid .item > a:hover .tit,
.notice-grid .item > a:focus .tit { color: var(--primary600); text-decoration: underline; }

@media only screen and (max-width: 1200px) {
	.notice-grid { grid-template-columns: repeat(3, 1fr); }
	.notice-grid .item:nth-child(4n)::after { display: block; }
	.notice-grid .item:nth-child(3n)::after { display: none; }
	.notice-grid .item:nth-last-child(-n+4)::before { display: block; }
	.notice-grid .item:nth-last-child(-n+2)::before { display: none; }
}
@media only screen and (max-width: 1023px) {
	.notice-grid { grid-template-columns: repeat(2, 1fr); }
	.notice-grid .item:nth-child(3n)::after { display: block; }
	.notice-grid .item:nth-child(2n)::after { display: none; }
	.notice-grid .item > a { height: auto; min-height: 260px; padding: 20px; }
}
@media only screen and (max-width: 767px) {
	.notice-grid { grid-template-columns: 1fr; }
	/* 위 구간의 :nth-child(3n)·(2n) 규칙(0,3,1)을 이기려면 여기도 의사클래스를 붙여 특정도를 맞춰야 한다 */
	.notice-grid .item:nth-child(n)::after { display: none; }
	.notice-grid .item:nth-last-child(-n+2)::before { display: block; }
	.notice-grid .item:nth-last-child(-n+1)::before { display: none; }
	.notice-grid .item > a { min-height: 0; gap: 20px; }
}

/****************** 퀵메뉴 ******************/
/* 시안은 primary500 → secondary400인데 흰 글씨 대비가 3.11~2.25로 AA 미달이라 한 단계씩 내렸다.
   600 → 600 구간은 전 지점 4.83~5.13으로 통과한다. */
/* 높이를 시안(196px)보다 줄였다(요청 2026-09-18) — 여백 30→20, 항목 136→100, 아이콘 45→36, 글씨 18→16 · 제목 2.6→2.2rem.
   이 띠의 높이는 메인비주얼이 첫 화면 높이에서 빼는 값(#wrap.main --quick-h)과 맞물린다. 크기를 바꾸면 그 값도 함께 고칠 것 */
.quick-menu { position: relative; padding: 20px 0; background: linear-gradient(to right, var(--primary600), var(--secondary600)); overflow: hidden; }
/* CBTP 심볼 워터마크. 시안에서 위아래로 흘러넘치며 불투명도 10%다. */
.quick-menu::before { content: ""; position: absolute; top: -30px; left: 5.73%; width: 251.65px; height: 295px; opacity: .1; background: url(/resource/_main/img/layout/symbol--white-21ce6b7ccce8ae7fbed337309a0dc937.svg) no-repeat center center / contain; }
.quick-menu .quick-inner { position: relative; z-index: 1; display: flex; align-items: center; gap: 30px; max-width: 1500px; }

.quick-menu .tit { flex-shrink: 0; width: 300px; line-height: 1.6; font-weight: 500; font-size: 2.2rem; color: #fff; word-break: keep-all; }
.quick-menu .tit .eng { display: block; line-height: 1.6; font-size: 14px; }
.quick-menu .tit strong { font-weight: 700; }

.quick-menu .quick-list { flex-grow: 1; display: flex; align-items: center; gap: 30px; }
.quick-menu .quick-list > li { flex: 1 1 0; min-width: 0; }
/* 가로 패딩은 시안(20px)보다 줄였다. 시안 값 그대로면 "부대시설 안내" 한 줄 폭과 여유가 0이라 줄바꿈이 난다. */
.quick-menu .quick-list > li > a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; height: 100px; padding: 10px; color: #fff; }
.quick-menu .quick-list .ico { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; transition: transform .3s; }
.quick-menu .quick-list .ico svg { width: 100%; height: auto; }
/* 시안대로 한 줄 유지 */
.quick-menu .quick-list > li > a strong { display: block; line-height: 1.45; font-weight: 500; font-size: 16px; text-align: center; white-space: nowrap; }
.quick-menu .quick-list > li > a:hover .ico,
.quick-menu .quick-list > li > a:focus-visible .ico { transform: translateY(-5px); }

@media only screen and (max-width: 1500px) {
	/* 콘텐츠 폭이 1400 밑으로 내려가면 6칸이 좁아진다 → 제목 폭과 간격을 먼저 줄인다 */
	.quick-menu .tit { width: 200px; }
	.quick-menu .quick-list { gap: 10px; }
}
@media only screen and (max-width: 1200px) {
	/* 제목과 6칸을 한 줄에 두면 '부대시설 안내'가 넘친다 → 제목을 위로 올려 폭을 확보한다.
	   띠가 제목 한 줄만큼 높아지므로 메인비주얼이 빼는 값도 키운다 */
	#wrap.main { --quick-h: 217px; }
	.quick-menu .quick-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
	.quick-menu .tit { width: 100%; }
	.quick-menu .quick-list { width: 100%; gap: 10px; }
}
@media only screen and (max-width: 1023px) {
	.quick-menu::before { left: auto; right: -60px; }
	.quick-menu .quick-list { flex-wrap: wrap; gap: 0; }
	.quick-menu .quick-list > li { flex: 0 0 33.333%; }
	.quick-menu .quick-list > li > a { height: auto; }
	.quick-menu .quick-list > li > a strong { font-size: 15px; }
}
@media only screen and (max-width: 560px) {
	.quick-menu .quick-list > li { flex: 0 0 50%; }
}

/****************** 공고·소식 ******************/
/* 우측 워터마크 — Figma logo 노드 원본(540x240)을 90° 돌려 쓴다.
   돌리면 실제 폭이 240px이 되지만 레이아웃 상자는 540px 그대로라,
   우측에 붙이려면 그 차이의 절반만큼 빼줘야 한다. */
.sec-board { position: relative; }
.sec-board .mark { position: absolute; top: 50%; right: calc(((240px - 540px) / 2) - 60px); z-index: 0; width: 540px; height: 240px; transform: translateY(-50%) rotate(-90deg); pointer-events: none; }
/* 콘텐츠 폭이 좁아지면 워터마크가 본문을 침범한다 → 숨긴다 */
@media only screen and (max-width: 1700px) {
	.sec-board .mark { display: none; }
}

.sec-board .board-wrap { position: relative; z-index: 1; display: flex; gap: 50px; }
.sec-board .board-box { flex: 1 1 0; min-width: 0; }

/* 탭 줄 */
/* 아래 선은 진입 시 그려져야 해서 border 대신 가상요소로 둔다(--line: 0~1). 기본값 1이라 JS가 죽어도 보인다. */
.sec-board .board-box > .tit { position: relative; --line: 1; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 10px; }
.sec-board .board-box > .tit::after { content: ""; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background-color: #000; transform: scaleX(var(--line)); transform-origin: left center; }
/* 시안은 빗금이 별도 요소라 글자 사이가 11+10.5+11=32.6px다. 가상요소로 그리므로 gap을 그만큼 벌린다. */
.sec-board .board-tab { display: flex; align-items: center; gap: 32px; }
.sec-board .board-tab > li { position: relative; }
/* 탭 사이 빗금 — 시안의 25px 선을 세운 뒤 25° 기울인 것 */
.sec-board .board-tab > li + li::before { content: ""; position: absolute; top: 50%; left: -16px; transform: translate(-50%, -50%) rotate(25deg); width: 2px; height: 25px; background-color: var(--gray-e5); }
.sec-board .board-tab > li > a { display: block; line-height: 1.6; font-weight: 500; font-size: 2.4rem; color: var(--gray-75); white-space: nowrap; }
.sec-board .board-tab > li.on > a { color: #000; }
/* 활성 탭 위 점 */
.sec-board .board-tab > li.on > a::after { content: ""; position: absolute; top: -10px; left: 64%; width: 6px; height: 6px; background-color: var(--primary500); border-radius: 100%; }

.sec-board .more-btn { flex-shrink: 0; display: flex; align-items: center; gap: 10px; line-height: 1.6; font-weight: 500; font-size: 16px; color: var(--gray-75); white-space: nowrap; }
.sec-board .more-btn .ico { flex-shrink: 0; transition: transform .3s; }
.sec-board .more-btn:hover .ico,
.sec-board .more-btn:focus-visible .ico { transform: rotate(90deg); }

/* 목록 */
.sec-board .board-list > li { position: relative; --line: 1; }
.sec-board .board-list > li::after { content: ""; position: absolute; bottom: 0; left: 0; width: 100%; height: 1px; background-color: var(--gray-e5); transform: scaleX(var(--line)); transform-origin: left center; }
.sec-board .board-list > li > a { display: flex; flex-direction: column; gap: 10px; padding: 24px 0; }
.sec-board .board-list .tit { line-height: 1.6; font-weight: 500; font-size: 18px; color: #000; word-break: keep-all; }
.sec-board .board-list .date { display: flex; align-items: center; gap: 10px; line-height: 1.6; font-size: 16px; color: var(--gray-75); }
.sec-board .board-list .date svg { flex-shrink: 0; width: 15px; }
.sec-board .board-list > li > a:hover .tit,
.sec-board .board-list > li > a:focus-visible .tit { color: var(--primary600); text-decoration: underline; }

@media only screen and (max-width: 1200px) {
	.sec-board .board-wrap { gap: 30px; }
	.sec-board .board-tab > li > a { font-size: 2.2rem; }
}
@media only screen and (max-width: 1023px) {
	.sec-board .board-wrap { flex-direction: column; gap: 40px; }
	.sec-board .board-list > li > a { padding: 18px 0; }
}
@media only screen and (max-width: 560px) {
	.sec-board .board-box > .tit { flex-wrap: wrap; }
	.sec-board .board-tab { gap: 24px; }
	.sec-board .board-tab > li + li::before { left: -12px; }
	.sec-board .board-tab > li > a { font-size: 1.9rem; }
}


/****************** 최신소식 ******************/
.sec-news { position: relative; background-color: var(--primary50); overflow: hidden; }
/* 배경 글씨. 흰색 → primary50 그라데이션을 글자에 클립해 배경으로 서서히 잠기게 한다. */
.sec-news .bg-txt { position: absolute; line-height: 1.6; font-weight: 600; font-size: clamp(6rem, 7.5vw, 14.4rem); white-space: nowrap; color: transparent; -webkit-background-clip: text; background-clip: text; }
.sec-news .bg-txt1 { top: -0.49em; left: calc(50% - 50.7vw); background-image: linear-gradient(to right, #fff, var(--primary50)); }
.sec-news .bg-txt2 { bottom: -0.41em; left: calc(50% - 4.1vw); background-image: linear-gradient(to right, var(--primary50), #fff); }

.sec-news .inner-padding { position: relative; z-index: 1; }
.sec-news .news-wrap { display: flex; align-items: stretch; gap: 20px; }
/* 스와이퍼 래퍼(nowrap flex)의 min-content가 칸을 밀어내 컨테이너를 넘긴다.
   min-width만으론 안 잡히고 max-width로 눌러야 한다. */
.sec-news .news-wrap > * { max-width: 100%; }
.sec-news .news-box { border-radius: 5px; }

/* 공통 제목줄 */
.sec-news .news-box > .tit { display: flex; align-items: center; justify-content: space-between; gap: 10px; line-height: 1.6; font-weight: 600; font-size: 2.4rem; word-break: keep-all; }
.sec-news .more-btn { flex-shrink: 0; display: flex; align-items: center; gap: 10px; line-height: 1.6; font-weight: 500; font-size: 16px; white-space: nowrap; }
.sec-news .more-btn .ico { flex-shrink: 0; transition: transform .3s; }
.sec-news .more-btn.plus:hover .ico,
.sec-news .more-btn.plus:focus-visible .ico { transform: rotate(90deg); }
.sec-news .more-btn.arrow:hover .ico,
.sec-news .more-btn.arrow:focus-visible .ico { transform: translateX(4px); }

/* 홍보영상 — 시안은 primary500인데 22px·16px 흰 글씨가 3.73으로 AA 미달이라 600으로 올렸다 */
/* min-width: 0 이 없으면 flex 항목의 min-content(스와이퍼 래퍼 전체 폭)가 칸을 밀어내 레이아웃이 터진다 */
.sec-news .news-box.vod { --ico-bg: var(--primary600); flex: 0 0 31.2%; min-width: 0; display: flex; flex-direction: column; gap: 20px; padding: 20px; color: #fff; background-color: var(--primary600); }
.sec-news .news-box.vod .cont { display: flex; flex-direction: column; gap: 20px; }
.sec-news .news-box.vod .thumb { display: block; position: relative; width: 100%; aspect-ratio: 340 / 210; border-radius: 3px; overflow: hidden; }
.sec-news .news-box.vod .thumb img { width: 100%; height: 100%; object-fit: cover; }
.sec-news .news-box.vod .txt { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.sec-news .news-box.vod .txt .tit { line-height: 1.6; font-weight: 600; font-size: 2.2rem; text-align: center; word-break: keep-all; }

/* 최신소식 모아보기 · 포토뉴스 — 흰 카드 */
.sec-news .news-box.sns,
.sec-news .news-box.photo { min-width: 0; display: flex; flex-direction: column; gap: 20px; padding: 20px; background-color: #fff; }
.sec-news .news-box.sns { flex: 0 0 31.4%; }
.sec-news .news-box.sns > .tit,
.sec-news .news-box.photo > .tit { color: #000; }
/* 시안은 24px/간격 10px인데 작고 벌어져 보여 28px/간격 2px로 키우고 좁혔다(요청) */
.sec-news .news-control { flex-shrink: 0; display: flex; align-items: center; gap: 2px; color: var(--gray-33); }
/* Swiper 기본 CSS가 prev/next를 absolute로 만들어 세 버튼이 겹친다 → 흐름으로 되돌린다 */
.sec-news .news-control button { position: relative; top: unset; left: unset; right: unset; bottom: unset; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin: 0; color: inherit; background: none; }
.sec-news .news-control button .ico { width: 28px; height: 28px; }
.sec-news .news-control button::after { display: none; }
.sec-news .news-control .swiper-button-play { display: none; }
.sec-news .news-box.sns.paused .news-control .swiper-button-pause { display: none; }
.sec-news .news-box.sns.paused .news-control .swiper-button-play { display: flex; }
/* 1:1 카드라 칸이 넓어지면 세로가 같이 커진다 → 상한을 걸고 가운데 정렬 */
.sec-news .news-swiper { width: 100%; max-width: 420px; min-width: 0; margin: 0 auto; border-radius: 3px; overflow: hidden; }
.sec-news .news-swiper .swiper-slide > a { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; }
.sec-news .news-swiper img { width: 100%; height: 100%; object-fit: cover; }
.sec-news .news-swiper .badge { position: absolute; top: 20px; right: 20px; display: block; width: 40px; height: 40px; }
.sec-news .news-swiper .badge img { width: 100%; height: auto; }

/* 포토뉴스 — 썸네일 2×2. 남는 폭을 이 칸이 가져간다 */
.sec-news .news-box.photo { flex: 1 1 0; }
.sec-news .photo-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
.sec-news .photo-list a { display: block; }
.sec-news .photo-list .thumb { display: block; aspect-ratio: 10 / 7; background-color: var(--gray-e5); border-radius: 3px; overflow: hidden; }
.sec-news .photo-list .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.sec-news .photo-list a:hover .thumb img,
.sec-news .photo-list a:focus-visible .thumb img { transform: scale(1.05); }
.sec-news .photo-list .tit { margin-top: 10px; line-height: 1.5; font-weight: 500; font-size: 16px; color: var(--gray-17); }
.sec-news .photo-list a:hover .tit,
.sec-news .photo-list a:focus-visible .tit { text-decoration: underline; }
.sec-news .photo-list .date { display: block; margin-top: 2px; line-height: 1.5; font-size: 14px; color: var(--gray-75); }

@media only screen and (max-width: 1200px) {
	.sec-news .news-wrap { gap: 14px; }
}
@media only screen and (max-width: 1023px) {
	/* 3단을 유지하면 칸이 너무 좁아지는 지점. 여기서 2단 + 하단 1줄로 접는다. */
	.sec-news .news-wrap { flex-wrap: wrap; }
	.sec-news .news-box.vod,
	.sec-news .news-box.sns { flex: 1 1 calc(50% - 7px); }
	.sec-news .news-box.photo { flex: 1 1 100%; }
	.sec-news .photo-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.sec-news .news-box > .tit { font-size: 2.2rem; }
}
@media only screen and (max-width: 767px) {
	.sec-news .news-wrap { flex-direction: column; }
	.sec-news .news-box.vod,
	.sec-news .news-box.sns,
	.sec-news .news-box.photo { flex: 1 1 auto; }
	.sec-news .photo-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
	.sec-news .photo-list .tit { font-size: 15px; }
}

