@charset "utf-8";

/* ==================================================
	공통틀
================================================== */

.main-wrap {
	position: relative;
	margin: 0 auto;
	margin-top: 11rem;
	width: 100%;
	max-width: var(--px-base);
	font-family: 'NanumSquareRound';
}

.main-wrap section  {
	padding: 3.2rem 2.5rem;
	font-size: var(--rem-28);
	font-weight: var(--font-bd);
	border-radius: var(--rem-25);
	color: var(--color-white);
}



.main-wrap section p {
	font-size: var(--rem-18);
	font-weight: var(--font-md);
	line-height: 2.5rem;
	margin-top: 1.2rem;
}

.main-wrap .goto {
	display: block;
	line-height: 1.6rem;
	font-family: 'Pretendard';
	font-size: var(--rem-16);
	font-weight: var(--font-lg);
	transition: all 0.2s ease-in-out;
}

	.main-wrap .goto:hover {
		margin-left: 0.3rem;
	}

.main_grd {
	width: calc(79% - 2rem);
	height: 770px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 1fr 180px ;
	gap: 2rem;
	margin-bottom: 5rem;
}

.main_grd > section {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	border-radius: var(--rem-25);
	color: var(--color-white);
	font-weight: var(--font-bd);
	height: 100%;
}

.main_grd > section > div {
	line-height: 3.7rem;
}

.main_grd img {
	position: absolute;
	right: 1.2rem;
	bottom: 1.8rem;
}


.main_grd > section:nth-child(1) {
	position: relative;
	grid-column-start: 1;
	grid-column-end: 3;
	width: 100%;
  	height: auto;        
	background-image: var(--bg-current);
	background-size: cover;
	background-position: right;
	font-size: var(--rem-60);
	font-weight: var(--font-bd);
	line-height: 8rem;
	text-shadow: 0 0 0.7rem #00000066;
	display: inline-block;
	vertical-align: text-bottom;
	overflow: hidden;
	transition: opacity 1s ease-in-out;
	opacity: 1;
}


/* ::before에 다음 이미지를 세팅해두고 opacity만 조절 */
.main_grd > section:nth-child(1)::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	inset: 0;
	background-image: var(--bg-next);
	background-size: cover;
	background-position: right;
	opacity: 0;
	transition: opacity 1s ease-in-out;
	z-index: 1;
	}

/* crossfade 클래스가 붙으면 ::before opacity→1 (새 이미지 페이드인) */
.main_grd > section:nth-child(1).crossfade::before {
	opacity: 1;
}


/*h2 애니메이션*/
@keyframes floatText {
	0%, 100%   { transform: translateY(0); }
	50%        { transform: translateY(-4px); }
}


.main_grd > section:nth-child(1) h2 {
	z-index: 2;
	position: absolute;
	bottom: 6rem;
	left: 4.5rem;
	padding-top: var(--rem-40);
    padding-left: var(--spacing);
    font-size: var(--rem-50);
    font-weight: var(--font-bd);
    line-height: 1.25;
    transition-delay: 0.3s;
    background: url("../images/icon/visual_icon.png") top no-repeat;
    background-position-x: var(--spacing);
	animation: floatText 5s ease-in-out infinite;
	transform-origin: center;
}



.main_grd > section:nth-child(2) {
	position: relative;
	padding: unset;
}

.main_grd > section:nth-child(2) > div {
	border-radius: var(--rem-25);
	background-color: #3883C9;
	width: 42.72%;
	height: 100%;
	padding: 3.5rem 2.5rem;
}



.main_grd > section:nth-child(2) > img {
	display: block;
	position: absolute;
	top: 0px;
	right: 0;
	width: 59%;
	height: 100%;
	object-position: center;
	object-fit: cover;
	border: 3px solid var(--color-white);
	border-radius: 2.5rem;
}

.main_grd > section:nth-child(3) {
	background-color: #8597D3;
	padding-bottom: 2.6rem;
}

.main_grd > section:nth-child(3) span {
	display: inline;
}


