@charset "utf-8";

/* 기본 컨테이너 초기화 */
.history_table {
	position: relative;
	padding: 20px 0;
	list-style: none;
}

/* 중앙 타임라인 선 */
.history_table::before {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 2px;
	background-color: #e0e0e0;
	transform: translateX(-50%);
}

/* 각 연혁 아이템(li) 기본 스타일 */
.history_table li {
	position: relative;
	width: 50%;
	padding: 10px 40px;
	box-sizing: border-box;
    margin-bottom: 30px; /* 아이템 간의 수직 간격 */
}

/* 홀수번째 아이템 (왼쪽) */
.history_table li:nth-child(odd) {
	left: 0;
	text-align: right; /* 내용 오른쪽 정렬 */
}

/* 짝수번째 아이템 (오른쪽) */
.history_table li:nth-child(even) {
	left: 50%;
	text-align: left; /* 내용 왼쪽 정렬 */
}

/* 타임라인 위의 원형 점 */
.history_table li::after {
	content: '';
	position: absolute;
	width: 16px;
	height: 16px;
	top: 15px;
	border-radius: 50%;
	background-color: white;
	border: 3px solid #30b5b0;
	z-index: 1;
}

/* 홀수번째(왼쪽) 아이템의 원형 점 위치 */
.history_table li:nth-child(odd)::after {
	right: -8px;
}

/* 짝수번째(오른쪽) 아이템의 원형 점 위치 */
.history_table li:nth-child(even)::after {
	left: -8px;
}


.con_wrap {
	padding: 15px 20px;
	background-color: #f9f9f9;
	border: 1px solid #ddd;
	border-radius: 6px;
	position: relative;
}

/* 꼬리표 (화살표 모양) */
.con_wrap::before {
	content: '';
	position: absolute;
	top: 15px;
	width: 0;
	height: 0;
	border: 10px solid transparent;
}

/* 홀수번째(왼쪽) 아이템의 꼬리표 */
.history_table li:nth-child(odd) .con_wrap::before {
	right: -20px;
	border-left-color: #ddd;
}
.history_table li:nth-child(odd) .con_wrap::after {
    content: '';
    position: absolute;
    top: 16px;
    right: -18px;
    border: 9px solid transparent;
    border-left-color: #f9f9f9;
}


/* 짝수번째(오른쪽) 아이템의 꼬리표 */
.history_table li:nth-child(even) .con_wrap::before {
	left: -20px;
	border-right-color: #ddd;
}
.history_table li:nth-child(even) .con_wrap::after {
    content: '';
    position: absolute;
    top: 16px;
    left: -18px;
    border: 9px solid transparent;
    border-right-color: #f9f9f9;
}


.year {
	font-size: 25px;
	font-weight: bold;
	color: #30b5b0;
    margin-bottom: 10px;
}
.history_table li:nth-child(even) .year{
    color: #3091b5;
}


.month {
	font-weight: bold;
	margin-right: 10px;
	display: inline-block;
}

.his_con {
	display: inline;
}

/* 게시판 카테고리 (기존 스타일 유지) */
#bo_cate #bo_cate_ul li{width:25% !important}
#bo_cate{display:block !important}


/* 반응형 (모바일) */
@media all and (max-width:768px){
	.history_table::before {
		left: 10px; /* 중앙선 왼쪽으로 이동 */
	}

	.history_table li {
		width: 100%;
		padding-left: 50px; /* 내용이 선 오른쪽에 오도록 패딩 조정 */
		padding-right: 15px;
		text-align: left !important;; /* 모든 텍스트 왼쪽 정렬 */
	}

	.history_table li:nth-child(even) {
		left: 0; /* 오른쪽 배치 취소 */
	}

	.history_table li::after {
		left: 2px; /* 원형 점 위치 고정 */
	}
    /* 홀수/짝수 구분 없이 점 위치 동일하게 */
	.history_table li:nth-child(odd)::after,
	.history_table li:nth-child(even)::after {
		left: 2px;
	}

	.con_wrap::before {
		left: -20px;
		border-right-color: #ddd;
        border-left-color: transparent;
	}
    .con_wrap::after {
        left: -18px;
        border: 9px solid transparent;
        border-right-color: #f9f9f9;
    }

    /* 홀수번째 아이템 꼬리표도 왼쪽으로 */
    .history_table li:nth-child(odd) .con_wrap::before {
        right: auto;
        left: -20px;
        border-left-color: transparent;
	    border-right-color: #ddd;
    }
    .history_table li:nth-child(odd) .con_wrap::after {
        right: auto;
        left: -18px;
        border-left-color: transparent;
	    border-right-color: #f9f9f9;
    }
}

@media all and (max-width:520px){
	#bo_cate #bo_cate_ul li{width:100% !important}
	#bo_cate #bo_cate_ul li a{border: 1px solid #d2d2d2 !important}
	#bo_cate #bo_cate_ul li:not(:last-child) a{border-bottom:0px !important}
}

/*Responsive 370, 480, 768, 834, 1024, 1440*/
@media all and (max-width: 480px){

	.img_area{flex-direction: column;}

}