@charset "UTF-8";

@font-face {
  font-family: 'Pretendard-Regular';
  src: url('https://fastly.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  border: 0;
}

ul,
li {
  list-style: none;
}

a {
  text-decoration: none;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0 auto;
  font-family: 'SCoreDream', "Pretendard-Regular", "Noto Sans KR", "맑은 고딕", "돋움,sans-serif";
  background-color: #ffffff;
  scroll-behavior: smooth;
}

.hidden {
  display: block;
  font-size: 0;
}

#wrap {
  width: 100%;
  height: auto;
  height: 100%;
  margin: 0 auto;
  min-height: 100vh;
  /* Viewport height를 기준으로 최소 높이 설정 */
  overflow-x: hidden;
  position: relative;
}

#header {
  width: 100%;
  height: 114px;
  background-color: #FCC2DA;
}

#header .header_fix {
  width: 1920px;
  height: 114px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  background: url(../images/m_title.png) no-repeat center;
  background-size: cover;
}

#header .header_fix .title {
  height: 50px;
}

#header .header_fix .head {
  width: 1720px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

#header .header_fix .head span {
  font-size: 46px;
  padding: 0 45px;
  color: #333333;
}

/*****************************/
/* main */
/*****************************/
.main {
  width: 100%;
  margin: 0 auto;
  max-width: 1200px;
  height: auto;
  position: relative;
  box-sizing: border-box;
}

.main .nav {
  width: 1200px;
  height: 45px;
  display: flex;
  margin: 22px 0;
}

.main .nav ul {
  display: flex;
  width: 100%;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 30px;
}

.main .nav ul li {
  flex-wrap: nowrap;
  align-content: center;
  justify-content: flex-start;
  align-items: center;
}

.main .nav ul li a {
  font-family: 'S-CoreDream-7ExtraBold';
  display: block;
  font-size: 1.2em;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  padding-bottom: 5px;
  color: #6c78a3;
  letter-spacing: -1px;
}

.main .nav ul li a:hover {
  font-weight: 900;
  color: #283C82;
  border-bottom: 2px solid #283C82;
}

.contents_container {
  width: 100%;
  margin: 0 auto;
  height: 100%;
  height: auto;
}

/* 인기 프로그램 , 최신 프로그램 공통 */
.contents_container>div {
  width: 1200px;
  height: auto;
  height: 100%;
  margin: 0 auto;
  padding: 20px 0;
}

.contents_container>div .title_container {
  line-height: 1.4;
}

.contents_container>div .title_container h3 {
  font-size: 2em;
  font-family: 600;
  color: #283C82;
}

.contents_container>div .title_container p {
  font-size: 1em;
  color: #000000;
  letter-spacing: -1px;
}

/* 프로그램 */
.contents_container .pg_container ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-column-gap: 15px;
  grid-row-gap: 15px;
  /* 추가 */
  justify-items: center;
  justify-content: center;
}

.contents_container .pg_container ul li {
  width: 100%;
  max-width: 283px;
  max-height: 337px;
  border-radius: 15px;
  border: 1px solid #A6A6A6;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  align-items: flex-start;
  position: relative;
  /* 절대 위치 요소를 위한 상대 위치 설정 */
}

.contents_container .pg_container ul li .pg_list {
  width: 100%;
  height: 100%;
  max-width: 283px;
  max-height: 337px;
  border-radius: 15px;
  overflow: hidden;
}

.contents_container .pg_container ul li .pg_list>a {
  width: 283px;
  height: 220px;
  display: block;
}

.contents_container .pg_container ul li .pg_list .thumbnail {
  width: 100%;
  height: 220px;
  border-radius: 15px 15px 0 0;
  background-color: #ffffff;
  box-sizing: border-box;
  transition: transform 0.3s ease;
}

.contents_container .pg_container ul li .pg_list a:hover .thumbnail {
  transform: scale(1.1);
}

.contents_container .pg_container ul li div .text_container {
  position: relative;
  height: 117px;
  margin: 0 auto;
  padding: 5px 10px;
  box-sizing: border-box;
  border-top: 1px solid #A6A6A6;
  background-color: #ffffff;
}

.contents_container .pg_container ul li div .text_container .pro_title {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #2F3B84;
  justify-content: space-between;
}

.contents_container .pg_container ul li div .text_container .pro_title span {
  font-size: 1.2em;
  font-weight: 600;
}

.btn_container {
  display: flex;
  align-items: center;
  position: relative;
  gap: 5px;
  z-index: 3;
  justify-content: center;
}

.btn_container .dw_btn {
  font-size: 20px;
}

.btn_container .tip_btn {
  cursor: pointer;
  font-size: 20px;
  display: block;
}

