@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Noto Sans KR', sans-serif;
  line-height: 1.7;
  background: linear-gradient(180deg, #f3f6ff 0%, #e8ebf7 100%);
  color: #333;
  padding: 1.5rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.25s ease;
}

a:hover {
  color: #E3F52A;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 8px;
}

/* 카드 전체 */
.card {
	margin: 1.6rem auto;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 425px;
	background-color: #FFF;
	border-radius: 10px;
	box-shadow: rgba(20, 105, 201, 0.09) 0px 4px 14px 0px, rgba(20, 105, 201, 0.12) 0px 2px 4px 0px;
	padding: .75rem;
}

/* 헤더 이미지 */
.card-image {
  background-image: url('./icon/top-title.jpg');
  background-size: cover;
  background-position: center 25%;
  padding-bottom: 40%;
  position: relative;
}

.card-image::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.25); /* 반투명 어둡게 */
  border-radius: 8px;
  z-index: 1;
}

.card-heading {
  position: absolute;
  top: 15%;
  left: 10%;
  right: 10%;
  z-index: 2; /* overlay 위에 표시 */
  text-align: center;
  font-size: 1.9rem;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}


.card-heading small {
  display: block;
  margin-top: 0.4em;
  font-size: 0.75em;
  font-weight: 400;
  color: #e0ebff;
}

/* 본문 */
#card-form h1, #card-form h2{
	font-size : 1.3em;
	color : #727FA7;
	margin : 1.8em 0 1.2em;
}

/* 뉴스 리스트 */
.mainli {
  padding: 12px 10px;
  border-radius: 10px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.mainli:hover {
  background-color: #f5f8ff;
  transform: translateX(4px);
}

.mainli a {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  color: #222;
}

.mainli a:hover {
  color: #396CBB;
}

.imgbox {
  flex: 0 0 32%;
  height: 5.5em;
  overflow: hidden;
  border-radius: 10px;
}

.imgbox img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.mainli:hover .imgbox img {
  transform: scale(1.08);
}

.leftbox {
  flex: 1;
}

.mainpage {
  font-size: 1em;
  font-weight: 600;
  margin-bottom: 0.3em;
  line-height: 1.4;
}

.origin {
  font-size: 0.75em;
  color: #7d8597;
}

/* 푸터 */
.card-info {
  text-align: center;
  font-size: 0.85rem;
  color: #8597a3;
  padding: 1.2rem 0 1.5rem;
}

.card-info a {
  color: #396CBB;
  font-weight: 600;
  transition: color 0.2s ease;
}

.card-info a:hover {
  color: #6ABFEA;
}

/* 공유 아이콘 */
#dock-container {
  text-align: center;
  padding: 25px 0 10px;
}

#dock-container span {
  display: inline-block;
  margin: 0 8px;
}

#dock-container span img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#dock-container span:hover img {
  transform: scale(1.15);
  box-shadow: 0 5px 10px rgba(0,0,0,0.25);
}

/* 반응형 */
@media (max-width: 480px) {
  .card-heading {
    font-size: 1.5rem;
  }

  .mainpage {
    font-size: 0.95em;
  }

  .imgbox {
    flex-basis: 35%;
  }
}

/* main UL*/
 
h3.mainpage {
  font-size : 1em;
}
 
div.mainli {
  padding: 10px;
}
 
div.mainli:hover {
  background: #eee;
  cursor: pointer;
}

div.mainli a{
	text-decoration : none;
	color : #296572;
	display : flex;
	flex-direction : row;
	align-items: flex-start;
}

 div.mainli a .imgbox{
	 flex-basis: 30%;
	 height : 5em;
	 overflow : hidden;
	 padding-right : 10px;
 }
 
 .imgbox img{
	 width : 100%;
 }
 
  div.mainli a .leftbox{
	 flex-basis: 70%;
 }
 
div.mainli a:hover{
	color : #6ABFEA;
}

div.mainli a p{
	font-size : 0.7em;
	color : grey;
}

/* ul List */
ul#list {
  margin: 0;
  padding: 0;
  list-style: none;
  background: #fdfdfd;
  border-radius: 12px;
}

li.five {
  position: relative;
  padding: 8px 10px 8px 28px; /* 기존보다 전체적으로 축소 */
  line-height: 1.45;
  transition: background 0.25s ease;
}

li.five:before {
  content: '\2605';
  position: absolute;
  left: 0;
  top: 7px; 
  font-size: 16px; /* 아이콘도 크기 약간 줄임 */
  color: #e8c96a;
  opacity: 0.85;
}

li.five a {
  text-decoration: none;
  color: #4A65A1; /* 파스텔 네이비톤 */
  font-weight: 500;
  transition: color 0.25s ease;
}

