﻿@charset "utf-8";

/* ============================================================
   공통 유틸
   ============================================================ */
.m7-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 60px;
}

/* ============================================================
   S1: 비디오 히어로
   ============================================================ */
.m7-hero {
	position: relative;
	height: 100vh;
	min-height: 600px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background-color: #000;
}

.m7-hero-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.m7-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.75) 100%);
}

.m7-hero-body {
	position: relative;
	z-index: 2;
	text-align: center;
	color: #fff;
	padding: 0 24px;
}

.m7-hero-meta {
	font-size: clamp(14px, calc(4px + 1.4vw), 18px);

	color: rgba(255, 255, 255, 0.65);
	margin-bottom: 24px;
}

.m7-hero-tit {
	font-size: clamp(28px, calc(5.5px + 4.5vw), 60px);
	font-family: var(--font-sub-title);
	font-weight: 900;
	color: #fff;
	margin-bottom: 28px;
	line-height: 1.2;
}

.m7-hero-sub {
	font-size: clamp(14px, calc(5px + 1.3vw), 20px);
	color: rgba(255, 255, 255, 0.82);
	margin-bottom: 52px;
}

.m7-hero-cta {
	display: inline-block;
	padding: 14px 44px;
	border: 1.5px solid rgba(255, 255, 255, 0.65);
	color: #fff;
	font-size: clamp(14px, calc(4px + 1.4vw), 18px);

	text-decoration: none;
	transition:
		background 0.25s,
		border-color 0.25s;
}
.m7-hero-cta:hover {
	background: rgba(255, 255, 255, 0.18);
	border-color: #fff;
}

.m7-hero-scroll {
	position: absolute;
	bottom: 40px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	z-index: 2;
}

.m7-scroll-label {
	font-size: 11px;

	color: rgba(255, 255, 255, 0.55);
}

.m7-scroll-line {
	width: 1px;
	height: 50px;
	background: rgba(255, 255, 255, 0.35);
	transform-origin: top center;
	animation: m7ScrollAnim 1.6s ease-in-out infinite;
}

@keyframes m7ScrollAnim {
	0% {
		transform: scaleY(0);
		opacity: 0;
	}
	40% {
		opacity: 1;
	}
	100% {
		transform: scaleY(1);
		opacity: 0;
	}
}

/* ============================================================
   S2: 기사 목록
   ============================================================ */
.m7-list-sec {
	padding: 96px 0 80px;
	background: var(--color-bg-main);
}

.m7-list-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 48px;
	border-bottom: 2px solid var(--color-text-main);
	padding-bottom: 20px;
}

.m7-list-sec-label {
	font-size: clamp(22px, calc(10px + 2vw), 34px);
	font-weight: 900;
	font-family: var(--font-sub-title);
	color: var(--color-text-main);
}

.m7-list-sec-vol {
	font-size: clamp(14px, calc(4px + 1.4vw), 18px);

	color: var(--color-text-muted);
}

.m7-list {
	list-style: none;
}

.m7-list-item {
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 22px 0;
	border-bottom: 1px solid var(--color-border);
	text-decoration: none;
	color: var(--color-text-main);
	transition: padding-left 0.28s ease;
}
@media (hover: hover) {
	.m7-list-item:hover {
		padding-left: 10px;
	}
	.m7-list-item:hover .m7-list-arrow {
		transform: translateX(6px);
		color: var(--color-primary);
	}
}

.m7-list-num {
	font-size: clamp(14px, calc(4px + 1.4vw), 18px);

	color: var(--color-text-muted);
	flex-shrink: 0;
}

.m7-list-cate {
	font-size: clamp(14px, calc(4px + 1.4vw), 18px);

	color: var(--color-primary);
	flex-shrink: 0;
	min-width: 80px;
}

.m7-list-tit {
	font-size: clamp(18px, calc(8px + 1.5vw), 26px);
	font-weight: 700;
	font-family: var(--font-sub-title);
	color: var(--color-text-main);
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	/*flex-shrink: 0;*/
}

.m7-list-line {
	flex: 1;
	border-bottom: 1px solid var(--color-border);
	align-self: center;
	min-width: 20px;
}

.m7-list-arrow {
	font-size: clamp(16px, calc(6px + 1.4vw), 22px);
	color: var(--color-text-muted);
	flex-shrink: 0;
	transition:
		transform 0.25s ease,
		color 0.25s ease;
}

/* ============================================================
   반응형 — 999px (태블릿)
   ============================================================ */
@media (max-width: 999px) {
	.m7-wrap {
		padding: 0 40px;
	}
	.m7-archive-strip {
		padding: 0 40px;
	}

	.m7-list-sec {
		padding: 72px 0 64px;
	}
	.m7-list-item {
		gap: 18px;
	}
	.m7-list-cate {
		min-width: 64px;
	}

}

/* ============================================================
   반응형 — 768px (모바일)
   ============================================================ */
@media (max-width: 768px) {
	.m7-wrap {
		padding: 0 24px;
	}
	.m7-archive-strip {
		padding: 0 24px;
	}

	.m7-hero-sub {
		display: none;
	}
	.m7-hero-cta {
		padding: 10px 28px;
	}
	.m7-hero-scroll {
		bottom: 28px;
	}

	.m7-list-sec {
		padding: 30px 0;
	}
	.m7-list-head {
		margin-bottom: 20px;
		padding-bottom: 14px;
	}
	.m7-list-item {
		display: grid;
		grid-template-columns: auto auto 1fr auto;
		grid-template-rows: auto auto;
		column-gap: 12px;
		row-gap: 6px;
		padding: 14px 0;
	}
	.m7-list-num {
		grid-column: 1;
		grid-row: 1;
	}
	.m7-list-cate {
		grid-column: 2;
		grid-row: 1;
		min-width: unset;
	}
	.m7-list-tit {
		grid-column: 1 / 4;
		grid-row: 2;
	}
	.m7-list-line {
		display: none;
	}
	.m7-list-arrow {
		grid-column: 4;
		grid-row: 2;
	}

}

/* ============================================================
   반응형 — 499px (소형 폰)
   ============================================================ */
@media (max-width: 499px) {
	.m7-wrap {
		padding: 0 20px;
	}
	.m7-list-item {
		gap: 12px;
	}
	.m7-list-cate {
		min-width: 54px;
	}
}
