@charset "utf-8";

/* ===============================================
 * 메인 페이지 (index.jsp) 전용 스타일
 * Figma 1920×1080 시안 기반, 반응형
 * 메인 컬러: #004D40
 * 섹션: Hero / Vision / Board / Service / Footer
 * =============================================== */

/* ---- 0. 공통 / 리셋 ---- */
.main-page,
.main-page * { box-sizing: border-box; }

.main-page {
	font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
	background: #fff;
	color: #000;
}

.main-page #wrap {
	width: 100%;
	min-height: 100vh;
	overflow-x: hidden;
}

/* leftmenu.jsp navbar / devMenu 영향 무력화 — GNB는 header.jsp 사용 */
.main-page .navbar.navbar-fixed-top { display: none !important; }
.main-page .program_box { display: none !important; }

/* footer.jsp의 <footer/>는 비어있음 — 추가 마진 제거 */
.main-page > footer { display: none; }

/* 공통 태그 배지 (그라데이션 점 + 텍스트) */
.main-page .tag-badge {
	display: inline-flex;
	align-items: center;
	gap: 20px;
	padding: 14px 20px;
	background: #fff;
	border-radius: 50px;
	box-shadow: 0 0 4px rgba(0,0,0,0.15);
	color: #000;
	font-size: 18px;
	font-weight: 400;
}
.main-page .tag-badge .tag-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: linear-gradient(328deg,
		rgba(0,77,64,0.60) 0%,
		rgba(0,179,149,0.60) 25%,
		rgba(0,127,105,0.60) 41%,
		rgba(87,255,226,0.60) 60%,
		rgba(0,179,148,0.60) 100%);
	flex-shrink: 0;
}
.main-page .tag-badge-line .tag-text {
	color: #004D40;
	font-weight: 500;
}

.main-page .highlight {
	color: #004D40;
	background: none;
	background-color: transparent;
	padding: 0;
	border-radius: 0;
	font-weight: inherit;
}

/* ---- 우측 페이지 인디케이터 ---- */
.main-page .main-indicator {
	position: fixed;
	right: 60px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	flex-direction: column;
	gap: 20px;
	z-index: 50;
}

.main-page .main-indicator .ind-item {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #999;
	font-size: 18px;
	font-weight: 400;
	text-decoration: none;
	transition: color .2s;
}

.main-page .main-indicator .ind-dot {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 14px;
	height: 14px;
	border: 1px solid #999;
	border-radius: 50%;
	padding: 2px;
	transition: border-color .2s, padding .2s, width .2s, height .2s;
}

.main-page .main-indicator .ind-dot::after {
	content: '';
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background: #999;
	transition: background-color .2s;
}

.main-page .main-indicator .ind-item.active {
	color: #004D40;
	font-size: 24px;
	font-weight: 600;
}

.main-page .main-indicator .ind-item.active .ind-dot {
	width: 20px;
	height: 20px;
	border-color: #004D40;
	padding: 4px;
}

.main-page .main-indicator .ind-item.active .ind-dot::after {
	background: #004D40;
}

/* 히어로 영역을 벗어날수록 스크롤 진행도(--label-progress, 1→0)에 비례해서 라벨이 사라짐.
   compact 상태에서 인디케이터에 hover 하면 라벨 다시 노출. */
.main-page .main-indicator .ind-label {
	display: inline-block;
	opacity: var(--label-progress, 1);
	max-width: calc(var(--label-progress, 1) * 260px);
	overflow: hidden;
	white-space: nowrap;
	vertical-align: middle;
	transition: opacity .2s ease, max-width .2s ease;
}

.main-page .main-indicator:hover .ind-label {
	opacity: 1;
	max-width: 260px;
}

/* ---- 3. Hero 섹션 ---- */
.main-page .section-hero {
	position: relative;
	width: 100%;
	min-height: 100vh;
	padding: 260px 0 100px 160px;
	background: url('/img/mainvisual_08.png') center / cover no-repeat;
	display: flex;
	align-items: flex-start;
}

