@charset "UTF-8";
@import url(my-reset.css);
/* 기본 설정 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-align: left;
}

h2 {
  margin-bottom: 37px;
  font-size: 40px;
  font-weight: 500;
  color: #333;
  font-weight: 700;
}
.plus {
  position: absolute;
  top: 125px;
  right: 0px;
  border-radius: 50%;
  color: #999;
  font-size: 1em;
  line-height: 38px;
  text-align: center;
  width: 40px;
  height: 40px;
  border: 1px solid #c1c1c1;
}
.plus:hover {
  border: 1px solid #0066a6;
  background: #0066a6;
  color: #fff;
}

body {
  width: 100%;
  overflow-x: hidden;
  font-family:
    "Noto Sans KR",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-size: 16px;
  color: #333;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

.section-subtitle {
  margin-top: -26px;
  margin-bottom: 40px;
  line-height: 20px;
  font-size: 22px;
  font-weight: 400;
}

/* Header */
.header {
  position: relative;
  width: 100%;
  height: 910px;
}

/* Top Navigation */
.header-top {
  background: white;
  border-bottom: 1px solid #d1d1d1;
}

.topnav {
  background: #020b3d;
  height: 70px;
  display: flex;
  align-items: center;
  padding: 0 60px;
}

.topnav-container {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: space-between;
}

.topnav-link {
  color: white;
  font-size: 14px;
  margin-right: 30px;
  opacity: 0.9;
  transition: opacity 0.3s;
}

.topnav-link:hover {
  opacity: 1;
}

.topnav-right {
  display: flex;
  gap: 20px;
}

.topnav-right-link {
  color: white;
  font-size: 14px;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.topnav-right-link:hover {
  opacity: 1;
}

/* GNB */
.gnb {
  display: flex;
  align-items: center;
  height: 80px;
  padding: 0 60px;
  position: relative;
}
.gnb-logo {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 60px;
  width: 320px;
  height: 50px;
}

.gnb h1 {
  display: flex;
  position: absolute;
  top: 0px;
  left: 0px;
  width: 160px;
  height: 50px;
  background: url(../images/Logo.png) no-repeat;
  background-size: contain;
}

#headerSlogan {
  display: flex;
  position: absolute;
  top: 8px;
  left: 190px;
  width: 110px;
  height: 28px;
}

/* ==============================================  */
/* =======================common=======================  */
/* ==============================================  */
.wrap {
  position: relative;
  left: 400px;
  line-height: 1.75;
}
.dep1 a {
  text-decoration: none;
  font-size: 24px;
  font-weight: 700;
  color: #000;
  padding: 0 65px 0;
  line-height: 80px;
  white-space: nowrap;
}

.col h3 {
  font-size: 18px;
  font-weight: 500;
  color: #000;
  letter-spacing: -1.5px;
}

/* ==============================================  */
/* =======================메뉴인포=======================  */
/* ==============================================  */

.menu-info {
  width: 400px;
  background: #eee;
  padding: 20px 30px;
}

.menu-info h2 {
  margin-bottom: 8px;
}
.menu-info p {
  font-size: 15px;
  letter-spacing: -0.5px;
}

.dep2 li {
  font-size: 15px;
  color: #363636;
}

/* ==============================================  */
/* =======================nav=======================  */
/* ==============================================  */

.wrap nav {
  background: #ffffff;
  position: relative;
  height: 80px;
  z-index: 999;
}

.header-top.sticky {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 99999;
  left: 0;
}

.wrap nav .menu {
  display: flex;
  width: 100%;
  max-width: 80vw;
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.dep1 {
  width: calc(100% / 5);
}

.mega {
  width: 100vw;
  background-color: rgb(255, 255, 255);
  position: absolute;
  left: -470px;
  display: grid;
  grid-template-columns: 400px 1fr;
  grid-template-rows: 1fr;
  height: 0px;
  overflow: hidden;
  transition: height 0.3s;
  z-index: 1000;
  padding-left: 10px;

}

.row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  margin: 0;
  gap: 20px;
  text-align: left;
  padding: 30px 100px;
  justify-content: center;
  white-space: nowrap;
}

