@font-face {
    font-family: 'Pretendard-Regular';
    src: url('https://cdn.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-Regular.woff') format('woff');
    font-weight: 100,200,300,400,500,600,700,800,900;
    font-style: normal;
}  
  
  .main_container {
    width: 1200px;
    margin: 50px auto 50px;
  }

  .banner-container {
    margin: 0px auto 30px;
  }

  .class_container {
    width: 100%;
    margin:50px auto 100px;
  }

  .class_box {
    width: 100%;
    margin: 10px auto 50px;
    /* display: grid; */
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 30px;
  }


  .class_subject {
    display:block;
    font-family:'Pretendard-Regular';
    font-weight: 900;
    font-size:24px;
  }

/* slick-list에 좌우로 음수 마진을 줘서 슬라이드가 잘리는 걸 방지 */
.slick-list {
  margin: 0 -8px; /* 5px씩 음수 마진 */
}

/* 각 슬라이드(.slick-slide)에 패딩을 주어 간격을 만듦 */
.slick-slide {
  padding: 0 8px; /* 좌우 각각 5px씩 패딩 => 슬라이드 간 10px 간격 */
  box-sizing: border-box;
}

  .class-item {
    border: none;
    cursor: pointer;
    text-align: center;
}
 
  .channel-item {
    border: none;
    cursor: pointer;
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
}

.class-thum {
    position: relative;
    width: 100%;
    height: 180px;    
    overflow: hidden; /* 컨테이너 안에서 벗어나는 내용을 숨김 */
  }

.channel-thum {
    position: relative;
    width: 100%;
    height: 180px;    
    overflow: hidden; /* 컨테이너 안에서 벗어나는 내용을 숨김 */
    border-radius: 8px; /* 선택적: 이미지에 둥근 모서리 추가 */
}

  .channel-thum img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

  .class-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease; /* 애니메이션 효과를 부드럽게 만듦 */
    display: block; /* 이미지의 기본적인 인라인 특성을 블록으로 변경 */
  }

  .heart-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px !important;
    height: 20px !important;
    cursor: pointer;
}

  .class-item img:hover {
    transform: scale(1.1); /* 이미지를 110% 확대 */
  }
  

  .class-summary {
  text-align: left; /* 제목(h3)과 단락(p)을 왼쪽 정렬 */
  font-family: 'Pretendard-Regular';
  margin-top: 8px;
 }

 
.class-server {
     display:block;
     font-weight: 100;
     padding: 5px 0 5px 0;
    }
    
.class-title {
    display:block;
    font-weight: 900;
    font-size:14px;
    padding: 5px 0 5px 0;
       
    }

.class-price {
    display:block;
    font-weight: 900;
    font-size:14px;
    padding: 5px 0 5px 0;
    margin-top: 4px;
 }

 #overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.direction-notice {
  font-family: 'Pretendard-Regular';
  font-size: 1.6em;
  color: #fff;
  text-align: center;
  position: fixed;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 11;
}

#rocket {
  position: fixed;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 11;
}

.search-box {
  font-family: 'Pretendard-Regular';
  border: 1px solid #ccc;
  padding: 20px 40px 0;
}

.class_search_box.single-column {
  grid-template-columns: 1fr;
}