li.five:hover {
  background: #f5f7ff; /* 파스텔 블루 하이라이트 */
}

li.five a:hover {
  color: #7b9cff; /* 밝은 파스텔 블루 */
}


/* 이미지 링크 CSS */
.content {
  position: relative;
  width : auto;
  margin: auto;
  overflow: hidden;
}

.content .content-overlay {
  background: rgba(0,0,0,0.7);
  position: absolute;
  height: 99%;
  width: auto;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
  opacity: 0;
  -webkit-transition: all 0.4s ease-in-out 0s;
  -moz-transition: all 0.4s ease-in-out 0s;
  transition: all 0.4s ease-in-out 0s;
}

.content:hover .content-overlay{
  opacity: 1;
}

.oneimgbox{
	width: 100%;
	overflow : hidden;
	height : 25vh;
}

.content-image{
  width: 100%;
}

.content-details {
  position: absolute;
  text-align: center;
  padding-left: 1em;
  padding-right: 1em;
  width: 100%;
  top: 50%;
  left: 50%;
  opacity: 0;
  -webkit-transform: translate(-50%, -50%);
  -moz-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  -webkit-transition: all 0.3s ease-in-out 0s;
  -moz-transition: all 0.3s ease-in-out 0s;
  transition: all 0.3s ease-in-out 0s;
}

.content:hover .content-details{
  top: 50%;
  left: 50%;
  opacity: 1;
}

.content-details h3{
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.15em;
  margin-bottom: 0.5em;
  text-transform: uppercase;
}

.content-details p{
  color: #fff;
  font-size: 0.8em;
}

.fadeIn-bottom{
  top: 80%;
}

/* 더보기 버튼 */
.more-btn-wrap {
    margin: 25px 0 10px;
}

.more-btn {
    display: block;
    width: 100%;
    padding: 14px 18px;
    text-align: center;

    background: #a7d8ff;          /* 파스텔 하늘색 */
    color: #0b3b63;               /* 텍스트는 차분한 딥블루 */
    
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;

    transition: all 0.25s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

/* Hover 상태 */
.more-btn:hover {
    background: #97c9f0;          /* 조금 더 진한 파스텔톤 */
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* Sliding Banner */
.customBannerArea {
	position: relative;
	overflow: hidden;
	margin: 20px auto;
	padding: 0 20px;
	text-align: center;
}

.customBox {
	position: relative;
	overflow: hidden;
	margin-bottom: 10px;
}

.customBox .backward {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	object-fit: cover;
}

.customBanner {
	position: absolute;
	top: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
}

.customBanner img.cover {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	opacity: 0.93;
}

.customBanner.active img {
	box-shadow: none !important;
}

.customBanner.active a {
	height: 100% !important;
}

.customBanner .arrow {
	position: absolute;
	top: calc(50% - 15px);
	background-color: #2196f3;
	width: 24px;
	height: 24px;
	border-radius: 24px;
}

.banner-bubble {
	position: absolute;
	top: 10px;
	background-color: #bd0000;
	height: 24px;
	width: 77px;
	color: white !important;
	font-size: 0.75em !important;
	border-radius: 5px;
	padding-top: 2px;
	line-height: 1.2rem !important;
}

.sliding-banner-300 .banner-bubble:after, 
.sliding-banner-150 .banner-bubble:after, 
.sliding-banner-250 .banner-bubble:after {
	content: "";
	position: absolute;
	bottom: 0;
	width: 0;
	height: 0;
	border: 10px solid transparent;
	border-top-color: #bd0000;
	border-bottom: 0;
	border-left: 0;
	margin-left: -2.5px;
	margin-bottom: -5px;
}

.sliding-banner-280 .banner-bubble:after {
	content: "";
	position: absolute;
	bottom: 0;
	width: 0;
	height: 0;
	border: 10px solid transparent;
	border-top-color: #bd0000;
	border-bottom: 0;
	border-right: 0;
	margin-left: -45.5px;
	margin-bottom: -5px;
}

.customBanner.active {
	animation: customMv1 1.2s ease-out infinite;
}

@keyframes customMv1 {
	0% { transform: translate3d(-7%, 0, 0); }
	20% { transform: translate3d(-10%, 0, 0); }
	40% { transform: translate3d(-5%, 0, 0); }
	60% { transform: translate3d(-10%, 0, 0); }
	80% { transform: translate3d(-5%, 0, 0); }
	100% { transform: translate3d(-7%, 0, 0); }
}

@media (min-width: 1200px) {
	.customBannerArea {
		background-color: #ffffffc9;
		box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
		padding: 0px;
		z-index: 1000;
		text-align: center;
	}
}