@charset "utf-8";

/* ============================================================
   BNK main01 — 메인 페이지
   ============================================================ */

#m1Wrap {
	padding-top: 100px;
}

/* ============================================================
   공통
   ============================================================ */
.m1-sec-inner {
	max-width: 1420px;
	padding: 0 30px;
	margin: 0 auto;
}

/* 섹션 헤더 */
.m1-sec-head {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 30px;
}

/* 타이틀 + 가로선 */
.m1-sec-title-row {
	display: flex;
	align-items: center;
	gap: 20px;
}

.m1-sec-line {
	flex: 1;
	height: 1px;
	background: #d8d8d8;
}

.m1-sec-tit {
	font-family: var(--font-title);
	font-weight: var(--fw-bold);
	font-size: clamp(26px, calc(14px + 2vw), 38px);
}

.m1-sec-tit--red {
	color: var(--primary-red, #cb1e24);
}
.m1-sec-tit--brown {
	color: #86674f;
}

.m1-sec-desc {
	font-family: "NanumSquareNeoBold", sans-serif;
	font-size: clamp(14px, calc(10px + 0.5vw), 16px);
	color: #666;
	line-height: 1.6;
}

/* 구분선 */
.m1-sec-head-left {
	display: flex;
	flex-direction: column;
}

/* 배지 */
.m1-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
	padding: 2px 10px;
	border-radius: 5px;
	font-family: "NanumSquareNeoBold", sans-serif;
	font-size: clamp(14px, calc(10px + 0.5vw), 16px);
	color: #fff;
	white-space: nowrap;
}

.m1-badge--red {
	background: var(--primary-red, #cb1e24);
}
.m1-badge--pink {
	background: #f20e84;
}
.m1-badge--purple {
	background: #9210ca;
}
.m1-badge--brown {
	background: #99704f;
}
.m1-badge--gray {
	background: #d9d9d9;
	color: var(--text-primary);
}

/* ============================================================
   이미지 오버레이 카드 (BNK Star, Wealth Star 공용)
   ============================================================ */
.m1-img-card {
	display: block;
	position: relative;
	border-radius: 20px;
	overflow: hidden;
}

.m1-img-card-bg {
	position: absolute;
	inset: 0;
}

.m1-img-card-bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.45s ease;
}

.m1-img-card:hover .m1-img-card-bg img {
	transform: scale(1.05);
}

.m1-img-card-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
}

.m1-img-card-body {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 30px;
}

.m1-img-card-tit {
	font-family: "NanumSquareNeoExtraBold", sans-serif;
	font-size: clamp(18px, calc(10px + 1vw), 22px);
	color: #fff;
	line-height: 1.45;
}

/* ============================================================
   BNK Star
   ============================================================ */

.msec01 {
	padding: 120px 0 100px;
}