.no-results {
  width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.form-group {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}

.group-title {
  font-weight: 900;
  font-size:1rem;
  min-width: 100px; /* 또는 제목의 너비에 따라 조절 */
  font-weight: bold;
  margin-right: 10px; /* 제목과 검색 필드 사이의 간격 */
}

.form-group label {
  font-weight: 600;
  font-size:0.9rem;
  flex-grow: 1;
  display: flex;
  align-items: center;
}

input[type="radio"],
input[type="checkbox"] {
  margin-right: 5px;
}

.find_adBanner {
  width: 100%;
  margin-bottom: 30px;
}


.education-cost-search {
  display: flex;
  align-items: center;
}

.education-cost-search input[type="text"] {
  width: 150px;
  font-family: 'Pretendard-Regular';
  font-weight: 600;
  font-size: 0.9rem;
  margin-right: 5px; /* 오른쪽 간격 추가 */
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.education-cost-search input[type="text"]::placeholder {
  font-family: 'Pretendard-Regular';
  font-weight: 600;
  font-size: 0.9rem;
  color: #aaaaaa; /* 플레이스홀더 텍스트의 색상 */
}

.education-cost-search span {
  margin: 0 5px; /* 범위 표시를 위한 간격 추가 */
}


.search-input-group {
  flex-grow: 1;
  display: flex;
}

.search-input-group input[type="text"] {
  width: 500px; /* 너비를 500px로 설정 */
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-right: 10px; /* 버튼과의 간격 */
}

.search-input-group input[type="text"]::placeholder {
  font-family: 'Pretendard-Regular';
  font-weight: 600;
  font-size: 0.9rem;
  color: #aaaaaa; /* 플레이스홀더 텍스트의 색상 */
}


.search-input-group button {
  padding: 10px;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: 120px;
}

.search-input-group button:hover {
  background-color: #555;
}

/* 반응형 디자인을 위한 추가적인 스타일 */
@media (min-width: 768px) {
  .group-title {
      width: 140px; /* 더 넓은 화면에서의 제목 너비 */
  }
}


/* 클래스 검색 결과 페이지 */

.class_search_container {
  width: 100%;
  margin: 8px auto 100px;
  padding-left: 40px;
}

.like_classTitle
{
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 50px;
  color: #333;
  position: relative;
  padding-left: 25px;
}

.like_classTitle:before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 28px;
  background: #333;
  border-radius: 2px;
}

.class_search_box {
  width: 100%;
  margin: 20px auto 50px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 30px;
}

.channel_search_box {
  width: 100%;
  margin: 20px auto 50px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 40px;
}

.class_subject {
  display:block;
  font-family:'Pretendard-Regular';
  font-weight: 900;
  font-size:24px;
}

.class-item {
  border: none;
  cursor: pointer;
  text-align: center;
}

.class-thum {
  width: 100%;
  height: 180px;    
  overflow: hidden; /* 컨테이너 안에서 벗어나는 내용을 숨김 */
}

.class-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease; /* 애니메이션 효과를 부드럽게 만듦 */
  display: block; /* 이미지의 기본적인 인라인 특성을 블록으로 변경 */
}

.class-item img:hover {
  transform: scale(1.1); /* 이미지를 110% 확대 */
}


.class-summary {
text-align: left; /* 제목(h3)과 단락(p)을 왼쪽 정렬 */
font-family: 'Pretendard-Regular';
margin-top: 8px;
}

.class-tag {
  background-color: #f5f5f5;
    padding: 2px 0px;
    margin: 2px;
    border-radius: 5px;
    display: inline-block;
}

.class-server {
   display:block;
   font-weight: 100;
   padding: 5px 0 5px 0;
  }
  
.class-title {
  display:block;
  font-weight: 900;
  font-size:14px;
  padding: 5px 0 5px 0;
     
  }

.class-price {
  display:block;
  font-weight: 900;
  font-size:14px;
  padding: 5px 0 5px 0;
  margin-top: 4px;
}

.pagination {
  text-align: center;
  margin-top:100px;
}

.pagination a {
  padding:10px;
  font-size:1.0rem;
}



/* 계정 정보 페이지 스타일 */
.account_container {
  width: 100%;
  max-width: 1000px;
  margin: 0px auto;
  padding-left: 40px;
  font-family: 'Pretendard-Regular';
  background: #fff;
}

.account_title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 50px;
  color: #333;
  position: relative;
  padding-left: 25px;
}

.account_title:before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 28px;
  background: #333;
  border-radius: 2px;
}

.info_list {
  width: 100%;
  border-top: 2px solid #333;
  border-bottom: 1px solid #ddd;
}

.info_item {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid #eee;
  padding: 15px;
}

.info_item:last-child {
  border-bottom: none;
}

.info_item:hover {
  background-color: #fafafa;
}

.info_item.hidden {
  display: none;
}

.info_item label {
  font-size: 1rem;
  font-weight: 500;
  color: #888;
  margin-bottom: 2px;
}

.info_item span {
  font-size: 1.2rem;
}

.info_content {
  font-size: 28px;
  color: #333;
  font-weight: 600;
}

.btn_container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 60px;
}

.btn_edit {
  min-width: 200px;
  padding: 20px 50px;
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  background: #333;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn_edit:hover {
  background: #555;
}

.btn_delete {
  min-width: 200px;
  padding: 20px 50px;
  font-size: 18px;
  font-weight: 500;
  color: #666;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn_delete:hover {
  color: #e74c3c;
  border-color: #e74c3c;
  background: #fff;
}

