@charset "utf-8";
/* 게시판 목록 상단 배너 (bfVideo.php · bfPhoto.php)
   css/sub_new.css의 #main .common_hero와 같은 디자인입니다.
   게시판 페이지는 sub_new.css를 불러오지 않으므로 .bf-hero 안에서만 같은 규칙을 다시 씁니다. */

.bf-hero {
	--ink: #1e293b;
	position: relative;
	width: 100%;
	min-height: 600px;
	aspect-ratio: 1920 / 532;
	overflow: hidden;
	font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}
.bf-hero .txt {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	box-sizing: border-box;
	width: calc(100% - 320px);
	max-width: 1700px;
	margin: 0 auto;
	padding: 188px 20px 80px;
}
.bf-hero .txt span { color: var(--ink); font-size: 24px; font-weight: 700; line-height: 120%; letter-spacing: -0.72px; }
.bf-hero .txt h2 { margin: 64px 0 24px; padding: 0; color: #222; font-size: 60px; font-weight: 700; line-height: 68px; letter-spacing: -1.8px; }
.bf-hero .txt p { margin: 0; color: #222; font-size: 24px; font-weight: 400; line-height: 32px; letter-spacing: -0.72px; }
.bf-hero .bg_text { position: absolute; right: 65px; bottom: 20px; z-index: 1; pointer-events: none; }
.bf-hero .bg_text img { display: block; width: 100%; height: auto; }
.bf-hero .bg_text .pc_img { display: block; }
.bf-hero .bg_text .m_img { display: none; }

/* 배너가 있는 목록은 배너가 헤더 높이만큼 여백을 갖고 있으므로, 아래 게시판의 위쪽 여백과 중복 제목을 없앱니다. */
#bfVideo.has-hero .bfvideo_board > .container,
#bfMedia.has-hero .bfmedia_board > .container,
#bfPhoto.has-hero .bfphoto_board > .container { padding-top: 40px !important; }
#bfVideo.has-hero .bf-shorts-heading,
#bfMedia.has-hero .bf-shorts-heading,
#bfPhoto.has-hero .bf-shorts-heading { display: none !important; }

@media (max-width: 1600px) {
	.bf-hero .txt { width: calc(100% - 80px); }
}
@media (max-width: 1200px) {
	.bf-hero { min-height: 450px; aspect-ratio: auto; }
	.bf-hero .txt { padding: 140px 30px 80px; }
	.bf-hero .bg_text { right: 30px; bottom: 20px; width: 70%; }
}
@media (max-width: 768px) {
	.bf-hero { min-height: 0; aspect-ratio: 320 / 291; }
	.bf-hero .txt { width: 100%; max-width: none; padding: 60px 16px 0; }
	.bf-hero .txt span { font-size: 16px; letter-spacing: -0.48px; }
	.bf-hero .txt h2 { margin: 32px 0 12px; font-size: 40px; line-height: 48px; letter-spacing: -1.2px; }
	.bf-hero .txt p { font-size: 14px; line-height: 20px; letter-spacing: -0.42px; }
	.bf-hero .bg_text { right: 0; bottom: 0; width: calc(100% - 32px); }
	.bf-hero .bg_text .pc_img { display: none; }
	.bf-hero .bg_text .m_img { display: block; }

	#bfVideo.has-hero .bfvideo_board > .container,
	#bfMedia.has-hero .bfmedia_board > .container,
	#bfPhoto.has-hero .bfphoto_board > .container { padding-top: 24px !important; }
}

/* qna.php · faq.php: 배너 아래 게시판 위쪽 여백과 목록 안의 중복 제목 정리 */
#bfQna.has-hero .qna_board > .container,
#faq.has-hero .faq_board > .container { padding-top: 40px !important; }
#bfQna.has-hero #bo_list .qna-heading { display: none !important; }
@media (max-width: 768px) {
	#bfQna.has-hero .qna_board > .container,
	#faq.has-hero .faq_board > .container { padding-top: 24px !important; }
}


/* ===================================
	 배경 로고 흐름(마퀴)
	 js/sub.js가 .bg_text에 .is-marquee를 붙이고 로고를 여러 개 복제해 가로로 이어 붙입니다.
	 JS가 동작하지 않으면 기존 배치(로고 1개) 그대로 보입니다.
	 - 트랙 margin-left: 첫 로고를 배너 텍스트 시작선에 맞춥니다.
	 - 로고 크기는 높이로 정합니다. (이미지 가로 길이가 바뀌어도 글자 크기가 유지됩니다)
	 - 로고 간격(padding-right)은 margin-left와 따로 정해도 됩니다. (반복은 js/sub.js가 두 번째 세트부터 잡습니다)
=================================== */
.bf-hero .bg_text.is-marquee { left: 0; right: 0; width: auto; overflow: hidden; }
.bf-hero .bg_track { display: flex; width: max-content; margin-left: max(calc((100% - 1700px) / 2 + 20px), 180px); will-change: transform; }
.bf-hero .bg_text.is-marquee img { flex: none; box-sizing: content-box; width: auto; height: 177px; max-width: none; padding-right: 80px; }
@media (max-width: 1600px) {
	.bf-hero .bg_track { margin-left: 60px; }
	.bf-hero .bg_text.is-marquee img { padding-right: 60px; }
}
@media (max-width: 1200px) {
	.bf-hero .bg_track { margin-left: 70px; }
	.bf-hero .bg_text.is-marquee img { height: calc(70vw * 177 / 1182); padding-right: 40px; }
}
@media (max-width: 768px) {
	.bf-hero .bg_track { margin-left: 16px; }
	.bf-hero .bg_text.is-marquee img { height: calc((100vw - 32px) * 45 / 288); padding-right: 24px; }
}