.main-page .hero-inner {
	width: 100%;
	max-width: 747px;
	display: flex;
	flex-direction: column;
	gap: 90px;
}

.main-page .hero-text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
}

.main-page .hero-title {
	font-size: 80px;
	font-weight: 700;
	color: #000;
	line-height: 1.15;
	letter-spacing: -0.02em;
	word-break: keep-all;
	margin: 0;
}

.main-page .hero-actions {
	display: flex;
	align-items: center;
	gap: 30px;
}

.main-page .btn-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 190px;
	height: 88px;
	padding: 20px 40px;
	border-radius: 80px;
	font-size: 32px;
	font-weight: 700;
	text-decoration: none;
	transition: opacity .2s, transform .2s;
}

.main-page .btn-cta:hover { opacity: .9; }

.main-page .btn-cta.btn-outline {
	background: #fff;
	color: #004D40;
	border: 2px solid #004D40;
}

.main-page .btn-cta.btn-filled {
	background: #004D40;
	color: #fff;
}

/* ---- 4. OUP VISION 섹션 ---- */
.main-page .section-vision {
	min-height: 100vh;
	padding: 160px;
	background: #F8FAFC;
	display: flex;
	align-items: center;
}

.main-page .vision-inner {
	width: 100%;
	max-width: 1600px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 95px;
}

.main-page .vision-image {
	flex: 0 0 800px;
	max-width: 800px;
}

.main-page .vision-image img {
	width: 100%;
	height: auto;
	border-radius: 24px;
	border: 4px solid rgba(0,77,64,0.30);
	display: block;
}

.main-page .vision-content {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 40px;
}

.main-page .vision-title {
	font-size: 50px;
	font-weight: 500;
	color: #000;
	line-height: 1.25;
	margin: 0;
	word-break: keep-all;
}

.main-page .vision-desc {
	font-size: 20px;
	font-weight: 500;
	color: #000;
	line-height: 1.5;
	margin: 0;
}

.main-page .vision-features {
	list-style: none;
	margin: 0;
	padding: 40px 0 0;
	display: flex;
	flex-direction: column;
	gap: 30px;
	width: 100%;
}

.main-page .vision-feat {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.main-page .vision-feat .feat-dot {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	padding: 5px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.main-page .vision-feat .feat-dot::after {
	content: '';
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: linear-gradient(328deg,
		rgba(0,77,64,0.60) 0%,
		rgba(0,179,149,0.60) 25%,
		rgba(0,127,105,0.60) 41%,
		rgba(87,255,226,0.60) 60%,
		rgba(0,179,148,0.60) 100%);
}

.main-page .vision-feat .feat-body {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.main-page .vision-feat .feat-title {
	font-size: 24px;
	font-weight: 700;
	color: #000;
	margin: 0;
	line-height: 1.3;
}

.main-page .vision-feat .feat-desc {
	font-size: 20px;
	font-weight: 500;
	color: #000;
	margin: 0;
	line-height: 1.45;
}

/* ---- 5. ASSOCIATION BOARD 섹션 ---- */
.main-page .section-board {
	min-height: 100vh;
	padding: 160px;
	background: #F8FAFC;
	display: flex;
	align-items: center;
}

.main-page .board-inner {
	width: 100%;
	max-width: 1600px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.main-page .board-header {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
}

.main-page .board-title {
	font-size: 50px;
	font-weight: 700;
	color: #000;
	margin: 0;
	line-height: 1.2;
}

.main-page .board-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 40px;
}

.main-page .board-item .board-card {
	position: relative;
	height: 270px;
	background: #fff;
	border-radius: 12px;
	border: 2px solid rgba(0,77,64,0.20);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 22px;
	padding: 20px;
	transition: border-color .2s, transform .2s;
}

.main-page .board-item.active .board-card,
.main-page .board-item:hover .board-card {
	border-color: rgba(0,77,64,0.60);
	border-width: 2.5px;
}

.main-page .board-card .card-logo {
	font-size: 30px;
	font-weight: 600;
	color: #000;
	text-align: center;
}

.main-page .board-card.has-bg {
	background-size: cover;
	background-position: center;
	overflow: hidden;
}
.main-page .board-card.has-bg::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0.45);
	border-radius: 12px;
}
.main-page .board-card.has-bg .card-info {
	position: relative;
	z-index: 1;
}
.main-page .board-card.has-bg .card-name { color: #fff; }
.main-page .board-card.has-bg .card-role { color: rgba(255,255,255,0.85); }

.main-page .board-card .card-info {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	text-align: center;
}

.main-page .board-card .card-name {
	font-size: 24px;
	font-weight: 600;
	color: #000;
}

.main-page .board-card .card-role {
	font-size: 20px;
	font-weight: 400;
	color: #999;
}

.main-page .board-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 40px;
	padding-top: 20px;
}

.main-page .board-pagination .pg-arrow {
	color: rgba(0,77,64,0.20);
	font-size: 22px;
	text-decoration: none;
	font-weight: 700;
}

.main-page .board-pagination .pg-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 20px;
	color: #004D40;
	font-size: 30px;
	font-weight: 700;
	text-decoration: none;
}

