@charset "utf-8";

@font-face {
    font-family: 'SBAggroB';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2108@1.1/SBAggroB.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'WandohopeR';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_20-10@1.0/WandohopeR.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* 비주얼 영역 */
#visual {
	padding: 0;
}
.slider-container {
	position: relative;
	width: 100%;
	height: auto;
	overflow: hidden;
	margin: 0 auto;
}
.slider-wrapper {
	display: flex;
	width: 100%;
	height: 100%;
	transition: transform 0.5s ease-in-out;
	list-style: none; /* ul 기본 스타일 제거 */
	padding: 0;
	margin: 0;
}
.slider-wrapper li {
	position: relative; /* 텍스트 오버레이를 위해 relative 추가 */
	width: 100%;
	height: 100%;
	flex-shrink: 0;
}
/* picture와 img 태그 모두에 스타일 적용 */
.slider-wrapper picture,
.slider-wrapper img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	flex-shrink: 0;
}

/* 슬라이드 이미지 위 텍스트 오버레이 */
.slider-text-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column; /* 텍스트를 세로로 정렬 */
	justify-content: center;
	align-items: center;
	color: #fff;
	text-align: center;
	z-index: 5; /* 버튼과 점 위에 오도록 설정 */
}
.slider-text-overlay .main-text {
	font-family: 'WandohopeR';
	font-size: 5rem;
	line-height: normal;
	font-weight: bold;
	margin-bottom: 30px;
	color: #faf8d1;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* 텍스트 가독성을 위한 그림자 */
}
.slider-text-overlay .sub-text {
	font-size: 1.5rem;
	font-weight: normal;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* 텍스트 가독성을 위한 그림자 */
}
.slider-text-overlay .text_htn {
	padding: 20px 40px;
	display: flex;
	background-color: rgba(0, 0, 0, 0.5);
	border-radius:5px;
}

/* 이하 CSS는 기존과 동일합니다. */
.prev-button,
.next-button {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	color: #aeaeae;
	border: none;
	background: none;
	cursor: pointer;
	font-size: 3.125rem;
	z-index: 10;
}
.prev-button {
	left: 10px;
}
.next-button {
	right: 10px;
}
.dots-container {
	position: absolute;
	bottom: 20px;
	width: 100%;
	text-align: center;
	z-index: 10;
}
.dot {
	display: inline-block;
	width: 12px;
	height: 12px;
	margin: 0 5px;
	background-color: rgba(255, 255, 255, 0.5);
	border-radius: 50%;
	cursor: pointer;
	transition: background-color 0.3s ease;
}
.dot.active {
	background-color: rgb(255, 255, 255);
}
@media (max-width: 1200px) {
	#visual {
		padding: 80px 0 0 0;
	}
}
@media (max-width: 768px) {
	.slider-container {
		height: auto;
	}
	.prev-button,
	.next-button {
		padding: 8px 12px;
		font-size: 1.25rem;
	}
	.dot {
		width: 10px;
		height: 10px;
	}
	.slider-text-overlay .main-text {
		font-size: 2.25rem;
	}
	.slider-text-overlay .sub-text {
		font-size: 1.2rem;
	}
}
@media (max-width: 480px) {
	.slider-container {
		height: auto;
	}
}


/* 컨테이너 영역 */
#container {
	width: 100%;
	margin: 0 auto;
}

/* 컨테이너 영역 미디어 쿼리 */
@media screen and (max-width: 1200px) {
	#container {
		width: 100%;
		margin: 0 auto;
		height: auto;
		overflow-y: initial;
	}
}


/* 법성문화진흥원 출판자료 */
.cont1 {
	display: flex;
	justify-content: center;
	padding: 4.375rem 0;
	background: url(/images/main/cont1_bg.gif);
	background-size: cover;
	background-position: center;
}

.cont1_wp {
	width: 1200px;
	margin: 0 auto;
}

.cont1_wp h2 {
	text-align: center;
	margin-bottom: 2rem;
	font-family: 'SBAggroB';
	font-size: 1.875rem;
	color: #333;
}
.cont1_wp h2 img {
	margin-bottom: 20px;
}

