@charset "UTF-8";
/*
 *  File Name : /hub/assets/css/common/component.css
 *  Description : 공통 컴포넌트
 *  Page : 전역
 */

/* ===== content ===== */
.content {padding: 20px 0 100px;}
.content--home {display: flex; flex-direction: column;}
.content--home > .promo {margin-top: 20px;}
.content--home > .section {margin-top: 36px;}
.content--community {padding-bottom: 145px;}

/* ===== SNS 타일 ===== */
.sns-tile {display: block; width: var(--sns-size, 36px); height: var(--sns-size, 36px); border-radius: 6px;
	background-repeat: no-repeat; background-position: 50% 50%;}
.sns-tile--facebook {background-color: #0866ff; background-image: url(../../images/common/icon_facebook.png); background-size: 105.6% 105.6%;}
.sns-tile--instagram {background-color: #f00073; background-image: url(../../images/common/icon_instagram.png); background-size: 63.9% 63.9%;}
.sns-tile--youtube {background-color: #f00; background-image: url(../../images/common/icon_youtube.png); background-size: 77.8% 66.7%;}
.sns-tile--x {background-color: #000; background-image: url(../../images/common/icon_x.png); background-size: 55.6% 58.3%;}

/* ===== quick ===== */
.quick {
	position: fixed; z-index: 90; bottom: 40px;
	right: clamp(13px, calc((100% - var(--layout-w)) / 2 - 111px), 129px);
	display: flex; flex-direction: column; align-items: center; gap: 25px;
}

.quick__sns {--sns-size: 36px; display: flex; flex-direction: column; align-items: center; gap: 6px;}

/* Top */
.quick__top {
	display: block; position: relative; width: 52px; height: 52px;
	border: 1px solid #644fdf; border-radius: 50%;
	background: linear-gradient(180deg, #3727b5 0%, #240075 100%);
	box-shadow: 0 1px 3px 1px rgba(28,31,38,.06), 0 1px 2px rgba(28,31,38,.1);
	color: #fafafa;
}
.quick__top-ico {display: block; position: absolute; left: calc(50% - 1px); top: 7px; width: 20px; height: 12px; transform: translateX(-50%); background: url("data:image/svg+xml,%3Csvg preserveAspectRatio='none' overflow='visible' style='display: block;' width='20' height='12' viewBox='0 0 20 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='keyboard_arrow_up'%3E%3Cpath id='icon' d='M10.5 5.03L5.52 10L4 8.49L10.5 2L17 8.49L15.48 10L10.5 5.03Z' fill='%23FAFAFA'/%3E%3C/g%3E%3C/svg%3E") no-repeat 50% 50% / 20px 12px;}
.quick__top-txt {display: block; position: absolute; left: 0; right: 0; top: 21px; font-weight: 500; font-size: 16px; line-height: 1.1875; text-align: center;}

@media all and (max-width: 1024px) {
	.quick {display: none;}
}

/* ===== 섹션 제목 ===== */
.section {display: flex; flex-direction: column; gap: 20px;}
.section__head {display: flex; align-items: flex-end; border-bottom: 2px solid #d5d6d9;}
.section__title {margin-bottom: -2px; padding-bottom: 8px; border-bottom: 4px solid #0084ff;
	color: #1b1b1b; font-weight: 700; font-size: 30px; line-height: 1.2;}
/* section__sns */
.section__sns {display: none;}
.section__link {margin-left: auto; align-self: center; color: #0084ff; font-weight: 500; font-size: 18px; line-height: 22px; text-decoration: none;}

/* ===== 게시물 목록 ===== */
.news {overflow: hidden; display: flex; flex-direction: column; border-radius: 20px; background: #fafafa;
	box-shadow: 0 2px 3px 2px rgba(28,31,38,.06), 0 2px 2px rgba(28,31,38,.1);}
.news__item {display: flex; align-items: center; gap: 26px; height: 184px; padding: 20px 34px 19px 20px;
	border-bottom: 1px solid #e3e5e9; text-decoration: none;}
.news__row:last-child .news__item {padding-bottom: 20px; border-bottom: 0;}

/* news__thumb */
.news__thumb {overflow: hidden; position: relative; flex: none;
	width: 230px; aspect-ratio: 230 / 144; border-radius: 10px; background: #e9ecef;
	transition: background-color 320ms var(--ease-in-out);}
/* 빈 자리는 윤곽을 둠 — 바탕만으로는 상자가 어디까지인지 안 보임 */
.news__thumb:empty {box-shadow: inset 0 0 0 1px #d9dbe0;}
.news__thumb img {display: block; width: 100%; height: 100%; object-fit: cover;}

.news__thumb:empty::after {content: ''; position: absolute; left: 0; top: 0;
	width: 100%; height: 100%;
	background: url("data:image/svg+xml,%3Csvg width='48' height='48' viewBox='0 0 48 48' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='%23b9bfc8' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6.5' y='10.5' width='35' height='27' rx='4'/%3E%3Cpath d='M9 32.5L19.5 23L26.5 29L32 24.5L39 31'/%3E%3C/g%3E%3Ccircle cx='17' cy='19.5' r='3.1' fill='%23b9bfc8'/%3E%3C/svg%3E") no-repeat 50% 50% / auto 40%;}

.news__body {display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0;}
.news__date {color: #240075; font-weight: 600; font-size: 14px; line-height: 20px;}
.news__title {overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
	margin-top: 2px; color: #1b1b1b; font-weight: 700; font-size: 22px; line-height: 30px;}
.news__excerpt {overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
	margin-top: 12px; color: #5b6069; font-size: 16px; line-height: 1.375;}

.news__arrow {flex: none; width: 28px; height: 28px; margin-left: 16px;
	transition: background-image 320ms var(--ease-in-out);
	background: url("data:image/svg+xml,%3Csvg preserveAspectRatio='none' overflow='visible' style='display: block;' width='28' height='28' viewBox='0 0 28 28' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3Cg id='news/row/chevron-icon'%3E %3Cpath id='Vector 5' d='M7.00005 3L19 13.8333L7.00005 23' stroke='%23CACACA' stroke-width='3.2'/%3E %3C/g%3E %3C/svg%3E") no-repeat 50% 50% / 28px 28px;}

/* layerpopup-toast__dim */
.layerpopup-toast__dim {display: none;}

/* wide-btn */
.wide-btn {display: none;}
.news__empty {display: flex; align-items: center; justify-content: center; min-height: 184px;
	color: #5b6069; font-size: 18px; text-align: center;}

/* empty-state — 관리자에 등록한 것이 없는 자리. 틀은 그대로 두고 문구만 보임 */
.empty-state {display: flex; align-items: center; justify-content: center; flex: 1 1 auto;
	min-height: 184px; padding: 20px; color: #5b6069; font-size: 18px; text-align: center;}
.empty-state--dark {color: #c9c6dd;}

/* ===== 페이지 넘기기 · 로드 모어 ===== */

.paging {margin-top: 75px;}

/* paging__nav */
.paging__nav {display: flex; align-items: center; justify-content: center; gap: 12px;}
.paging__btn {display: flex; align-items: center; justify-content: center;
	width: 48px; height: 48px; border: 1px solid #d9dbe0; border-radius: 12px; background: #fafafa;
	color: #1b1b1b; font-weight: 500; font-size: 18px; text-decoration: none;}
.paging__btn--prev,
.paging__btn--next {background-repeat: no-repeat; background-position: 50% 50%; background-size: 24px 24px;}
.paging__btn--prev {background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15 5L8 12L15 19' stroke='%231B1B1B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");}
.paging__btn--next {background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 5L16 12L9 19' stroke='%231B1B1B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");}
.paging__btn.is-off {pointer-events: none; opacity: .55;}
.paging__num.is-on {border-color: #0084ff; background: #0084ff; color: #fafafa;}

/* news__row.is-in */
.news__row.is-in {opacity: 0;}
.news__row {transition: opacity var(--dur-base) var(--ease-out),
	background-color 320ms var(--ease-in-out);}

@media (hover: hover) {
	/* hover */
	.news__row:hover {background: #ecedee;}
	/*
	 * 빈 썸네일 — 바탕 #e9ecef 가 호버 배경 #ecedee 와 1.01 : 1 이라 상자가 통째로 사라짐
	 * #dcdfe4 는 기본 상태의 대비(1.136)를 호버에서도 그대로 유지하는 값
	 * .news--compact 는 호버 배경을 껐으므로 빼야 함 — 썸네일만 혼자 어두워짐
	 */
	.news:not(.news--compact) .news__row:hover .news__thumb {background-color: #dcdfe4;}
	.news__row:hover .news__arrow {background-image: url("data:image/svg+xml,%3Csvg preserveAspectRatio='none' overflow='visible' style='display: block;' width='28' height='28' viewBox='0 0 28 28' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3Cg id='news/row/chevron-icon'%3E %3Cpath id='Vector 5' d='M7.00005 3L19 13.8333L7.00005 23' stroke='%230084FF' stroke-width='3.2'/%3E %3C/g%3E %3C/svg%3E");}

	.paging__btn:not(.is-on):not(.is-off):hover {background-color: #eceef1;}
}

@media all and (max-width: 1196px) {

	/* ===== 섹션 ===== */
	.content--home > .section {margin-top: 27px;}
	.section {gap: 11px;}
	.section__title {font-size: 24px;}
	.section__link {font-size: 16px; line-height: 20px;}

	/* ===== 게시물 목록 ===== */
	.news__date {font-size: 13px; line-height: 19px;}
	.news__title {font-size: 18px; line-height: 25px;}
	.news__excerpt {font-size: 14px;}
}

@media all and (max-width: 1024px) {
	.section__sns {--sns-size: 30px; display: flex; align-self: center; align-items: center; gap: 16px; margin-left: auto;}
	.section__link {margin-left: 20px;}
}

/* ===== 모바일 ===== */
@media all and (max-width: 860px) {

	.content--home {padding-top: 0;}
	.content {padding-bottom: 47px;}
	.content--home > .promo {margin-top: 27px;}
	.content--home > .section {margin-top: 27px;}

	.section {gap: 11px;}
	.section__head {align-items: center; gap: 16px; height: 32px; border-bottom: 0;}
	.section__title {overflow: hidden; align-self: flex-start; min-width: 0;
		margin-bottom: 0; padding-bottom: 8px; border-bottom-width: 3px;
		font-size: 20px; text-overflow: ellipsis; white-space: nowrap;}
	.section__link {display: none;}

	.section__more {margin-top: 9px;}

	.wide-btn {display: flex; align-items: center; justify-content: center; gap: 5px;
		width: 100%; height: 48px; border: 0; border-radius: 12px; background: #d9dbe0;
		color: #1b1b1b; font: inherit; font-weight: 500; font-size: 17px; text-decoration: none; cursor: pointer;}
	.wide-btn__txt {line-height: 1;}
	.wide-btn::after {content: ''; flex: none; width: 12px; height: 12px;
		background: url("data:image/svg+xml,%3Csvg preserveAspectRatio='none' overflow='visible' style='display: block;' width='36' height='36' viewBox='0 0 36 36' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='news/row/chevron-icon'%3E%3Cpath id='Vector 5' d='M11 7L27 21.0833L11 33' stroke='%231B1B1B' stroke-width='4.2'/%3E%3C/g%3E%3C/svg%3E") no-repeat 50% 50% / 12px 12px;}
	/* wide-btn--down */
	.wide-btn--down {gap: 8px;}
	.wide-btn--down::after {transform: rotate(90deg);}
	.wide-btn[hidden] {display: none;}
	/* wide-btn--share */
	.wide-btn--share {gap: 8px;}
	.wide-btn--share::after {display: none;}
	.wide-btn--share::before {content: ''; flex: none; width: 20px; height: 20px;
		background: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg%3E%3Cpath d='M11.25 3.5C11.25 2.75 12.12 2.38 12.67 2.88L18.67 8.55C19.03 8.9 19.03 9.48 18.67 9.83L12.67 15.5C12.12 16.01 11.25 15.63 11.25 14.88V12.13C6.67 12.25 4.17 13.75 2.67 16.08C2.33 16.58 1.55 16.37 1.58 15.77C1.92 10.33 5.33 7.08 11.25 6.83V3.5Z' fill='%231B1B1B'/%3E%3C/g%3E%3C/svg%3E") no-repeat 50% 50% / 100% 100%;}

	/* layerpopup-toast__dim */
	.layerpopup-toast__dim {display: block; position: fixed; z-index: var(--layer-dim-z, 150); left: 0; top: 0; width: 100%; height: 100%;
		background: rgba(0,0,0,.6); opacity: 0; visibility: hidden;
		transition: opacity 200ms var(--ease-out), visibility 0s 200ms;}
	.layerpopup-toast__dim.is-on {opacity: 1; visibility: visible; transition: opacity 200ms var(--ease-out);}

	.news {padding-bottom: 12px; border-radius: 13px; box-shadow: 0 1px 5px rgba(0,0,0,.08);}
	.news__empty {min-height: 92px; font-size: 16px;}
	.news__item {align-items: flex-start; height: 92px; gap: 10px; min-height: 0;
		padding: 13px 13px 0;}
	.news__row:last-child .news__item {padding-bottom: 0;}

	.news__thumb {width: 112px; aspect-ratio: 112 / 70; border-radius: 8px;}
	/* 썸네일 높이만큼 잡고 세로 가운데 — 제목이 한 줄이어도 썸네일 가운데에 옴 */
	.news__body {justify-content: center; min-height: 70px;}
	.news__date {order: 1; margin-top: 4px; font-weight: 500; font-size: 13px; line-height: 16px;}
	.news__title {-webkit-line-clamp: 2; margin-top: 0; font-weight: 500; font-size: 16px; line-height: 19px; letter-spacing: -.32px;}
	.news__excerpt {display: none;}
	.news__arrow {display: none;}

	/* paging */
	.paging {margin-top: 15px;}
	.paging__nav {display: none;}
}