.menu-btn {
  position: relative;
  right: -500px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 25px;
}

.menu-btn span {
  display: block;
  height: 3px;
  background: #333;
  border-radius: 2px;
}

.menu-btn span:nth-child(2) {
  width: 20px;
}

/* Search Box */
.search-box {
  position: absolute;
  top: 174px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  background: white;
  border: 4px solid #4b83c4;
  border-radius: 35px;
  width: 658px;
  height: 70px;
  padding: 0 10px;
  z-index: 10;
}

.search-type {
  padding: 0 30px;
  font-size: 20px;
  font-weight: 500;
  color: #27619c;
  border-right: 1px solid #b0c4d8;
}

.search-input {
  flex: 1;
  padding: 0 20px;
}

.search-input input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 22px;
  color: #333;
}

.search-input input::placeholder {
  color: #c7c7c7;
}

.search-btn {
  text-align: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #4b83c4;
  color: white;
  font-size: 18px;
}

/* Banner */
.header-banner {
  position: relative;
  display: block;
  height: 910px;
  width: 100vw;
}
.bg::after {
  content: "";
  display: block;
  position: absolute;
  top: 151px;
  left: 0;
  width: 100%;
  height: 750px;
  background: rgba(22, 10, 43, 0.5);
  backdrop-filter: blur(13px);
}
.bg::before {
  content: "";
  display: block;
  position: absolute;
  top: 151px;
  left: 0;
  width: 100%;
  height: 759px;
  background: url(https://www.nanet.go.kr/attachfiles/carousel/1766390217987.jpg);
  background-size: cover;
}

.banner-controls {
  position: absolute;
  right: 340px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.5);
  padding: 5px 0px;
  border-radius: 5px;
}
.banner-prev,
.banner-next {
  color: white;
}
.banner-controls .banner-play {
  width: 8px;
  height: 8px;
}

.banner-play {
  width: 8px;
  height: 8px;
  background: #b8a28d;
  border-radius: 50%;
}

.mainvisual_group {
  position: absolute;
  top: 115px;
  width: 1300px;
  left: 50%;
  transform: translateX(-50%);
  height: 500px;
  z-index: 9;
}

/* =======================main swiper=======================  */

.swiper-wrapper {
  width: 1300px;
  background-color: #fff;
}
.swiper-slide {
  text-align: center;
  font-size: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swiper {
  width: 100%;
  height: 200px;
  margin-left: auto;
  margin-right: auto;
}

.swiper-slide {
  background-size: cover;
  background-position: center;
}

.main_swiper {
  height: 440px;
  width: 1300px;
}

.thumb_swiper {
  height: 80px;
  box-sizing: border-box;
  background-color: white;
  cursor: pointer;
}

.thumb_swiper .swiper-wrapper {
  transition: none;
}

.thumb_swiper .swiper-slide {
  width: 325px !important;
  height: 100%;
  opacity: 1;
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  letter-spacing: -1.5px;
}
.swiper-slide-thumb-active {
  background-color: #020b3d !important;
  color: white;
}
.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swiper-wrapper > .ss2 img {
  object-fit: contain;
}

.swiper-button-next,.swiper-button-prev{
  color: #999;
}

/* Header Bottom */
.header-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 113px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  padding: 0 310px;
}

.quick-links {
  display: flex;
  gap: 0;
  flex: 1;
}

.quick-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  transition: background 0.3s;
}

.quick-link:hover {
  background: rgba(255, 255, 255, 0.5);
}

.quick-icon {
  font-size: 32px;
}

.calendar-box {
  height: 113px;
  background: #956c46;
  padding: 10px 40px;
  color: white;
  min-width: 332px;
}

.calendar-title {
  font-size: 20px;
  font-weight: bold;
}

.calendar-subtitle {
  font-size: 14px;
  margin-bottom: 5px;
}