.cont1_book ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 20px; /* 이미지 간 간격 */
	list-style: none; /* 리스트 스타일 제거 */
	padding: 0;
	margin: 0;
}

.cont1_book li {
	/* 각 아이템의 기본 너비 (데스크톱) */
	/* 5개 아이템이 한 줄에 20px의 간격을 가지고 정렬되도록 calc() 함수 사용 */
	width: calc(20% - 16px);
	flex-shrink: 0;
}

/* === 책 호버 효과 === */
.book_wrap {
	position: relative;
	width: 100%;
	height: auto;
	cursor: pointer;
	overflow: hidden;
	border-radius: 10px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	text-decoration: none;
	display: block;
}

.book_wrap img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.book_overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	display: flex;
	justify-content: center;
	align-items: center;
	opacity: 0;
	transition: opacity 0.3s ease;
	overflow: hidden;
}

.book_text {
	font-family: 'SBAggroB';
	color: #fff;
	font-size: 1.4375rem;
	text-align: center;
	white-space: normal;
	padding: 10px;
	box-sizing:border-box;
	word-break:keep-all;
}

.book_wrap:hover .book_overlay {
	opacity: 1;
}

.book_wrap:hover img {
	transform: scale(1.1);
}

/* 법성문화진흥원 출판자료 미디어쿼리 */
@media (max-width: 1200px) {
	.cont1_wp {
		width: 95%;
	}
	.cont1_book ul {
		gap: 14px;
	}
	.cont1_book li {
		width: calc(33.333% - 14px); /* 3개씩 배열 */
	}
}

@media (max-width: 768px) {
	.cont1 {
		padding: 2rem 0 !important;
		background-size: auto 100%;
	}
	.cont1_book ul {
		gap: 10px;
	}
	.cont1_book li {
		width: calc(50% - 10px); /* 2개씩 배열 */
		padding: .3rem;
	}
	.book_text {
		font-size: 1.2em; /* 폰트 크기 축소 */
	}
	.cont1_wp h2 {
		font-size: 1.25rem;
		margin-bottom: 1rem;
	}
	.cont1_wp h2 img {
		width:15%;
		margin-bottom: 10px;
	}
}


/* 갤러리, 공지 영역 */
.cont2 {
	display: flex;
	padding: 4.375rem 0;
}

.cont2_wp {
	width: 1200px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
}

/* 갤러리, 공지 영역 미디어쿼리 */
@media (max-width: 1200px) {
	.cont2 {
		display: flex;
		padding: 2rem 0;
	}

	.cont2_wp {
		width: 95%;
		display: flex;
		flex-direction: column;
	}
}


/* 갤러리 */
.main_gallery {
	width:60%;
	background: #f6f6f8;
	border-radius:8px;
	padding: 1.875rem;
}

.main_gallery h2 {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-family: 'SBAggroB';
	font-size: 1.5625rem;
	color: #333;
	margin-bottom: 1.25rem;
}

/* 갤러리 이미지들을 감싸는 컨테이너 */
.gallery-items {
	display: flex;
	gap: 20px;
}

.gallery-items a {
	flex: 1;
}

.gallery-item {
	overflow: hidden;
	text-align: center;
	transition: transform 0.3s ease;
}

.gallery-item:hover {
	transform: translateY(-5px);
}

.gallery-item img {
	width: 100%; /* 이미지 높이를 고정하고 object-fit을 사용하여 일정한 크기로 표시 */
	height: 150px; /* 원하는 높이로 조정 가능 */
	object-fit: cover;
	display: block;
	border-radius:10px;
	border: 1px solid #ccc;
}

.gallery-item-caption {
	padding: 15px 10px 0;
	font-size: 1.125rem;
	color: #000;
	font-weight:400;
}

/* 갤러리 미디어쿼리 */
@media (max-width: 768px) {
	.main_gallery {
		width:100%;
		background: #FFF;
		border-radius:8px;
		padding: 0;
	}
	.main_gallery h2 {
		font-size: 1.25rem;
		margin-bottom: 1rem;
	}
	.gallery-items {
		flex-direction: column;
	}
	.gallery-item {
		margin-bottom: 10px;
	}
	.gallery-item img {
		height: 230px; /* 원하는 높이로 조정 가능 */
	}
	.gallery-item-caption {
		padding: 5px 10px 0;
		font-size: 1.125rem;
		color: #000;
		font-weight:400;
	}
}


