body {
  font-family: 'Pretendard', 'Pretendard GOV', sans-serif;
}
.swiper_btn{display: flex; align-items: center; gap: 28px; position: absolute;
right: 28px; top:50%; transform: translateY(-50%); z-index: 9999;}
.swiper-button-next, 
.swiper-button-prev,
.swiper-play-button{position: static !important; min-width: 13px; height: 20px !important; width:13px !important; margin-top: 0 !important;}
.swiper-pagination{position: static !important; width: auto !important;
display: flex;}
.swiper-button-prev{background: url(/resources2025/edudata/img/prev.png) no-repeat;}
.swiper-button-next{background: url(/resources2025/edudata/img/next.png) no-repeat;}
.swiper-button-next:after, .swiper-rtl .swiper-button-prev:after{display: none !important;}
.swiper-button-prev:after, .swiper-rtl .swiper-button-next:after{display: none !important;}
.swiper-pagination-bullet{width: 14px !important; height: 14px !important;
background: #94aadf !important; opacity:inherit !important;}
.swiper-pagination-bullet-active{background: #fff !important;}

.report_page {
  padding: 2.8125rem 0;
}
.report_page .f_box{display: flex; gap: 30px;}
.report_page .top{margin-bottom: 20px;}
/* 왼쪽 */
.con-left {
  width: calc(100% - 360px);
}
.section-header{display: flex; justify-content: space-between; align-items: center;
margin-bottom: 20px; gap:10px; flex-wrap: wrap;}
.section-title {
  font-size: 2.125rem;
  letter-spacing: -2px;
  font-weight: bold;
  margin: 0;
  flex: 1 1 auto;
  min-width: 300px;
}
.right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.section-select {
  width: 553px;     
  padding: 8px 12px; 
  font-size: 1rem;
  border: 1px solid #ccc;
  background: #fff;
  color: #666;
  outline: none;
  cursor: pointer;
}

.section-select:focus {
  border-color: #4d65d9; 
  box-shadow: 0 0 5px rgba(77, 101, 217, 0.5);
}

.section-btn {
  background: #000;
  color: #fff;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  min-height: 40px;
  width: 100px;
  padding: 8px;
}

.section-btn:hover {
  background-color: #222;
}
.subtitle-box {
  display: flex;
  align-items: center;
  background: linear-gradient(to right, #6ca5e6, #5076cd);
  color: #fff;
  padding: 1rem;
  font-size: 1.125rem;
  border-radius: 10px;
  position: relative;
}

.subtitle-box .index {
  background: #4c70c9;
  margin-right: 10px;
  border-radius: 50%;
  min-width: 30px;
  height: 30px;
  font-size: 1.25rem;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
}
.subtitle-box .subtitle{font-size: 1.5625rem; font-weight: bold;}
.desc {
  padding-bottom: 20px;
  color: #333;
  font-size: 1.25rem;
  line-height: 1.6rem;
  margin-bottom: 0;
}
.data-box{
  padding: 20px;
  background: #f6f6f6;
  height: 741px;    
  overflow-y: auto; 
}
  .grid-box {
    display: grid;
    grid-template-columns: 1fr;       /* 한 열로 변경 */
    gap: 10px;
    min-height: auto;                 /* 높이를 자동으로 조정 */
  }
  
  /* 왼쪽 아이템 세로 전체 차지 */
  .grid-box .left {
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 20px;
    min-height: 500px;                /* 최소 높이만 지정 */
  }
  .grid-box .item{position: relative;}
  /* 오른쪽 아이템 */
  .grid-box .right-top,
  .grid-box .right-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
  }
  


.zoom-icon {
  position: absolute;
  top: 10px;
  left: 10px;
  cursor: pointer;
}

/* 오른쪽 */
.con-right {
  width: 330px;
}

.book-card {
  padding: 2.375rem 1.5625rem;
  background: #f3f7ff;
}

.year-tag {
  color: #fff;
  border-radius: 10px;
  width: 100%;
  margin-bottom: 22px;
  background: linear-gradient(to right, #9b90e1, #5151a3);
  line-height: 1em;
  height: 62px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
}
.year-tag h5{
  font-size: 1.5625rem;
  font-weight: bold;
  letter-spacing: -1px;
  margin-bottom: 0;
}
.book-thumb {
  display: flex;
  justify-content: center;
}
.book-thumb img{border: 1px solid #ced1d7;}
.info ul{display: flex; flex-direction: column; gap:6px; margin-bottom: 30px;}
.info .tit {
  margin: 35px 0 20px;
  color: #000;
  font-size: 1.5625rem;
  font-weight: bold;
  line-height: 1em;
  letter-spacing: -1px
}
.info ul{padding-left: 0;}
.info ul li{font-size: 1.125rem; display: flex; align-items: center;
color: #666; letter-spacing: -1px;}
.info ul li:before{width: 8px; height: 8px; border-radius: 50%; 
content:''; background: #3d9de8; margin-right:9px;}
.info ul li span{min-width: 80px; margin-right: 15px; font-weight: bold; color: #000;}
.btn {
  width: 100%;
  padding: 12px;
  border: none;
  cursor: pointer;
  border-radius: 0 !important;
  min-height: 48px;
}
.btn.view {
  background: #4c65d8;
  color: #fff;
  margin-bottom: 10px;
}

.btn.download {
  background: #222;
  color: #fff;
}
@media (max-width: 1200px) {
  .report_page .f_box{display: block;}
  .con-left{width: 100%; margin-bottom: 30px;}
  .con-right{width: 100%;}
}

@media (max-width: 1200px) {
  .swiper_btn {
    position: absolute !important;
    top: auto !important;
    bottom: 10px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    justify-content: center;
  }
  .swiper-button-prev,
  .swiper-button-next {
    filter: brightness(0) invert(1);
  }
  .swiper-pagination-bullet {
    background: #fff !important;
  }
  .subtitle-box {
    min-height: 150px !important;
    padding-bottom: 50px !important;
  }
  .subtitle-box .subtitle {
    font-size: 1.25rem !important;
  }
}

@media (max-width: 900px) {
  .subtitle-box .subtitle {
    font-size: 1.125rem !important;
  }
}

@media (max-width: 992px) {
  .section-select{width: 100%;}
  .right{width: 100%;}
  .subtitle-box .subtitle{font-size: 1.1875rem;}
  .swiper_btn{gap: 10px;}
  .grid-box {
    grid-template-columns: 1fr;
    grid-template-rows: auto;}
  .desc{font-size: 1rem;}
}

.side-viewer {
  position: fixed;
  top: 0;
  right: -600px;        /* 처음 화면 밖 */
  width: 600px;
  height: 100vh;
  background: white;
  transition: right 0.35s ease;
  z-index: 10001;
}

.side-viewer.active {
  right: 0;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

.viewer-inner {
  padding: 40px;
}
.viewer-inner .tit{display: flex; align-items: center; justify-content: space-between; padding-bottom: 1.25rem; border-bottom:1px solid #ddd; margin-bottom: 1.25rem;}
.viewer-inner .tit h3{margin: 0; display: flex; align-items: center; gap:20px; font-size: 2.125rem;
font-weight: bold;}
.viewer-inner .tit h3 img{min-width: 55px; height: 55px; display: block;}
.viewer-inner .list ul{padding-left: 0;}
.viewer-inner .list ul li{ margin-bottom: 17px;}
.viewer-inner .list ul li a{
  line-height: 1.6em;
  font-size: 1.4375rem;
  letter-spacing: -1px;
  color: #555;
  font-weight: 600;
}
.viewer-inner .list ul li a:hover{
  color: #527bd0;
}
.close-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  text-align: right;
}

/* eduDataInsite.jsp 스타일 적용 */
.chart-container {
  position: relative;
  display: inline-grid;
  margin: 0 auto;
  height: auto !important;
  width: 100%;
}

.canvas-container {
  width: 100% !important;
  max-width: 100% !important;
  margin: 10px auto;
}

.canvas-wrap {
  width: 100% !important;
  max-width: 100% !important;
  background-color: white;
  border-radius: 25px;
  box-shadow: 0 -8px 16px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin: 20px auto;
  text-align: center;
  box-sizing: border-box;
  min-height: 300px;
  height: auto;
}

/* 새로운 차트 CSS */
.title-container {
  display: flex;
  align-items: stretch;
  border-top: 3px solid;
  padding-top: 15px;
  margin-bottom: 15px;
  min-height: 80px;
}

.title-wrap {
  padding-left: 20px;
  margin-left: 10px;
  flex: 1;
  border-left: 3px solid;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.title-index {
  font-size: 60px;
  font-weight: 100;
  padding-right: 10px;
  padding-left: 10px;
  line-height: 1;
}

.title {
  font-size: 28px;
  margin: 0;
  font-weight: bold;
  line-height: 1.3;
}

.content-wrap {
  padding: 10px 15px 10px 15px;
  height: auto;
  min-height: fit-content;
}

.content-wrap2 {
  margin-top: -40px;
  padding: 0px 15px 10px 15px;
}

.description {
  word-break: keep-all;
  font-size: 21px;
  font-weight: 700;
  margin: 10px;
  text-align: justify;
}


/* 차트 컨테이너 세로 배치 */
#chartContainer {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 1200px;
}

/* 각 차트 아이템을 전체 너비로 */
#chartContainer > * {
  width: 100% !important;
}

/* content-wrap 내부의 canvas-wrap도 세로 배치 */
.content-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.content-wrap .canvas-wrap {
  width: 100% !important;
}

/* 반응형 - 900px 이하 */
@media (max-width: 900px) {
  .title-index {
    font-size: 45px !important;
  }
  
  .title {
    font-size: 20px !important;
    line-height: 1.3 !important;
  }
  
  .description {
    font-size: 13px !important;
    line-height: 1.5 !important;
  }

  /* 차트 높이 조정 - 일반 차트용, 멀티 차트는 auto */
  .canvas-wrap:not(:has(.canvas-wrap)) {
    height: 350px !important;
    padding: 15px !important;
  }
  
  /* 멀티 차트는 높이 자동 */
  .canvas-wrap:has(.canvas-wrap) {
    height: auto !important;
    min-height: auto !important;
    padding: 15px !important;
  }

  /* 워드클라우드와 차트를 세로 배치 */
  .wordcloud-chart-container {
    flex-direction: column !important;
    height: auto !important;
    min-height: 700px !important;
  }

  .wordcloud-container {
    width: 100% !important;
    max-width: 500px !important;
    flex: none !important;
    margin: 0 auto 20px auto !important;
    aspect-ratio: 1 !important;
  }

  .chart-wrapper {
    width: 100% !important;
    flex: none !important;
    min-height: 300px !important;
    height: 300px !important;
  }
}

/* 반응형 - 500px 이하 */
@media (max-width: 500px) {
  .title-index {
    font-size: 35px !important;
  }
  
  .title {
    font-size: 16px !important;
    line-height: 1.2 !important;
  }
  
  .description {
    font-size: 11px !important;
    line-height: 1.4 !important;
  }

  /* 차트 높이 더 작게 - 일반 차트용 */
  .canvas-wrap:not(:has(.canvas-wrap)) {
    height: 280px !important;
    padding: 10px !important;
  }
  
  /* 멀티 차트는 높이 자동 */
  .canvas-wrap:has(.canvas-wrap) {
    height: auto !important;
    min-height: auto !important;
    padding: 10px !important;
  }
}