.calendar-dates {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.calendar-dates span {
  background: white;
  color: #333;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
}

.calendar-month {
  font-size: 20px;
  font-weight: bold;
}

/* Main Content */
.main-content {
  padding: 0;
}

.section {
  padding: 100px 240px;
  text-align: center;
}

.b-controller {
  top: auto;
  right: 848px;
  position: absolute;
  background: #c2b0a2;
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.issue-sub {
  text-align: center;
  font-size: 17px;
  font-weight: 400;
  color: #333;
  margin: 10px 0;
}

/* 주제별 큐레이션 */
.curation-section {
  background: white;
}

.committee-buttons {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-bottom: 50px;
}

.committee-btn {
  text-align: center;
  width: 100%;
  height: 60px;
  background: #f0f0f0;
  border-radius: 8px;
  font-size: 20px;
  font-weight: 500;
  color: #333;
  transition: all 0.3s;
}

.committee-btn.active,
.committee-btn:hover {
  background: #c2b0a2;
}

.curation-slider {
  position: relative;
  overflow: hidden;
}

.swiper3 {
  width: 100%;
  height: 300px;
}

.cuswiper .swiper-slide {
  display: grid;
  min-width: 330px;
  height: 200px;
  background: white;
  border: 1px solid #c2b0a2;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 3px 4px 15px rgba(0, 0, 0, 0.2);
}

.cuswiper .swiper-slide:hover {
  background: #b8a28d;
  font-weight: 700;
}
.cuswiper .swiper-slide h3 {
  display: block;
  width: 268px;
  height: 67px;
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: 60px;
  color: #000;
}
.card-source {
  text-align: right;
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

.cuswiper .swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.curation-slider .swiper-button-next,
.curation-slider .swiper-button-prev{
  top: 100px;
  position: absolute;
}

.slider-prev,
.slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 32px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 18px;
}

.slider-prev {
  left: -60px;
}

.slider-next {
  right: -60px;
}

/* 이슈 키워드 */
.keywords-section {
  background: #f2f2f2;
  padding: 30px 240px;
}

.keyswiper {
  padding: 0 50px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  height: 50px;
  margin-top: 16px;
  font-size: 18px;
  font-weight: 500;
  border-radius: 7px;
  border: 1px solid #dbdbdb;
  background-color: #fff;
}

.swiper-wrapper {
  display: flex;
}

.keyswiper .swiper-slide {
  margin-right: 58px;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 22px;
  font-weight: 500;
  white-space: nowrap;
}

/* 신간도서 */
.books-section {
  padding: 100px 0;
  margin: 0px 237px;
  position: relative;
  background: white;
}

.books-container {
  display: grid;
  grid-template-columns: 302px 1fr;
  gap: 72px;
}
.book-items {
  display: flex;
  align-items: flex-end;
}
.book-row {
  margin-top: 36px;
}

.book-main {
  position: relative;
  width: 303px;
  height: 440px;
}
.book-main img {
  position: absolute;
  top: 0;
  left: 0;
  box-shadow: 10px 10px 15px rgba(0, 0, 0, 0.5);
  width: 303px;
  height: 440px;
  z-index: 2;
}
.book-main::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 150px;
  width: 400px;
  height: 400px;
  background-color: rgb(225, 219, 219);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}
.book-right {
  display: flex;
  flex-direction: column;
}
.book-info {
  width: 94%;
}

.book-info h3 {
  font-size: 26px;
  color: #0066a6;
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  word-wrap: break-word;
}

.book-author {
  margin-top: 12px;
  font-size: 15px;
  color: #777;
}

.book-desc {
  margin-top: 22px;
  line-height: 26px;
  font-size: 17px;
  color: #333;
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  word-wrap: break-word;
}

.book-thumbnails {
  width: 152px;
  height: 222px;
  margin-right: 73px;
  margin-top: 30px;
  transition: all 0.3s;
}

.book-thumbnails img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-thumbnails:hover {
  transform: translateY(-15px);
  transform: 0.3s;
  box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.7);
}