.main_grd > section:nth-child(3) a {
	border: 1px solid var(--color-white);
	border-radius: 2rem;
	padding: 1rem 1.5rem 1rem 2rem;
	line-height: 1.6rem;
	font-size: var(--rem-17);
	font-weight: var(--font-sb);
	margin-right: 3rem;
	transition: all 0.4s ease-in-out;
}

.main_grd > section:nth-child(3) a:hover {
	background-color: var(--color-white);
	color: #8597D3;
}



.main_right {
	position: absolute;
	top: 0;
	right: 0;
	width: 21%;
	height: 770px;
	display: grid;
	grid-template-rows: 1fr 1fr 180px;
	gap: 2rem;
	margin-bottom: 5rem;

}

.main_right > section {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	height: 100%;
	overflow: hidden;
}

.main_right .icon_right {
	position: absolute;
	right: 1.2rem;
	bottom: 1.8rem;
	height: 10rem;
}

.main_right .icon_right img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: right bottom;
}

.main_right p {
	/* max-width: 75%; */
	z-index: 2;
}

.main_right > section:nth-child(1) {
	background-color: #63C5DB;
}

.main_right > section:nth-child(1) span {
	display: block;
}

.main_right > section:nth-child(2) {
	margin-bottom: 1rem;
	background-color: #2690C5;
}

.main_right > section:nth-child(2) span {
	display: block;
}

.main_right > section:nth-child(3) {
	background-color: #79B1F2;
}


.main_right > section:nth-child(3) span {
	display: block;
}

.main_right > section:nth-child(2) .icon_right{
	display: flex;
	align-items: flex-end;
	gap: 1rem;
}

.main_right > section:nth-child(2) .callnum {
	font-size: var(--rem-55);
	letter-spacing: -0.5rem;
	margin-bottom: 1rem;
	color: #ffba65;
}


.main_board {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 2rem;
	margin-bottom: 3.6rem;
	/* padding: 0 2rem; */
}

.main_board > div {
	background: var(--color-white);
	border-radius: var(--rem-15);
	box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.1);
	padding: 2rem;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.main_board > div:hover {
	transform: translateY(-0.5rem);
	box-shadow: 0 0.8rem 2.4rem rgba(0, 0, 0, 0.15);
}

.board_nav {
	align-items: center;
	padding-bottom: 1rem;
}

.board_nav > div {
	gap: 0.5rem;
}

.board_nav img{
	width: 100%;
	cursor:pointer;
	object-fit: contain;
	object-position: center;
}

.board_nav h3 {
	font-size: var(--rem-24);
	font-weight: var(--font-bd);
	color: var(--color-black);
	margin: 0;
	padding: 0;
	font-family: 'NanumSquareRound';
}

.board_nav a {
	display: block;
    width: 4rem;
    height: 100%;	
	transition: opacity 0.3s ease;
}

.board_nav a:hover {
	opacity: 0.7;
}

.board_nav  .select {
	color: var(--color-white);
	border: 1px solid var(--color-blue1);
	/*font-size: var(--rem-22);*/
	font-weight: var(--font-sb);
	background-color: var(--color-blue1);
}

.board_list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	max-height: 100%;
}

.board_list > div {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	border-radius: 1rem;
	background-color: var(--color-gray1);
	border: 1px solid var(--color-gray2);
	padding: 1.5rem;
	font-weight: var(--font-md);
	line-height: 2.6rem;
	transition: all 0.3s ease;
}

.board_list > div:hover {
	background-color: #f8f9fa;
	transform: translateY(-2px);
	box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.1);
}