.m1-bnk-swiper .m1-img-card {
	height: 430px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

/* BNK Star — PC/태블릿: 그리드 레이아웃 */
.m1-bnk-swiper.is-grid .swiper-wrapper {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

/* ============================================================
   Life Star — 3열 카드 (이미지 + 하단 텍스트)
   ============================================================ */

.msec02 {
	background: #fff2f2;
	padding: 70px 0;
}
.m1-life-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.m1-life-card {
	display: flex;
	flex-direction: column;
}

.m1-life-card-img {
	border-radius: 20px;
	overflow: hidden;
	aspect-ratio: 4 / 3;
}

.m1-life-card-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.m1-life-card:hover .m1-life-card-img img {
	transform: scale(1.05);
}

.m1-life-card-body {
	display: flex;
	flex-direction: column;
	gap: 0;
	padding-top: 30px;
}

.m1-life-card-body .m1-badge {
	order: -1;
	align-self: flex-start;
	margin-bottom: 10px;
}

.m1-life-card-body p {
	font-family: "NanumSquareNeoExtraBold", sans-serif;
	font-size: clamp(18px, calc(10px + 1vw), 22px);
	color: var(--text-primary);
	line-height: 1.45;
	margin-top: 10px;
	order: 0;
}

/* ============================================================
   Wealth Star — 혼합 그리드
   ============================================================ */

.msec03 {
	padding: 100px 0;
}
.m1-wealth-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-template-rows: repeat(2, 440px);
	gap: 20px;
}

/* Row 1 */
.m1-wealth-card:nth-child(1) {
	grid-column: 1 / 3;
} /* large */
.m1-wealth-card:nth-child(2) {
	grid-column: 3;
}
.m1-wealth-card:nth-child(3) {
	grid-column: 4;
}

/* Row 2: small | small | large */
.m1-wealth-card:nth-child(4) {
	grid-column: 1;
}
.m1-wealth-card:nth-child(5) {
	grid-column: 2;
}
.m1-wealth-card:nth-child(6) {
	grid-column: 3 / 5;
} /* large */

.m1-wealth-card {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

/* ============================================================
   Culture Star — 좌우 분할 레이아웃
   ============================================================ */

.msec04 {
	background: #f2e4d8;
	padding: 90px 0;
}
.m1-culture-layout {
	display: flex;
	gap: 40px;
	align-items: flex-start;
}

.m1-culture-left {
	flex-shrink: 0;
	width: 24%;
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding-top: 96px;
}

.m1-culture-left .m1-sec-tit {
	margin-bottom: 0;
}
.msec04 .m1-sec-desc {
	font-size: clamp(15px, calc(11px + 0.6vw), 18px);
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.m1-culture-right {
	flex: 1;
	min-width: 0;
	overflow: hidden;
}

.m1-culture-nav {
	display: flex;
	gap: 10px;
}

.m1-nav-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	border: 1px solid #fff;
	background: #fff;
	cursor: pointer;
	color: #999;
	transition:
		background 0.2s,
		color 0.2s,
		border-color 0.2s;
}

.m1-nav-btn:hover {
	background: var(--primary-red, #cb1e24);
	border-color: var(--primary-red, #cb1e24);
	color: #fff;
}

/* Culture Star Swiper */
.m1-culture-swiper {
	overflow: hidden;
}

.m1-culture-swiper .swiper-slide {
	height: auto;
}

.m1-culture-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--bg-white);
	border-radius: 20px;
	overflow: hidden;
}

.m1-culture-card-img {
	height: 300px;
}

.m1-culture-card-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.m1-culture-card:hover .m1-culture-card-img img {
	transform: scale(1.05);
}

.m1-culture-card-img--empty {
	background: #d9d9d9;
}

.m1-culture-card-body {
	padding: 30px;
	display: flex;
	flex-direction: column;
	gap: 0;
	flex: 1;
}

.m1-culture-card-body .m1-badge {
	order: -1;
	align-self: flex-start;
	padding: 3px 10px;
	margin-bottom: 0;
}

.m1-culture-card-body p {
	font-family: "NanumSquareNeoExtraBold", sans-serif;
	font-size: clamp(18px, calc(10px + 1vw), 22px);
	color: var(--text-primary);
	line-height: 1.45;
	margin-top: 12px;
}

.m1-culture-card-body--gray {
	background: #f5f5f5;
}

/* ============================================================
   Hero Swiper
   ============================================================ */
.m1-hero {
	position: relative;
	height: 800px;
}

.m1-hero-swiper {
	height: 100%;
}

.m1-hero-swiper .swiper-slide {
	position: relative;
}

.m1-hero-link {
	display: flex;
	align-items: flex-end;
	width: 100%;
	height: 100%;
	position: relative;
}

.m1-hero-bg {
	position: absolute;
	inset: 0;
}

.m1-hero-bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.m1-hero-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
}

.m1-hero-inner {
	position: relative;
	z-index: 1;
	padding: 0 30px 90px;
	width: 100%;
	max-width: 1420px;
	margin: 0 auto;
}

.m1-hero-sub {
	font-family: "NanumSquareNeo", sans-serif;
	font-size: clamp(26px, calc(2px + 5.2vw), 64px);
	color: #fff;
	line-height: 1.375;
}

.m1-hero-tit {
	font-family: "NanumSquareNeoExtraBold", sans-serif;
	font-size: clamp(26px, calc(2px + 5.2vw), 64px);
	color: #fff;
	line-height: 1.375;
}

/* 페이지네이션 */
.m1-hero-pagination {
	bottom: 40px !important;
	left: 0;
	right: 0;
	max-width: 1420px;
	padding: 0 30px;
	margin: 0 auto;
	text-align: left;
}

.m1-hero-pagination .swiper-pagination-bullet {
	background: rgba(255, 255, 255, 0.5);
	opacity: 1;
	transition: all 0.3s ease;
}

.m1-hero-pagination .swiper-pagination-bullet-active {
	background: #fff;
	width: 24px;
	border-radius: 4px;
}

/* ============================================================
   이전 호 배너
   ============================================================ */
.m1-prev-banner {
	background: var(--primary-red, #cb1e24);
	overflow: hidden;
	position: relative;
	padding: 25px 0;
}

.m1-prev-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.m1-prev-text {
	position: relative;
	z-index: 1;
}

.m1-prev-label {
	font-family: var(--font-title);
	font-weight: var(--fw-medium);
	font-size: clamp(14px, calc(2px + 2.2vw), 28px);
	color: #fff;
	margin-bottom: 8px;
}

.m1-prev-tit {
	font-family: var(--font-title);
	font-weight: var(--fw-bold);
	font-size: clamp(22px, calc(4px + 3.3vw), 44px);
	color: #fff;
}

.m1-prev-tit--medium {
	font-weight: var(--fw-medium);
}

.m1-prev-btn {
	display: none;
}

.m1-prev-deco {
	position: absolute;
	right: 0;
	top: 0;
	height: 100%;
	width: 35%;
	background: #9d171b;
	clip-path: polygon(17.26% 0%, 100% 0%, 100% 100%, 0% 100%);
	pointer-events: none;
}

.m1-prev-ico {
	position: absolute;
	right: 10.8%;
	bottom: -60px;
	/*height: 100%;*/
	z-index: 1;
	pointer-events: none;
}

.m1-prev-ico img {
	height: 138%;
	width: auto;
	display: block;
}

/* ============================================================
   반응형 — 1199px
   ============================================================ */

.m1-img-card-tit br,
.m1-life-card-body p br,
.m1-culture-card-body p br {
	display: none;
}

/* ============================================================
   반응형 — 999px
   ============================================================ */
@media all and (max-width: 999px) {
	#m1Wrap {
		padding-top: 65px;
	}

	.m1-sec-inner {
		padding: 0 20px;
	}

	.m1-img-card {
		border-radius: 15px;
	}
	.m1-img-card-body {
		padding: 20px;
	}

	.m1-hero {
		height: 540px;
	}

	.m1-hero-swiper .swiper-slide {
		padding: 0;
	}

	.m1-hero-inner {
		padding: 0 20px 40px;
	}

	.m1-hero-pagination {
		padding: 0 20px;
	}

	.m1-bnk-swiper .m1-img-card {
		height: 320px;
	}

	.m1-bnk-swiper.is-grid .swiper-wrapper {
		grid-template-columns: repeat(2, 1fr);
	}

	.m1-wealth-grid {
		grid-template-rows: repeat(2, 320px);
	}

	.m1-culture-card-img {
		height: 220px;
	}

	.m1-prev-inner {
		padding: 0 40px;
	}

	/* 이전호 배너 — 모바일 버튼 전환 */
	.m1-prev-banner {
		height: auto;
		padding: 18px 0;
	}
	.m1-prev-tit--medium {
		display: none;
	}
	.m1-prev-btn {
		display: inline-block;
		margin-top: 10px;
		background: #9d171b;
		border-radius: 20px;
		padding: 5px 16px;
		font-family: var(--font-title);
		font-weight: var(--fw-medium);
		font-size: 14px;
		color: var(--bg-white) !important;
		white-space: nowrap;
	}
	.m1-prev-deco {
		display: none;
	}
	.m1-prev-ico {
		right: 20px;
	}
}

/* ============================================================
   반응형 — 849px
   ============================================================ */
@media all and (max-width: 849px) {
	.m1-life-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	/* Wealth Star: large 1열, small 2열 */
	.m1-wealth-grid {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: 216px 216px 216px 216px;
	}
	.m1-wealth-card:nth-child(1) {
		grid-column: 1 / 3;
		grid-row: 1;
	}
	.m1-wealth-card:nth-child(2) {
		grid-column: 1;
		grid-row: 2;
	}
	.m1-wealth-card:nth-child(3) {
		grid-column: 2;
		grid-row: 2;
	}
	.m1-wealth-card:nth-child(4) {
		grid-column: 1;
		grid-row: 3;
	}
	.m1-wealth-card:nth-child(5) {
		grid-column: 2;
		grid-row: 3;
	}
	.m1-wealth-card:nth-child(6) {
		grid-column: 1 / 3;
		grid-row: 4;
	}
}

/* ============================================================
   반응형 — 768px
   ============================================================ */
@media all and (max-width: 768px) {
	.m1-sec-inner {
		padding: 0 15px;
	}

	.m1-img-card {
		border-radius: 10px;
	}
	.m1-img-card-body {
		padding: 15px;
	}
	.m1-hero {
		height: 602px;
	}
	.m1-hero-link {
		align-items: center;
	}
	.m1-hero-inner {
		padding: 0 20px;
	}

	.m1-hero-pagination {
		left: 0 !important;
		right: 0;
		padding: 0 20px;
		text-align: center;
	}
	.m1-section {
		padding: 50px 0 60px;
	}

	.m1-sec-head {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}

	.m1-bnk-swiper .m1-img-card {
		height: 287px;
	}

	.m1-life-grid {
		grid-template-columns: 1fr;
		gap: 50px;
	}

	.m1-life-card-img {
		aspect-ratio: 16 / 9;
	}

	.m1-culture-layout {
		flex-direction: column;
		gap: 24px;
	}

	.m1-culture-left {
		width: 100%;
		padding-top: 0;
		flex-direction: row;
		align-items: flex-end;
		justify-content: space-between;
		flex-wrap: wrap;
		gap: 12px;
	}

	.m1-culture-right {
		overflow: hidden;
		max-width: 100%;
	}

	.m1-culture-card {
		width: 100%;
	}
	.m1-culture-card-img {
		height: 175px;
	}

	.m1-prev-inner {
		padding: 0 20px;
	}
	.m1-prev-ico {
		bottom: auto;
		top: 50%;
		transform: translateY(-50%);
	}
	.m1-prev-ico img {
		height: 90px;
	}
}

/* ============================================================
   반응형 — 499px
   ============================================================ */

/* ============================================================
   반응형 — 399px
   ============================================================ */
@media all and (max-width: 399px) {
	.m1-wealth-grid {
		grid-template-columns: 1fr;
		grid-template-rows: auto;
	}
	.m1-wealth-card:nth-child(1),
	.m1-wealth-card:nth-child(2),
	.m1-wealth-card:nth-child(3),
	.m1-wealth-card:nth-child(4),
	.m1-wealth-card:nth-child(5),
	.m1-wealth-card:nth-child(6) {
		grid-column: 1;
		grid-row: auto;
		height: 200px;
	}
}

/* ============================================================
   애니메이션 — Hero Ken Burns
   ============================================================ */
@keyframes m1-kenburns {
	from {
		transform: scale(1.1);
	}
	to {
		transform: scale(1);
	}
}

.swiper-slide-active .m1-hero-bg img {
	animation: m1-kenburns 7s ease forwards;
}