/* 자료정보 */
.resources-section .plus {
  top: 116px;
  right: 240px;
}

.resources-section {
  background: white;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.resource-card {
  position: relative;
  height: 440px;
  background: white;
  border: 1px solid #c2b0a2;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.resource-badge {
  display: inline-block;
  background: #f0f0f0;
  border-radius: 16px;
  padding: 7px 16px;
  font-size: 18px;
  font-weight: 500;
}

.resourceT {
  position: absolute;
  bottom: -15px;
  padding: 30px;
}

.resource-card img {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
}

.resource-card span {
  display: block;
  font-size: 20px;
  margin-top: 18px;
  height: 60px;
  overflow: hidden;
}

/* 서평 & 큐레이션 */
.mixed-section {
  display: grid;
  grid-template-columns: 936px 1fr;
  gap: 50px;
  background: #f2f2f2;
}

.review-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.review-img {
  border: 1px solid #c7c7c7;
  width: 192px;
  height: 284px;
  border-radius: 12px;
  overflow: hidden;
}

.review-card img {
  width: 100%;
  height: 100%;
  background-size: cover;
  border: 1px solid #ddd;
  margin-bottom: 10px;
}

.review-card h4 {
  font-size: 18px;
  margin: 8px 0;
  line-height: 1.3;
}

.review-card p {
  font-size: 16px;
  color: #666;
}

.curation-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #fff;
  border-radius: 20px;
  padding: 30px;
}

.curation-item {
  position: relative;
  width: 392px;
  height: 180px;
}

.curation-item img {
  width: 100%;
  height: 100%;
}

.curation-item::before {
  position: absolute;
  z-index: 2;
  top: 0px;
  left: 0px;
  content: "";
  display: block;
  opacity: 0;
  background: #0000008f;
  width: 393px;
  height: 180px;
  overflow: hidden;
}

.curation-text {
  display: block;
  position: absolute;
  z-index: 3;
  left: 0px;
  top: calc(50% - 43px);
  opacity: 0;
  width: 393px;
  height: 87px;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  transition: all 0.3s ease-in-out;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 10px;
}
.curation-item:hover .curation-text {
  opacity: 1;
}

.curation-item:hover::before {
  opacity: 1;
}

.reviews-container > .pst {
  top: 112px;
  right: 760px;
}

.curation-container > .pbq {
  top: 112px;
  right: 230px;
}

/* 공지사항 & 웹진 */
.notice-section {
  display: grid;
  grid-template-columns: 702px 1fr;
  gap: 50px;
  background: white;
}

.notice-tabs {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
}

.notice-tab {
  font-size: 40px;
  font-weight: bold;
  color: #999;
  position: relative;
  padding-bottom: 10px;
}

.notice-tab.active {
  color: #333;
}

.notice-tab.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #333;
}

.notice-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.notice-card {
  position: relative;
  background: white;
  border: 1px solid #ddd;
  padding: 40px;
  border-radius: 8px;
  min-height: 436px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s;
}
.notice-card::before {
  position: absolute;
  content: "";
  display: block;
  height: 1px;
  width: 254px;
  background: #999;
  top: 340px;
}

.notice-card h3 {
  font-size: 24px;
  margin-bottom: 20px;
  line-height: 1.4;
}

.notice-card p {
  font-size: 16px;
  line-height: 1.6;
  color: #555;
  flex: 1;
}

.notice-date {
  font-size: 20px;
  color: #999;
  margin-top: auto;
}

.n-next {
  color: #999;
  position: absolute;
  font-size: 2em;
  bottom: 36px;
  right: 36px;
}

.notice-card:hover {
  border: 1px solid #0066a6;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.4);
}

.notice-card:hover > button {
  color: #0066a6;
  transform: translateX(10px);
}