.board_list > div > a {
  display: -webkit-box;            /* WebKit 전용 박스 레이아웃 */
  -webkit-box-orient: vertical;    /* 세로 방향으로 쌓기 */
  -webkit-line-clamp: 2;           /* 최대 2줄까지 표시 */
  overflow: hidden;                /* 넘치는 텍스트 숨김 */
  text-overflow: ellipsis;         /* 말줄임표 */
  white-space: normal;             /* 줄바꿈 허용 */
  word-break: break-word;
  color: var(--color-black);
  text-decoration: none;
  font-size: var(--rem-16);
  font-weight: var(--font-lg);
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.board_list > div > a:hover {
  color: var(--color-primary);
}

.board_list p {
	font-size: var(--rem-14);
	font-weight: var(--font-rg);
	color: var(--grayText01);
	margin: 0;
	text-align: right;
	white-space: nowrap;
	margin-left: 2rem;
}


.area-box {
	width: 100%;
	max-width: var(--px-base);
	margin: 0px auto;
}

.fullpage-html {
	overflow: hidden;
	height: 100%;
}

.fullpage-html #wrap {
	position: static;
}

/* 모바일CSS */
@media screen and (max-width:1441px) {

	.main_grd {
		width: calc(100%);
		margin-bottom: 2rem;
	}

	.main_grd > section:nth-child(3) div{
		max-width: calc(100% - 160px);
	}

	.main_grd > section:nth-child(2) > div {
		width: 52%;
		align-items:;
	}


	.main_grd > section:nth-child(2) > img {
		width: 50%;
	}

	.main_right {
		position: unset;
		width: 100%;
		height: 180px;
		display: flex;
		justify-content: space-between;
		gap: 2rem;
		margin-bottom: 5rem;
	}

	.main_right > section {
		width: 33%;
	}

	.main_right > section:nth-child(1) span {
		display: inline;
	}

	.main_right > section:nth-child(2) span {
		display: inline;
	}


	.main_right .icon_right {
		bottom: 1rem;
		height: 8rem;
	}

	.main_board {
		grid-template-columns: repeat(3, 1fr);
		gap: 2rem;
		/* padding: 0 1rem; */
	}

	.main_board > div {
		width: 100%;
		margin-bottom: 2rem;
		padding: 1.5rem;
	}
}

@media screen and (max-width:1200px) {

	.main_grd > section:nth-child(2) span {
		display: block;
	}

	/* .main_right > section:nth-child(1) span {
		display: block;
	} */
}


@media screen and (max-width:1070px) {

	.main-wrap {
		margin-top: var(--sub-menu-height);
	}
	

	.main_grd > section:nth-child(3) .hide_txt {
		display: none;
	}

	.main_grd > section:nth-child(3) a {
		margin-right: 0;
	}

	.main_grd > section:nth-child(3) .happy_child > span {
		display: block;
	}

	.main_right p {
		max-width: unset;
	}

}


@media screen and (max-width:900px) {

	.main_grd > section:nth-child(3) {
		padding-bottom: 1.5rem;
	}

	.main_grd > section:nth-child(3) div a {

		display: flex;
		justify-content: space-between;
		width: 18rem;
		max-width: unset;
		margin-bottom: 0.5rem;
	}

	.main_board {
		grid-template-columns: repeat(2, 1fr);
		gap: 1.5rem;
		/* padding: 0 1rem; */
	}
}