/* 계정 버튼 스타일 */
.account_buttons {
  display: flex;
  gap: 20px;
  margin-top: 50px;
  justify-content: center;
  font-size: 1rem;
}

.account_btn {
  min-width: 160px;
  padding: 18px 30px;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.3s ease;
  font-family: 'Pretendard-Regular';
}

.btn_dark {
  background-color: #333;
  color: white;
  border: none;
}

.btn_dark:hover {
  background-color: #555;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn_light {
  background-color: white;
  color: #555;
  border: 1px solid #ccc;
}

.btn_light:hover {
  border-color: #888;
  color: #333;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn_gray {
  background-color: #f0f0f0;
  color: #666;
  border: none;
}

.btn_gray:hover {
  background-color: #e0e0e0;
  color: #444;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
  .account_container {
    padding: 30px;
    margin: 30px;
  }

  .account_title {
    font-size: 28px;
    margin-bottom: 40px;
  }

  .info_item {
    padding: 30px 20px;
  }

  .info_label {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .info_content {
    font-size: 24px;
  }

  .btn_container {
    flex-direction: column;
    gap: 15px;
    margin-top: 40px;
  }

  .btn_edit, .btn_delete {
    width: 100%;
    min-width: auto;
    padding: 18px 30px;
    font-size: 16px;
  }

  .account_buttons {
    flex-direction: column;
    padding: 0 20px;
  }
  
  .account_btn {
    width: 100%;
  }
}

/* 태블릿 및 모바일 공통 (1199px 이하) */
@media (max-width: 1199px) {
  .main_container {
    width: 100%;
    padding: 0 15px;
  }
  
  .class_container {
    margin: 30px auto 50px;
  }
  
  .class_box {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .search-box {
    padding: 15px 20px 0;
  }
  
  .search-input-group input[type="text"] {
    width: auto;
    flex: 1;
  }
  
  .class_search_container {
    padding-left: 20px;
  }
  
  .class_search_box {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .account_container {
    max-width: 90%;
    padding: 0 20px;
  }
}

/* 태블릿 (768px ~ 991px) */
@media (max-width: 991px) {
  .class_box {
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 20px;
  }
  
  .form-group {
    flex-wrap: wrap;
  }
  
  .group-title {
    width: 100%;
    margin-bottom: 10px;
  }
  
  .education-cost-search {
    flex-wrap: wrap;
  }
  
  .education-cost-search input[type="text"] {
    width: 45%;
  }
  
  .account_title, .like_classTitle {
    font-size: 28px;
  }
}

/* 모바일 (767px 이하) - 모바일 최적화 */
@media (max-width: 767px) {
  /* 클래스 박스 - 한 개씩 보이도록 수정 */
  .class_box, .class_search_box {
    grid-template-columns: repeat(1, 1fr);
    margin: 15px auto 30px;
  }
  
  /* 검색 박스 모바일 최적화 */
  .search-box {
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
  }
  
  /* 그룹 타이틀 및 폼 그룹 조정 */
  .class_subject {
    font-size: 18px;
  }
  
  .group-title {
    font-size: 14px;
    margin-bottom: 8px;
  }
  
  .form-group {
    margin-bottom: 15px;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .form-group label {
    margin-bottom: 8px;
    font-size: 13px;
  }
  
  /* 검색 입력 그룹 최적화 */
  .search-input-group {
    flex-direction: column;
    width: 100%;
  }
  
  .search-input-group input[type="text"] {
    width: 100%;
    margin-bottom: 10px;
    height: 40px;
    box-sizing: border-box;
  }
  
  .search-input-group button {
    width: 100%;
    height: 40px;
    margin-top: 5px;
  }
  
  /* 교육비 검색 최적화 */
  .education-cost-search {
    flex-direction: column;
    width: 100%;
  }
  
  .education-cost-search input[type="text"] {
    width: 100%;
    margin-bottom: 10px;
    height: 40px;
  }
  
  .education-cost-search span {
    margin: 5px 0;
    text-align: center;
  }
  
  /* 계정 컨테이너 최적화 */
  .account_container {
    padding: 0 15px;
  }
  
  .account_title, .like_classTitle {
    font-size: 20px;
    margin-bottom: 25px;
    padding-left: 15px;
  }
  
  .account_title:before, .like_classTitle:before {
    height: 18px;
  }
  
  /* 정보 아이템 최적화 */
  .info_item {
    padding: 12px 10px;
  }
  
  .info_item label {
    font-size: 12px;
  }
  
  .info_item span {
    font-size: 14px;
  }
  
  .info_content {
    font-size: 18px;
  }
  
  /* 버튼 컨테이너 최적화 */
  .btn_container {
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
  }
  
  .btn_edit, .btn_delete {
    width: 100%;
    min-width: auto;
    padding: 15px 20px;
    font-size: 14px;
  }
  
  /* 계정 버튼 최적화 */
  .account_buttons {
    flex-direction: column;
    gap: 10px;
    margin-top: 30px;
  }
  
  .account_btn {
    width: 100%;
    min-width: auto;
    padding: 12px 15px;
    font-size: 14px;
  }
  
  /* 클래스 아이템 최적화 */
  .class-thum {
    height: 180px;
  }
  
  /* 로켓 애니메이션 최적화 */
  .direction-notice {
    font-size: 1em;
    width: 80%;
  }
  
  /* 페이지네이션 최적화 */
  .pagination {
    margin-top: 40px;
  }
  
  .pagination a {
    padding: 5px;
    font-size: 12px;
  }
}

/* 작은 모바일 화면 (480px 이하) */
@media (max-width: 480px) {
  /* 클래스 썸네일 크기 조정 */
  .class-thum {
    height: 160px;
  }
  
  /* 클래스 정보 텍스트 크기 조정 */
  .class-server {
    font-size: 11px;
  }
  
  .class-title {
    font-size: 13px;
  }
  
  .class-price {
    font-size: 12px;
  }
  
  .class-tag {
    font-size: 10px;
    padding: 1px 0px;
  }
  
  /* 정보 아이템 더 작게 */
  .info_item label {
    font-size: 11px;
  }
  
  .info_item span {
    font-size: 13px;
  }
  
  /* 버튼 더 작게 */
  .btn_edit, .btn_delete, .account_btn {
    padding: 10px 15px;
    font-size: 13px;
  }
}

/* 클릭수 배지 스타일 */
.click-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 30px;
  z-index: 2;
  font-family: 'Pretendard-Regular';
  display: flex;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.click-badge i {
  margin-right: 4px;
  font-size: 11px;
}

/* 모바일에서의 배지 크기 조정 */
@media (max-width: 767px) {
  .click-badge {
    font-size: 10px;
    padding: 3px 6px;
  }
  
  .click-badge i {
    font-size: 9px;
  }
}

/* 유튜브 및 배너 프로모션 섹션 */
.promo-section {
    width: 100%;
    margin: 20px auto 40px;
}

.promo-container {
    width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
}

.promo-youtube {
    width: 675px;
    height: 380px;
    overflow: hidden;
}

.promo-youtube iframe {
    width: 675px;
    height: 380px;
    display: block;
}

.promo-banner {
    width: 515px;
    height: 380px;
    overflow: hidden;
    cursor: pointer;
}

.promo-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}



.navigation_buttons {
  display: flex;
  align-items: center;
  margin-top: -30px;
  justify-content: flex-end; /* 오른쪽 끝 정렬 */
}

.prev_btn, .next_btn {
  width: 30px;
  height: 30px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 5px;
  font-size: 16px;
  z-index: 5;
}

/* 반응형 스타일 */
@media (max-width: 1199px) {
    .promo-container {
        width: 100%;
        padding: 0 15px;
    }
    
    .promo-youtube {
        width: 66.67%;
    }
    
    .promo-banner {
        width: 33.33%;
    }
    
    .promo-youtube iframe {
        width: 100%;
        height: 100%;
    }
}

@media (max-width: 767px) {
    .promo-container {
        flex-direction: column;
    }
    
    .promo-youtube, .promo-banner {
        width: 100%;
        height: auto;
    }
    
    .promo-youtube iframe {
        height: 250px;
    }
    
    .promo-banner {
        height: 250px;
    }
}

/* 북마크 버튼 위치 수정 */
.bookmark-btn {
    position: absolute;
    bottom: 10px; /* 위치 수정: 145px에서 10px로 변경 */
    right: 10px; /* 위치 수정: 2px에서 10px로 변경 */
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #495057;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 5; /* 버튼이 다른 요소 위에 표시되도록 z-index 추가 */
}