.main-page .board-pagination .pg-num.active {
	background: #004D40;
	color: #fff;
}

/* ---- 6. KEY SERVICE 섹션 ---- */
.main-page .section-service {
	min-height: 100vh;
	padding: 160px 175px;
	background: #F8FAFC;
	display: flex;
	align-items: center;
}

.main-page .service-inner {
	width: 100%;
	max-width: 1600px;
	margin: 0 auto;
}

.main-page .service-card {
	background: #EBF1F2;
	border: 2px solid rgba(0,77,64,0.20);
	border-radius: 24px;
	padding: 80px 90px;
	display: flex;
	align-items: flex-start;
	gap: 97px;
}

.main-page .service-intro {
	flex: 0 0 503px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 40px;
}

.main-page .service-intro .tag-badge { align-self: flex-start; }

.main-page .service-title {
	color: #004D40;
	font-size: 32px;
	font-weight: 700;
	margin: 0;
	line-height: 1.3;
}

.main-page .service-desc {
	color: #666;
	font-size: 28px;
	font-weight: 400;
	line-height: 1.5;
	margin: 0;
}

.main-page .service-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	flex: 1;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}

.main-page .service-item a {
	position: relative;
	display: block;
	height: 223px;
	background: #fff;
	border: 2px solid rgba(0,77,64,0.20);
	border-radius: 24px;
	padding: 30px 40px;
	text-decoration: none;
	transition: border-color .2s, transform .2s;
}

.main-page .service-item a:hover {
	border-color: rgba(0,77,64,0.60);
	transform: translateY(-2px);
}

.main-page .service-item .svc-icon {
	display: inline-block;
	width: 50px;
	height: 50px;
	background: #F8FAFC;
	border-radius: 50%;
	position: relative;
	margin-bottom: 28px;
}

.main-page .service-item .svc-icon::before {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 24px;
	height: 24px;
	background: #004D40;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
}

/* 아이콘 (CSS만으로 처리 — SVG 마스크 대신 단순 도형 활용) */
.main-page .service-item .svc-icon-edu::before {
	width: 22px; height: 14px;
	background: #004D40;
	-webkit-mask: none; mask: none;
	border-radius: 2px 2px 0 0;
	box-shadow: 0 -4px 0 -2px #004D40;
}
.main-page .service-item .svc-icon-doc::before {
	width: 20px; height: 20px;
	background: #004D40;
	border-radius: 2px;
	-webkit-mask: none; mask: none;
}
.main-page .service-item .svc-icon-fb::before {
	width: 20px; height: 19px;
	background: #004D40;
	border-radius: 50% 50% 50% 0;
	-webkit-mask: none; mask: none;
}
.main-page .service-item .svc-icon-emg::before {
	width: 22px; height: 20px;
	background: #004D40;
	clip-path: polygon(50% 0, 100% 100%, 0 100%);
	-webkit-mask: none; mask: none;
}
.main-page .service-item .svc-icon-intro::before {
	width: 20px; height: 20px;
	background: #004D40;
	border-radius: 50%;
	-webkit-mask: none; mask: none;
}