.webzine-main {
  position: relative;
  top: -3px;
  left: 0px;
  width: 303px;
  height: 436px;
  background: url("https://www.nanet.go.kr/attachfiles/webzine/1766473465112.jpg") no-repeat;
  background-size: cover;
  border-radius: 8px;
  border: 1px solid #ddd;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin-bottom: 30px;
}

.webzine-main:hover {
  border: 1px solid #0066a6;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.4);
}

.webzine-badge {
  color: #fff;
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(0, 0, 0, 0.651);
  padding: 2px 8px;
  border-radius: 50px;
  font-size: 15px;
}

.webzine-main:hover > .webzine-badge {
  background: #0066a6;
}

.webzine-main:hover h3 {
  color: #0066a6;
  transform: translateX(10px);
}

.webzine-main h3 {
  position: absolute;
  right: 30px;
  bottom: 36px;
  font-size: 32px;
  color: #999;
  line-height: 1.4;
}

.webzine-list {
  top: 200px;
  right: 225px;
  position: absolute;
  display: block;
}

.webzine-item {
  width: 333px;
  height: 204px;
}
.webzine-swiper {
  margin-top: 19px;
  width: 333px;
  height: 203px;
}

.notice-container > .pnot {
  top: 111px;
  left: 902px;
}

.webzine-container > .pwz {
  top: 111px;
  right: 610px;
}

/* Footer */
.footer {
  background: #f9f9f9;
  border-top: 1px solid #efefef;
  padding: 40px 270px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-nav {
  display: flex;
  gap: 30px;
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
}

.footer-nav a {
  font-size: 16px;
  font-weight: 500;
  color: #222;
}

.footer-info {
  display: flex;
  gap: 20px;
}

.footer-info p {
  font-size: 16px;
  font-weight: 500;
  color: #555;
}

.footer-copyright {
  font-size: 13px;
  color: #555;
}

.footer-links {
  display: flex;
  gap: 10px;
}

.footer-links select {
  padding: 10px 20px;
  background: white;
  border: 1px solid #c1c1c1;
  border-radius: 4px;
  font-size: 14px;
  color: #444;
}

.footer-sns {
  display: flex;
  gap: 15px;
}

.footer-sns a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
  border-radius: 50%;
  transition: background 0.3s;
}

.footer-sns a:hover {
  background: #ddd;
}

/* 반응형 디자인 */
@media (max-width: 1600px) {
  .section {
    padding: 80px 120px;
  }

  .header-bottom {
    padding: 0 120px;
  }
}

@media (max-width: 1200px) {
  .section {
    padding: 60px 40px;
  }

  .committee-buttons {
    grid-template-columns: repeat(4, 1fr);
  }

  .resource-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .review-items {
    grid-template-columns: repeat(2, 1fr);
  }

  .mixed-section {
    grid-template-columns: 1fr;
  }

  .notice-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .gnb-nav {
    display: none;
  }

  .committee-buttons {
    grid-template-columns: repeat(2, 1fr);
  }

  .resource-grid {
    grid-template-columns: 1fr;
  }

  .review-items {
    grid-template-columns: 1fr;
  }

  .books-container {
    grid-template-columns: 1fr;
  }

  .notice-items {
    grid-template-columns: 1fr;
  }

  .quick-links {
    flex-wrap: wrap;
  }

  .search-box {
    width: 90%;
  }
}

/* ============================================================================= */
/* ==================================팝업창================================= */
/* ============================================================================= */

.popup {
  text-align: center;
  position: fixed;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  background: white;
  width: 30%;
  min-width: 300px;
  height: 380px;
  border-radius: 10px;
  box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.4);
}
.popup::after {
  content: "";
  display: block;
  position: absolute;
  top: 45px;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 130px;
  background: url(../images/Warning.png) no-repeat;
  background-size: contain;
}

.popup .para {
  text-align: center;
  margin-top: 200px;
}
.popup button {
  text-align: center;
  position: absolute;
  transform: translateX(-50%);
  bottom: 50px;
  background: #020b3d;
  width: 150px;
  height: 50px;
  color: #fff;
  border-radius: 7px;
}