/* 공지사항 */
.main_notice {
	width:36%;
}
.notice-container {
	width: 100%;
	margin: 0 auto;
	padding: 30px;
	background-color: #f6f6f7;
	border-radius: 10px;
}

.notice-container h2 {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-family: 'SBAggroB';
	font-size: 1.5625rem;
	color: #333;
}

.plus-icon {
	font-size: 1.5rem;
	color: #495057;
}

/* === 공지사항 목록 스타일 === */
.notice-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.notice-list li {
	padding: 13px 0;
	border-bottom: 1px solid #ddd;
}

.notice-list li:last-child {
	border-bottom: none;
}

.notice-list a {
	text-decoration: none;
	color: #000;
	display: block;
	font-size: 1.125rem;
	transition: color 0.3s ease;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.notice-list a:hover {
	color: #007bff;
}

/* === 반응형 디자인 === */
@media (max-width: 768px) {
	.main_notice {
		width:100%;
	}
	.notice-container {
		margin: 20px auto;
		padding: 0;
		background: #FFF;
		border-radius: 0;
	}
	.notice-header h2 {
		font-size: 1.5rem;
	}
}


/* 법성포와함께 - 슬라이드 배너 */
.cont3 {
	display: flex;
	padding: 0;
	background: #f6f6f7;
}

.cont3_wp {
	width: 1200px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
}

.partner-container {
	width: 100%;
	max-width: 1200px;
	margin: 40px auto;
	padding: 0;
}

/* 헤더 및 탭 메뉴 */
.partner-header {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
}
.partner-header h2 {
    font-family: 'SBAggroB';
    font-size: 1.5625rem;
    color: #333;
}
.partner-tabs {
	display: flex;
	gap: 0;
}

/* 슬라이더 컨트롤 버튼 */
.slider-controls {
	display: flex;
	gap: 0;
}
.slider-controls button {
	background-color: #FFF;
	border: 1px solid #dee2e6;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background-color 0.3s;
}
#prev-button {
	border-right: none;
}
.slider-controls:first-child::button {
	background-color: #FFF;
	border-top: 1px solid #ccc;
	border-left: 1px solid #ccc;
	border-bottom: 1px solid #ccc;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background-color 0.3s;
}
.slider-controls button:hover {
	background-color: #dee2e6;
}

/* 로고 슬라이더 */
.logo-slider {
	display: flex;
	overflow: hidden;
	border-radius: 0;
	box-shadow: none;
	/* partner-container의 padding을 상쇄하여 꽉 차게 만듭니다. */
	margin-left: -10px;
	margin-right: -10px;
}
.logo-wrapper {
	display: flex;
	transition: transform 0.5s ease;
}
.logo-item {
	flex-shrink: 0;
	/* 5개씩 한 줄에 보이도록 설정 */
	width: calc(100% / 5); 
	padding: 10px;
	/* 배경색 제거 */
	background-color: transparent;
	display: flex;
	justify-content: center;
	align-items: center;
	/* border-right 제거 */
	border-right: none;
}
.logo-item:last-child {
	border-right: none;
}
.logo-item a {
	width: 100%;
}
.logo-item img {
	max-width: 100%;
	height: auto;
	border-radius:5px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 반응형 디자인 */
@media (max-width: 1200px) {
	.logo-item {
		width: calc(100% / 4); /* 4개씩 한 줄 */
	}
	.cont3 {
		display: flex;
		padding: 0;
	}

	.cont3_wp {
		width: 95%;
		display: flex;
		flex-direction: column;
	}
}
@media (max-width: 992px) {
	.logo-item {
		width: calc(100% / 3); /* 3개씩 한 줄 */
	}
}
@media (max-width: 768px) {
	.partner-container {
		padding: 10px;
	}
	.partner-header h2 {
		font-size: 1.5rem;
	}
	.logo-item {
		width: calc(100% / 2); /* 2개씩 한 줄 */
	}
	.logo-item img {
		width: 94%;
	}
}
@media (max-width: 576px) {
	.logo-item {
		width: 100%; /* 1개씩 한 줄 */
	}
}