.main-page .service-item .svc-title {
	font-size: 24px;
	font-weight: 700;
	color: #000;
	margin: 0 0 8px;
}

.main-page .service-item .svc-desc {
	font-size: 18px;
	font-weight: 500;
	color: #000;
	margin: 0;
	line-height: 1.4;
}

/* ---- 8. 반응형 ---- */
@media (max-width: 1600px) {
	.main-page .section-vision,
	.main-page .section-board,
	.main-page .section-service { padding: 120px 80px; }
	.main-page .vision-inner { gap: 60px; }
	.main-page .vision-image { flex-basis: 600px; max-width: 600px; }
	.main-page .service-card { padding: 60px 60px; gap: 60px; }
	.main-page .service-intro { flex-basis: 420px; }
}

@media (max-width: 1280px) {
	.main-page .section-hero { padding: 200px 5% 80px; }
	.main-page .hero-inner { margin-left: 0; gap: 60px; }
	.main-page .hero-title { font-size: 60px; }
	.main-page .main-indicator { right: 30px; }
	.main-page .btn-cta { font-size: 24px; min-width: 160px; height: 76px; }

	.main-page .vision-inner { flex-direction: column; gap: 50px; }
	.main-page .vision-image { flex-basis: auto; max-width: 100%; width: 100%; }
	.main-page .vision-title { font-size: 40px; }

	.main-page .board-list { grid-template-columns: repeat(3, 1fr); gap: 24px; }
	.main-page .board-title { font-size: 40px; }

	.main-page .service-card { flex-direction: column; padding: 50px; gap: 40px; }
	.main-page .service-intro { flex-basis: auto; width: 100%; }
	.main-page .service-desc { font-size: 22px; }
}

@media (max-width: 1024px) {
	.main-page .section-hero { padding: 160px 5% 60px; }
	.main-page .hero-inner { gap: 40px; }
	.main-page .hero-title { font-size: 44px; }
	.main-page .btn-cta { font-size: 20px; min-width: 140px; height: 60px; padding: 14px 24px; }
	.main-page .main-indicator { display: none; }

	.main-page .section-vision,
	.main-page .section-board,
	.main-page .section-service { padding: 80px 5%; }
	.main-page .vision-title,
	.main-page .board-title { font-size: 32px; }
	.main-page .vision-desc,
	.main-page .vision-feat .feat-desc { font-size: 18px; }
	.main-page .vision-feat .feat-title { font-size: 20px; }

	.main-page .board-list { grid-template-columns: repeat(2, 1fr); }
	.main-page .board-item .board-card { height: 220px; }

	.main-page .service-grid { grid-template-columns: 1fr; }
	.main-page .service-title { font-size: 26px; }
	.main-page .service-desc { font-size: 18px; }
}

@media (max-width: 640px) {
	.main-page .section-hero { padding: 130px 20px 60px; min-height: 400px;}
	.main-page .tag-badge { font-size: 14px; padding: 10px 16px; gap: 12px; }
	.main-page .hero-title { font-size: 32px; }
	.main-page .hero-actions { flex-direction: column; align-items: stretch; gap: 14px; width: 100%; }
	.main-page .btn-cta { width: 100%; font-size: 18px; min-width: 0; height: 54px; padding: 12px 20px; border-radius: 60px; }

	.main-page .section-vision,
	.main-page .section-board,
	.main-page .section-service { padding: 60px 20px; }
	.main-page .vision-title,
	.main-page .board-title { font-size: 26px; }

	.main-page .board-list { grid-template-columns: 1fr; gap: 16px; }
	.main-page .board-item .board-card { height: 200px; }
	.main-page .board-pagination { gap: 8px; }
	.main-page .board-pagination .pg-num { font-size: 20px; width: 32px; height: 32px; }

	.main-page .service-card { padding: 30px 20px; }
	.main-page .service-item a { height: auto; min-height: 180px; padding: 24px; }
}