@media screen and (max-width:800px) {

	.main-wrap section  {
		padding: 2rem 2.5rem;
		font-size: var(--rem-22);
		font-weight: var(--font-sb);
		border-radius: var(--rem-25);
		color: var(--color-white);
	}

	.main-wrap section > div  {
		width: 100%;
		word-break: keep-all;
		line-height: 3.2rem;
		margin-bottom: 1rem;
	}

	.main-wrap section div span  {
		display: block;
	}

	.main-wrap section p {
		display: none;
	}

	.main_grd > section:nth-child(2) span {
		display: inline;
	}

	.main_grd > section:nth-child(3){
		padding-bottom: 2.6rem;
	}

	.main_grd > section:nth-child(3) .happy_child > span {
		display: inline;
	}

	.main_grd > section:nth-child(3) div a {

		display: unset;
		margin-bottom: unset;
	}

	.happy_child {
		padding-bottom: 1rem;
	}

	.main_right > section:nth-child(2) span {
		display: inline;
	}

	.main_right .icon_right {
		height: 7rem;
	}

	.main_right .icon_right img {
		object-position: center bottom;
	}
	
	.main-wrap .goto {
		display: block;
		line-height: unset;
		font-size: var(--rem-18);
		font-weight: var(--font-lg);
	}


	.main_grd {
		/* display: block; */
		height: unset;
		grid-template-columns: repeat(1, 1fr);
		grid-template-rows: 1fr ;
		gap: 1.4rem;
		margin-bottom: 1.4rem;
	}

	.main_grd span {
		font-size: var(--rem-18);
	}

	.main_grd > section:nth-child(1) {
		grid-column-start: 1;
		grid-column-end: 2;
		height: 240px;
	}

	.main_grd > section:nth-child(1) h2 {
		left: 1rem;
		font-size: var(--rem-30);
		background-size: 30%;
	}

	.main_grd > section:nth-child(2) > div {
		width: 52.5%;
		padding: 2rem 2.5rem;
	}

	.main_grd > section:nth-child(2) > div > a {
		margin-top: 1rem;
	}

	.main_grd > section:nth-child(2) > img {
		border-width: 2px;
	}

	.main_right > section:nth-child(2) .callnum {
		font-size: var(--rem-50);
		margin-bottom: 0.5rem;
	}

	.main_grd > section:nth-child(3) div {
		max-width: unset;
		margin-bottom: 1rem;
	}

	.main_grd > section:nth-child(3) a {
		font-size: var(--rem-18);
	}

	.main_grd > section:nth-child(3) > img {
		right: 1rem;
		top: 50%;
		transform: translateY(-50%);
		width: 90px;
		height: auto;
	}

	.main_right {
		gap: 1rem;
		max-height: 15rem;
	}

	.main_right div {
		text-align: center;
		white-space: nowrap;
	}

	.main_right > section:nth-child(3) span {
		display: inline;
	}

	.main_right .icon_right {
		justify-content: center;
		left: 50%;
		transform: translateX(-50%);
		width: fit-content;
	}

	.main_right > section:nth-child(2) .icon_right{
		justify-content: center;
	}

	.main_right .goto {
		display: none;
	}

	.main_board {
		grid-template-columns: 1fr;
		gap: 1rem;
		padding: unset;
	}

	.main_board > div {
        margin-bottom: 2rem;
    }
	

	.board_nav > div {
		padding-bottom: 0;
	}

	.board_list{
		height: auto;
	}

	.board_list > div {
		flex-direction: row;
	}

	.board_list div:nth-child(3), .board_list div:nth-child(4)  {
		display: none;
	}

	.area-box {
		width: 92%;
	}


	.main_right section {
		padding: 2rem 1rem;
	}

}

@media screen and (max-width:450px) {

	.main_grd > section:nth-child(2) span {
		display: block;
	}

	.main_grd > section:nth-child(3) span {
		display: inline;
	}

	.main_right > section:nth-child(2) .callnum {
		font-size: var(--rem-40);
	}
	
	.hide_txt{
		display: none !important;
	}

	.main_right .icon_right {
		height: 5rem;
	}

	.board_nav > div > a {
		height: var(--rem-44);
		line-height: var(--rem-44);
		font-size: var(--rem-16);
	}
	.board_nav > div > img {
		width: var(--rem-44);
	}
}

@media screen and (max-width:360px) {

	.happy_child {
		font-size: 90%;
	}

	.main_grd > section:nth-child(3) a {
		font-size: var(--rem-16);
	}

	.main_grd > section:nth-child(3) a span {
		font-size: 92%;
	}

	.main_right > section{
		font-size: var(--rem-20);
	}

	.main_right > section:nth-child(2) .callnum {
		font-size: var(--rem-32);
	}
}

@media screen and (max-width:360px) {

	.main_grd > section:nth-child(3) a {
		font-size: var(--rem-14);
	}

	.main_right > section{
		font-size: var(--rem-19);
	}	
}


/* 
    -ms-grid-columns: (1fr) [3];
    grid-template-columns: repeat(3, 1fr); */