/* common */




/* custom */
.chatbotBox .chatList{
  display: grid;
  grid-template-columns:repeat(4, 1fr);

  gap: 6px;
}
.chatbotBox .chatList .chatItem {
  width: 100%;
  border-radius: 30px;
  background: linear-gradient(-45deg, var(--color-primaryLight) 0%, #FFF 100%);
  padding: 20px;

}
.chatbotBox .chatList .chatItem.ONLOAD {
  transform: translateY(120px) !important;
  opacity: 0;
}
.chatbotBox .chatList .chatItem.HOVER {
  background: linear-gradient(180deg, #F4A10E 0%, #FDD311 100%);
  color: #fff;
}
.chatbotBox .chatList .chatItem > .wrap{
  
  height: 100%;
  width: 100%;
  padding-bottom: 105%;
  background-size: contain;
  background-position: bottom center;
  background-repeat: no-repeat;
}
.chatbotBox .chatList .chatItem .infoBox > .wrap {
  justify-content: space-between;
}
.chatbotBox .chatList .chatItem .infoBox .tag {
  padding:  6px 12px;
  border-radius: 20px;
  background-color: var(--color-primaryLight);
  font-weight: 800;
  color: var(--color-black) !important;
  white-space: nowrap;
}
.chatbotBox .chatList .chatItem .infoBox button > *{
  line-height: normal !important;
}
.chatbotBox .chatList .chatItem .infoBox .chatTitle {
  margin-top: 6px;
  font-weight: 600;
}
.sortBox{
  text-align: center;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}
.sortBox .btn{
  border-radius: 12px;
  background-color: #eee;
  margin: 0 1px 4px;
}
.sortBox .btn.ACTIVE {
  background-color: #1A2450;
  color: #fff;
}
.sortBox .btn.ACTIVE > *{
  font-weight: 800;
}
.sortBox .btn:not(.ACTIVE) > * {
  opacity: .6;
}

.sortBox .btn .num {
  margin-left: 8px;
  padding: 0 6px;
  height: 24px;
  line-height: 24px;
  background-color: #fff;
  color: #555;
  border-radius: 20px;
}

/* 검색 바 스타일 */
.searchBox {
  width: 100%;
}

.searchInputWrap {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.searchInput {
  width: 100%;
  padding: 8px 18px;
  border: 1px solid #eee;
  border-right: none;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s ease;
  background-color: #fff;
}

.searchInput:focus {
  border-color: var(--color-primaryLight, #FDD311);
}

.searchInputWrap .icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.searchInputWrap .icon.ic-search {
  background-color: #999;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cpath d='m21 21-4.35-4.35'%3E%3C/path%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cpath d='m21 21-4.35-4.35'%3E%3C/path%3E%3C/svg%3E");
  opacity: 0.6;
}

/* 상세 필터 (학교급 → 학년 → 과목, 복수 선택) */
nav .filterBox {
  padding: 10px 18px 0;
  border-bottom: 1px solid #eee;
  background-color: #fff;
}
nav .filterBox .filterHead {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
}
nav .filterBox .filterToggle {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
}
nav .filterBox .filterToggle h6 {
  font-weight: 700;
  color: #333;
}
nav .filterBox .filterToggle .num {
  min-width: 20px;
  height: 20px;
  line-height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: linear-gradient(90deg, #FFCA00 0%, #FF8000 100%);
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  text-align: center;
}
nav .filterBox .filterToggle .icon {
  width: 16px;
  height: 16px;
  opacity: .3;
  background-image: url(../resources/icon-arrowR.png);
  background-size: 7px auto;
  transform: rotate(90deg);
  transition: transform .3s;
}
nav .filterBox.OPEN .filterToggle .icon {
  transform: rotate(-90deg);
}
nav .filterBox .filterReset h6 {
  color: var(--color-orange1);
  font-weight: 600;
}
/* 패널 안 스크롤 없음 - 왼쪽 메뉴 전체가 스크롤됩니다 */
nav .filterBox .filterPanel {
  display: none;
  padding-bottom: 12px;
}
nav .filterBox.OPEN .filterPanel {
  display: block;
}
nav .filterBox .filterGroup + .filterGroup {
  margin-top: 12px;
}
nav .filterBox .filterLabel {
  color: #999;
  margin-bottom: 6px;
}
nav .filterBox .filterChips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
nav .filterBox .gradeRow + .gradeRow {
  margin-top: 6px;
}
nav .filterBox .gradeRow .gradeLevel {
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
  color: #777;
}

/* 칩: 흰 바탕 + 회색 테두리, 선택하면 노란 바탕 + 노란 테두리 (모든 그룹 동일) */
nav .filterBox .filterChip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 30px;
  line-height: 28px;
  padding: 0 6px;
  border: 1px solid #eee;
  border-radius: 15px;
  background-color: #fff;
  transition: background-color .2s, border-color .2s, transform .1s;
}
nav .filterBox .filterChip:hover {
  border-color: var(--color-primary);
}
nav .filterBox .filterChip:active {
  transform: scale(.96);
}
nav .filterBox .filterChip .chipIcon {
  font-size: 1.0rem;
  line-height: 1;
}
nav .filterBox .filterChip h6 {
  font-size: 1rem;
  color: #555;
}
nav .filterBox .filterChip .chipCount {
  font-size: .9rem;
  line-height: 1;
  color: #bbb;
}
nav .filterBox .filterChip.ACTIVE {
  border-color: var(--color-primary);
  background-color: var(--color-primaryLight);
}
nav .filterBox .filterChip.ACTIVE h6 {
  color: #333;
  font-weight: 800;
}
nav .filterBox .filterChip.ACTIVE .chipCount {
  color: var(--color-orange1);
  font-weight: 700;
}

nav .filterBox .filterHint {
  font-size: 1rem;
  color: #bbb;
}
nav .bottomBox .filterEmpty {
  padding: 30px 0;
  text-align: center;
  color: #999;
}

/* 목록도 안쪽 스크롤 없이 늘어나고, 왼쪽 메뉴 전체가 한 번에 스크롤됩니다 */
nav .contentArea {
  overflow-y: auto;
}
nav .contentArea .bottomBox {
  flex: 1 0 auto;
  overflow: visible;
}

section.content{

  background-color: #fff;
  overflow: hidden;

  flex: 1;
  background-image: url(../resources/bg-intro3.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

section.content .welcomeArea > .wrap {
  width: 100%;
  height: 100%;
  padding: 0 40px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 30px;
}

section.content .welcomeArea > .wrap > .titleBox{
  text-align: center;
  position: relative;
  width: fit-content;
  margin: 0 auto;
}
section.content .welcomeArea > .wrap > .titleBox h5 {
  opacity: .6;
  margin-top: 6px;
}
section.content .welcomeArea > .wrap > .titleBox::after,
section.content .welcomeArea > .wrap > .titleBox::before{
  content: '';
  z-index: 0;
  position: absolute;
  width: 50%;
  height: 24vh;
  min-height: 220px;
  min-width: 150px;
  background-size: contain;
  background-repeat: no-repeat;
  top: 50%;
  transform: translateY(-50%);
}
  section.content .welcomeArea > .wrap > .titleBox::after{
  transform: translate(-95%, -50%);
  left: -5%;
    background-image: url(../resources/chractor-welcom01.png);
  background-position: center left;
}
  section.content .welcomeArea > .wrap > .titleBox::before{
  transform: translate(95%, -50%);
  right: -5%;
    background-image: url(../resources/chractor-welcom02.png);
    
    background-position: center right;

  }

section.content > * {
  display: none;
}

  section.content[data-state="welcome"] .welcomeArea,
  section.content[data-state="chatbot"] .chatbotArea
{display: block;}
section.content .welcomeArea .chatbotBox {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}
section.content .welcomeArea .chatbotBox .chatBox{
  text-align: center;
  margin-top: 20px;
}
section.content .welcomeArea .chatbotBox .chatBox .titleBox {
  display: flex;
  gap: 8px;
  flex-direction: row;
  width: 100%;
  align-items: center;
}
section.content .welcomeArea .chatbotBox .chatBox .titleBox .btn .icon{
  background-color: #fff;
  background-image: unset;
  mask-image: url(../resources/icon-refresh.png);
  mask-size: 12px auto;
  margin-left: 8px;
}
section.content .welcomeArea .chatbotBox .chatBox .chatList{
  margin-bottom: 30px;
  margin-top:12px;
  text-align: left;
}
section.content .welcomeArea .chatbotBox .chatBox .btnBox {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 6px;
}

section.content .welcomeArea .chatbotBox .chatBox .btnBox >.btn:nth-child(1) {
  width: 70%;
  max-width: 300px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

section.content .chatbotArea ,
section.content .chatbotArea iframe {
  width: 100%;
  height: 100%;
}



@media only screen and (min-width:1081px) {
  @media only screen and (min-height:651px) {

    body.readme::before{
      content: '';
      position: absolute;
      left: 0;
      bottom: 0;
      right: 0;
      top: 0;
      background-color: #000;
      opacity: .6;
      z-index: 1;
    }


    body.readme nav,
    body.readme nav .contentArea, 
    body.readme nav .contentArea .bottomBox {
      overflow: unset;
    }
    body.readme nav .titleArea,
    body.readme nav .titleArea .btn,
    body.readme nav .titleArea .control .logo,
    body.readme nav .topBox > .chatList:nth-child(2),
    body.readme nav .topBox > .chatList:nth-child(4),
    body.readme nav .contentArea .bottomBox,
    body.readme nav .contentArea .searchBox,
    body.readme nav .contentArea .filterBox,
    body.readme .sortBox,
    body.readme section.content .welcomeArea .chatbotBox .chatBox .chatList,
    body.readme section.content .welcomeArea .chatbotBox .chatBox .btnBox >.btn:nth-child(1),
    body.readme section.content .welcomeArea .chatbotBox .chatBox .btnBox >.btn:nth-child(2)
    {
      z-index: 5;
      position: relative;
    }
      body.readme nav .titleArea,
      body.readme nav .topBox > .chatList:nth-child(2),
      body.readme nav .topBox > .chatList:nth-child(4),
      body.readme .sortBox,
      body.readme section.content .welcomeArea .chatbotBox .chatBox .chatList
      {
        background-color: #fff;
      }
      body.readme nav .titleArea .btn::before,
      body.readme nav .titleArea .control .logo::before,
      body.readme nav .topBox > .chatList:nth-child(2)::before,
      body.readme nav .topBox > .chatList:nth-child(4)::before,
      body.readme nav .contentArea .bottomBox::before,
      body.readme nav .contentArea .searchBox::before,
      body.readme nav .contentArea .filterBox::before,
      body.readme .sortBox::before,
      body.readme section.content .welcomeArea .chatbotBox .chatBox .chatList::before,
      body.readme section.content .welcomeArea .chatbotBox .chatBox .btnBox >.btn:nth-child(1)::before,
      body.readme section.content .welcomeArea .chatbotBox .chatBox .btnBox >.btn:nth-child(2)::before
      {
        z-index: 2;
        content: '';
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%,-50%);
        border: 3px solid var(--color-primary);
        width: calc(100% + 10px);
        height: calc(100% + 10px);
        border-radius: 12px;
        box-shadow: 0 10px 15px rgba(0,0,0,.2);
      }
      
      body.readme .sortBox::before,
      body.readme section.content .welcomeArea .chatbotBox .chatBox .chatList::before,
      body.readme section.content .welcomeArea .chatbotBox .chatBox .btnBox >.btn:nth-child(1)::before,
      body.readme section.content .welcomeArea .chatbotBox .chatBox .btnBox >.btn:nth-child(2)::before
      {
        border-color: var(--color-orange1);;
      }
      body.readme nav .topBox > .chatList:nth-child(2)::before,
      body.readme nav .topBox > .chatList:nth-child(4)::before,
      body.readme .sortBox::before,
      body.readme section.content .welcomeArea .chatbotBox .chatBox .chatList::before,
      body.readme section.content .welcomeArea .chatbotBox .chatBox .btnBox >.btn:nth-child(1)::before,
      body.readme section.content .welcomeArea .chatbotBox .chatBox .btnBox >.btn:nth-child(2)::before
      {
        
        height: calc(100% + 20px);
      }
      body.readme nav .topBox > .chatList:nth-child(2)::before,  
      body.readme nav .topBox > .chatList:nth-child(4)::before,  
      body.readme .sortBox::before,
      body.readme section.content .welcomeArea .chatbotBox .chatBox .chatList::before
      {

        background-color: #fff;
        z-index: -1;
        width: calc(100% + 20px);
        border-radius: 20px;

      }

    @font-face {
      font-family: 'HakgyoansimDunggeunmisoTTF-R';
      src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/2408-5@1.0/HakgyoansimDunggeunmisoTTF-R.woff2') format('woff2');
      font-weight: 500;
      font-style: normal;
    }
    body.readme nav .titleArea .btn::after,
    body.readme nav .titleArea .control .logo::after,
    body.readme nav .topBox > .chatList:nth-child(2)::after,
    body.readme nav .topBox > .chatList:nth-child(4)::after,
    body.readme nav .contentArea .bottomBox::after,
    body.readme nav .contentArea .searchBox::after,
    body.readme nav .contentArea .filterBox::after,
    body.readme .sortBox::after,
    body.readme section.content .welcomeArea .chatbotBox .chatBox .chatList::after,
    body.readme section.content .welcomeArea .chatbotBox .chatBox .btnBox >.btn:nth-child(1)::after,
    body.readme section.content .welcomeArea .chatbotBox .chatBox .btnBox >.btn:nth-child(2)::after
    {
      z-index: 5;
      position: absolute;
      right:7.5px;
      top: 50%;
      transform: translate(100%, -50%);
      white-space: nowrap;
      font-family: 'HakgyoansimDunggeunmisoTTF-R',Pretendard, sans-serif;
      font-size: 1.8rem;
      line-height: 2.2rem;
      font-weight: 300;
      white-space:pre; 
      text-align: left;
      color: #fff;
    }

      body.readme nav .titleArea .btn::after{  content: '🟡 우리아이(AI)와 \A      일반적인 학습 대화를 할 수 있어요';}
      body.readme nav .titleArea .control .logo::after{  content: '🟡 누르면 처음 화면으로 이동해요';}
      body.readme nav .topBox > .chatList:nth-child(2)::after{  content: '🟡 우리아이(AI)에서 추천하는\A      학습 주제입니다.';}
      body.readme nav .topBox > .chatList:nth-child(4)::after{  content: '🟡 최근에 사용한\A      학습 주제입니다.';}
      body.readme nav .contentArea .bottomBox::after{  
        content: '🟡 우리아이(AI)로\A      학습할 수 있는\A      190여 종의 학습 콘텐츠를\A      과목별로 확인할 수 있어요';
        top: 27px;
        transform: translateX(100%);
      }
      body.readme nav .contentArea .searchBox::after{  
        content: '🟡 우리아이(AI)를\A      검색 할 수 있어요';
        top: 2px;
        transform: translateX(100%);
      }
      body.readme nav .contentArea .filterBox::after{
        content: '🟡 학교급 · 학년 · 과목을\A      골라 볼 수 있어요';
        top: 24px;
        transform: translateX(100%);
      }
      body.readme .sortBox::after,
      body.readme section.content .welcomeArea .chatbotBox .chatBox .chatList::after,
      body.readme section.content .welcomeArea .chatbotBox .chatBox .btnBox >.btn:nth-child(2)::after 
      {
        /* right: 7.5px; */
      }
      body.readme .sortBox::after{  content: '🟠 우리아이(AI)는 과목별로\A      학습 주제를 선택할 수 있어요.';}
      body.readme section.content .welcomeArea .chatbotBox .chatBox .chatList::after{  content: '🟠 카드속 우리아이(AI)를\A      선택하면 해당 주제로\A      학습대화를 할 수 있어요.';}
      body.readme section.content .welcomeArea .chatbotBox .chatBox .btnBox >.btn:nth-child(1)::after {  
        content: '우리아이(AI)와 🟠\A일반적인 학습 대화를 할 수 있어요     ';
        right: unset;
        left: 7.5px;
        transform: translate(-100%, -50%);
        text-align: right;

      }
      body.readme section.content .welcomeArea .chatbotBox .chatBox .btnBox >.btn:nth-child(2)::after {      content: '🟠 새로운 우리아이(AI)\A       학습 주제를 추천해줘요';  }

  }
}