@charset "utf-8";

/* ==========================================================================
   게시판 상세 하단 고정 CTA 패널
   - /pub/inc/board_cta.php 에서만 로드됩니다
   - 클래스는 전부 hl-cta- 네임스페이스로 기존 스타일과 충돌하지 않습니다
   ========================================================================== */

.hl-cta {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 900;
	background: #171C61;
	box-shadow: rgba(0, 0, 0, .18) 0 -2px 16px;
	transform: translateY(100%);
	transition: transform .28s ease;
}

.hl-cta.is-show { transform: translateY(0); }

.hl-cta-inner {
	position: relative;
	max-width: 1400px;
	margin: 0 auto;
	padding: 18px 70px 18px 30px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
}

/* ---------- 문구 ---------- */
.hl-cta-text {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.hl-cta-eyebrow {
	font-size: 13px;
	font-weight: 500;
	line-height: 18px;
	color: #8FA6E8;
	letter-spacing: .02em;
}

.hl-cta-title {
	font-size: 19px;
	font-weight: 600;
	line-height: 26px;
	color: #fff;
}

.hl-cta-desc {
	font-size: 14px;
	font-weight: 400;
	line-height: 20px;
	color: rgba(255, 255, 255, .72);
}

/* ---------- 버튼 ---------- */
.hl-cta-btns {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

.hl-cta-btns a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 46px;
	padding: 0 22px;
	border-radius: 23px;
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	color: #fff;
	text-decoration: none;
	white-space: nowrap;
	border: rgba(255, 255, 255, .38) 1px solid;
	transition: background .18s linear, border-color .18s linear;
}

.hl-cta-btns a:hover,
.hl-cta-btns a:focus-visible {
	background: rgba(255, 255, 255, .14);
	border-color: rgba(255, 255, 255, .7);
}

.hl-cta-btns a.on {
	background: #fff;
	border-color: #fff;
	color: #171C61;
	font-weight: 600;
}

.hl-cta-btns a.on:hover,
.hl-cta-btns a.on:focus-visible {
	background: #E8ECFA;
	border-color: #E8ECFA;
}

/* ---------- 닫기 ---------- */
.hl-cta-close {
	position: absolute;
	top: 50%;
	right: 20px;
	width: 32px;
	height: 32px;
	transform: translateY(-50%);
	background: transparent;
	border: 0;
	padding: 0;
	cursor: pointer;
	border-radius: 50%;
}

.hl-cta-close:before,
.hl-cta-close:after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 15px;
	height: 1.5px;
	background: rgba(255, 255, 255, .8);
}

.hl-cta-close:before { transform: translate(-50%, -50%) rotate(45deg); }
.hl-cta-close:after  { transform: translate(-50%, -50%) rotate(-45deg); }

.hl-cta-close:hover { background: rgba(255, 255, 255, .12); }

/* 키보드 포커스 표시 */
.hl-cta a:focus-visible,
.hl-cta button:focus-visible {
	outline: #fff 2px solid;
	outline-offset: 2px;
}

/* 패널이 푸터를 가리지 않도록 여백 확보 */
body.hl-cta-on { padding-bottom: 88px; }

/* ---------- 태블릿 ---------- */
@media all and (max-width: 1024px) {
	.hl-cta-inner { padding: 16px 60px 16px 20px; gap: 20px; }
	.hl-cta-desc { display: none; }
	.hl-cta-title { font-size: 17px; line-height: 24px; }
	.hl-cta-btns a { height: 42px; padding: 0 16px; font-size: 14px; }
	body.hl-cta-on { padding-bottom: 80px; }
}

/* ---------- 모바일 ---------- */
@media all and (max-width: 767px) {
	.hl-cta-inner {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
		padding: 14px 16px 16px;
	}

	.hl-cta-text { padding-right: 34px; }
	.hl-cta-eyebrow { display: none; }
	.hl-cta-title { font-size: 15px; line-height: 21px; }

	.hl-cta-btns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
	.hl-cta-btns a { height: 44px; padding: 0 10px; font-size: 14px; border-radius: 8px; }

	.hl-cta-close { top: 14px; right: 12px; transform: none; }

	body.hl-cta-on { padding-bottom: 152px; }
}

/* ---------- 접근성 ---------- */
@media (prefers-reduced-motion: reduce) {
	.hl-cta { transition: none; }
}

/* ---------- 인쇄 시 숨김 ---------- */
@media print {
	.hl-cta { display: none; }
	body.hl-cta-on { padding-bottom: 0; }
}