.btn_container .tip_btn img {
  width: 23px;
}

.btn_container .share_btn {
  display: block;
  font-size: 20px;
  cursor: pointer;
}

.clip {
  width: 21px;
  margin-bottom: -4px;
}

.hover {
  display: none;
  position: absolute;
  z-index: 50;
  top: 100%;
  border-radius: 4px;
  background-color: #000000;
}

.hover p {
  font-size: 0.63em;
  padding: 3px 4px;
  color: #ffffff;
  letter-spacing: -0.5px;
  text-align: center;
}

#popup1 {
  width: 135px;
  left: -90%;
}

#popup2 {
  width: 60px;
  padding: 2px;
  /* todo : 추후 다운로드 추가 시 수정 */
  /* left: 0; */
  left: -22px;
}

#popup3 {
  width: 60px;
  /* todo : 추후 다운로드 추가 시 수정 */
  /* left: 35%; */
  left: -14%;
}

.dw_btn:hover .hover {
  display: block;
}

.tip_btn:hover .hover {
  display: block;
}

.share_btn:hover .hover {
  display: block;
}

.detail {
  font-size: 0.9em;
  padding: 8px 0;
  letter-spacing: -1px;
  font-weight: 500;
}

.pro_bottom {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.color_box {
  border-radius: 5px;
  padding: 4px 5px;
  font-weight: 500;
  font-size: 0.74em;
  letter-spacing: -1px;
}

.type {
  background-color: #D3E5EF;
  margin-right: 6px;
}

.source {
  background-color: #FDECC8;
}

/* 팁 박스 팝업 */
.tip_box {
  position: absolute;
  z-index: 10;
  width: 400px;
  height: auto;
  border-radius: 18px;
  left: 50px;
  bottom: 124px;
  padding: 12px;
  background-color: #ffffff;
  border: solid 1px #d5d5d5;
  box-sizing: border-box;
  display: none;
  line-height: 1.35;
  padding-bottom: 36px;
}

/* 말풍선 삼각형 */
.tip_box:after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 169px;
  border-top: 15px solid #ffffff;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-bottom: 0px solid transparent;
}

.tip_box .tip_head {
  position: absolute;
  right: 25px;
  bottom: 13px;
  cursor: pointer;
}

.tip_box .tip_head .close_btn {
  display: block;
  font-size: 0.875em;
  color: #4062DD;
  font-weight: 600;
}

.tip_box strong {
  padding: 5px 0;
  /* padding: 10px 0; */
  display: block;
  font-size: 1em;
  margin-top: 6px;
}

.tip_box .openbook {}

.tip_box .check {
  width: 20px;
}

/* .tip_box strong:nth-child(1),
.tip_box strong:nth-child(4),
.tip_box strong:nth-child(6) {
  margin-top: 10px;
} */

.tip_box p {
  font-size: 0.72em;
  font-size: 0.875em;
  letter-spacing: -0.5px;
  /* margin-bottom: 15px; */
}

/* .tip_box strong:nth-child(2), */
.tip_box strong:nth-child(4),
.tip_box strong:nth-child(6) {
  margin-top: 20px;
}

.tip_box.on {
  display: block;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 5;
  display: none;
}


/* 하단 페이지네이션 */
.pagination {
  text-align: center;
  margin-top: 20px;
  width: 100%;
  height: 100%;
  margin: 60px 0 20px;
}

.pagination a {
  color: #283C82;
  padding: 5px 15px;
  margin: 0 5px;
  border: 1px solid #283C82;
  border-radius: 5px;
  box-sizing: border-box;
  cursor: pointer;
  font-size: 15px;
}

.pagination a:hover {
  background-color: #283C82;
  color: #ffffff;
}

.pagination a.active {
  background-color: #283C82;
  color: #ffffff;
}

.pagination img {
  margin-bottom: -10px;
  padding: 3px 6px;
  border-radius: 5px;
  border: 1px solid #283C82;
}


/* 푸터 */
.footer {
  /* 하단 고정 */
  /* position: fixed;
bottom: 0;
transform: translateY(-100%);*/
  /* position: relative; */
  /* transform: translateY(-100%); */
  background-color: #ffffff;
  width: 100%;
  height: 90px;
  margin: 0 auto;
  box-sizing: border-box;
  /* z-index: 200; */
  border-top: 1px solid rgb(207, 207, 207);
}

.footer .foot {
  width: 1200px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  text-align: center;
  justify-content: center;
}

.footer .foot .copyright {
  padding-top: 7px;
  font-weight: 400;
  color: #74777b;
  font-size: 14px;
  line-height: 1.2;
}