/* ================== 초기화 ================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


html, body {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: 'Segoe UI', sans-serif;
  background: #f5f5f5;
}

body {
  display: flex;
  flex-direction: column;
}

@media (max-width:768px){
  body{
    padding-top:120px;
  }
}





/* ===== HEADER ===== */

.page-header{
  max-width:1300px;
  width:100%;
  background:#fff;
  border:2px solid #000;
  border-radius:10px;
  padding:10px 0;      /* 기존 18px → 줄임 */
  margin:0 auto 10px;  /* 아래 여백 줄임 */

  position:fixed;
  top:0;
  z-index:1000;
}

/* 내부 정렬 */
.brand{
  max-width:1000px;
  margin:0 auto;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
}

/* 왼쪽 영역 */
.header-left{
  text-align:left;
}

.site-title{
  margin:0;
  font-size:30px;
  font-weight:700;
  color:#000;
}

.site-desc{
  margin-top:6px;
  font-size:18px;
   font-weight:900;
  color:#000;
}

/* 오른쪽 영역 */
.header-right{
  text-align:right;
}

.header-right h2{
  margin:0;
  font-size:16px;
  font-weight:600;
  color:#000;
}

.service-area{
  margin-top:6px;
  font-size:13px;
  color:#000;
}

/* ===== 모바일 ===== */

@media (max-width:768px){

  .brand{
    flex-direction:column;
    align-items:flex-start;
  }

  .header-right{
    text-align:left;
    margin-top:10px;
  }

  .site-title{
    font-size:30px;
  }

  .header-right h2{
    font-size:15px;
  }

}






.naver-image-pack{
  width:100%;
  max-width:1300px;
  margin:20px auto 20px; /* 헤더 아래 여백 */
  padding:0;
  display:flex;
  gap: 8px;
  box-sizing:border-box;  
  margin-top:120px;
  
   background:#fff;
}









.img-item{
  flex:1;
  position:relative;
  text-decoration:none;
  overflow:hidden;

  border:2px solid #ccc;
  border-radius:8px;
  transition:all 0.3s ease;
}

.img-item:hover{
  border-color:#ff5722; /* 원하는 색상 */
  transform:translateY(-2px);
}
.img-item img{
  width:100%;
  height:140px;
  object-fit:cover; border-radius:6px;
  display:block;
}

.img-item span{
  position:absolute;
  bottom:0;
  left:0;
  right:0;
  height:28px;
  line-height:28px;
  font-size:13px;
  text-align:center;
  color:#fff;
  background:rgba(0,0,0,0.45);
  border-radius:0 0 6px 6px;
}

.image-desc{
  max-width:1300px;
  margin:20px auto;
  padding:16px 20px;

  font-size:14px;
  line-height:1.7;
  color:#000;

  text-align:center;

  border:2px solid #000;
  border-radius:12px;

  background:#fafafa;
}
/* 모바일에서도 4개 유지 */
@media (max-width:600px){
  .img-item img{height:90px}
  .img-item span{font-size:12px}
}





















/* ================== MAIN ================== */
/* ================== MAIN ================== */
main {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 10px 20px;
}
@media (max-width: 768px) {
  main {
    margin-top: 60px;
  }
}




















/* ================== 리뷰 카드 ================== */
#review-board {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  width: 100%;
}

.review-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.2s, border 0.2s;

  border: 1px solid #000; /* ← 여기 */
}

.review-card:hover {
  transform: translateY(-3px);
  border: 2px solid red;
}

.review-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.review-card p {
  margin:5px 10px;
  word-break: break-word;
}

/* 데스크탑: 한 줄 5개 */
@media(min-width:1200px){
  .review-card {
    flex: 0 1 calc((100% - 60px)/5);
    max-width: calc((100% - 60px)/5);
  }
}

/* 태블릿: 한 줄 3개 */
@media(min-width:768px) and (max-width:1199px){
  .review-card {
    flex: 0 1 calc((100% - 30px)/3);
    max-width: calc((100% - 30px)/3);
  }
}

/* 모바일: 한 줄 1개, 스크롤 없음 */
@media(max-width:767px){
  .review-card {
    flex: 0 1 100%;
    max-width: 100%;
  }
}

#review-modal {
  display:none;
  position:fixed;
  top:0; left:0;
  width:100%; height:100%;
  background:rgba(0,0,0,0.6);
  justify-content:center;
  align-items:center;
  z-index:999;
}

#review-modal .modal-content {
  background:#fff;
  padding:20px;
  border-radius:8px;
  max-width:500px;
  width:90%;
  position:relative;
}

#review-modal img {
  width:100%;
  max-height:300px;
  object-fit:cover;
  margin-bottom:10px;
}

#close-modal {
  position:absolute;
  top:10px;
  right:10px;
  cursor:pointer;
  font-size:18px;
}

.modal-rating {
  font-size: 18px;
  color: #f5a623;
  margin: 6px 0 10px;
}
#modal-review { white-space: pre-wrap; }
#modal-date { color:#555; font-size:12px; margin-top:5px; }




/* ================== footer ================== */
footer {
  width: 100%;
  max-width: 1300px;
  margin: 24px auto 20px;
  padding: 14px 16px;
  border: 2px solid #000;
  border-radius: 14px;
  background: transparent;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #000;
}

@media(max-width:768px){
  footer {
    font-size: 0.8rem;
    padding: 12px;
    line-height: 1.5;
  }
}










.header-spacer {
  display: flex;
  flex-wrap: nowrap;        /* 한 줄로 고정 */
  overflow-x: auto;         /* 가로 스크롤 허용 */
  gap: 10px;                /* 카드 사이 간격 */
}

.review {
  flex: 0 0 auto;           /* 자동 확장 방지, 기본 크기 유지 */
  width: 200px;             /* 카드 기본 너비 */
  box-sizing: border-box;
  border: 1px solid #ccc;
  padding: 10px;
  text-align: center;
}

.review img {
  width: 100%;              /* 카드 너비에 맞춰 줄어듬 */
  height: auto;
  display: block;
  margin-bottom: 5px;
}



.review p {
  font-size: 14px;
  margin: 0;
}

/* 화면이 매우 좁아지면 카드 크기 줄임 */
@media screen and (max-width: 600px) {
  .review { width: 150px; }
 
  .review p { font-size: 12px; }
}

@media screen and (max-width: 400px) {
  .review { width: 120px; }

  .review p { font-size: 10px; }
}






/* ================== 스무스 스크롤 ================== */
html { scroll-behavior: smooth; }

section,
[id] {
  scroll-margin-top: 300px; /* header 실제 높이에 맞게 조절 */
}
@media (max-width: 768px) {
  section[id] {
    scroll-margin-top: 100px;
  }
}












.naeil-card {
  border: 2px solid #000;
  border-radius: 16px;
  padding: 32px;

  margin: 40px auto;
  line-height: 1.8;
  color: #000;
  box-sizing: border-box;
  scroll-snap-align: center;
}

.naeil-header {
  text-align: center;
  margin-bottom: 40px;
}

.title {
  font-size: 28px;
  font-weight: 800;
}

.subtitle {
  font-size: 16px;
  margin-top: 8px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  margin: 40px 0 12px;
}

.desc {
  font-size: 16px;
  margin-bottom: 20px;
}

.list {
  padding-left: 18px;
}

.list li {
  margin-bottom: 6px;
}

.step-box {
  display: flex;
  gap: 16px;
  padding: 20px;
  border: 2px solid #222;
  border-radius: 14px;
  margin-bottom: 20px;
}

.step-number {
  min-width: 90px;
  height: 90px;
  background: #222;
  color: #fff;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.path {
  display: inline-block;
  margin-top: 6px;
  padding: 6px 10px;
  background: #f5f5f5;
  border-radius: 6px;
  font-size: 14px;
}

.warning-box {
  margin-top: 40px;
  padding: 20px;
  border: 2px solid #b00020;
  border-radius: 14px;
}

.warning-title {
  font-size: 18px;
  font-weight: 700;
  color: #b00020;
  margin-bottom: 8px;
}

.warning-list {
  padding-left: 18px;
}




/* ===============================
   태블릿 이하 (1024px)
================================ */
@media (max-width: 1024px) {
  .naeil-card {
    padding: 24px;
  }

  .title {
    font-size: 24px;
  }

  .section-title {
    font-size: 20px;
  }

  .step-number {
    min-width: 72px;
    height: 72px;
    font-size: 14px;
  }
}

/* ===============================
   모바일 (768px 이하)
================================ */
@media (max-width: 768px) {
  .naeil-card {
    padding: 20px 16px;
    margin: 20px auto;
  }

  .title {
    font-size: 22px;
  }

  .subtitle {
    font-size: 14px;
  }

  .section-title {
    font-size: 18px;
    margin-top: 32px;
  }

  .desc {
    font-size: 15px;
  }

  .step-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .step-number {
    width: 100%;
    height: auto;
    border-radius: 10px;
    padding: 8px 0;
    text-align: center;
  }

  .step-title {
    font-size: 16px;
  }

  .path {
    font-size: 13px;
    line-height: 1.6;
  }
}

/* ===============================
   소형 모바일 (480px 이하)
================================ */
@media (max-width: 480px) {
  .title {
    font-size: 20px;
  }

  .section-title {
    font-size: 17px;
  }

  .step-number {
    font-size: 13px;
  }

  .warning-box {
    padding: 16px;
  }

  .warning-title {
    font-size: 16px;
  }

  .warning-list li {
    font-size: 14px;
  }
}






.academy-strength {
  width: 100%;           /* 부모 너비 100% */
  margin: 0;             /* 좌우 마진 제거 */
  padding: 0px;         /* 필요시 조정 가능 */
  box-sizing: border-box;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}


.strength-header {
  text-align: center;
  margin-bottom: 40px;
}

.strength-box {
  border: 2px solid #000;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 40px;
}



.feature-card {
  border: 2px solid #222;
  border-radius: 14px;
  padding: 20px;
}

.feature-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 15px;
  line-height: 1.7;
}

/* 반응형 */
@media (max-width: 768px) {
  .academy-strength {
    padding: 20px 16px;
  }

  .feature-title {
    font-size: 16px;
  }

  .feature-desc {
    font-size: 14px;
  }
}




.instructor-intro {
  border: 2px solid #000;
  border-radius: 16px;
  padding: 32px;

  margin: 40px auto;
  line-height: 1.7;
  color: #000;
  box-sizing: border-box;
  scroll-snap-align: center;
}

.instructor-header {
  text-align: center;
  margin-bottom: 36px;
}




/* 기본 (PC) */
#ppl {
  word-break: keep-all;
}

/* 태블릿 이하 */
@media (max-width: 1024px) {
  #ppl {
    padding: 28px;
  }

  #ppl p:first-of-type {
    font-size: 22px !important;
  }
}

/* 모바일 */
@media (max-width: 768px) {
  #ppl {
    padding: 22px;
  }

  #ppl p:first-of-type {
    font-size: 20px !important;
    line-height: 1.4;
  }

  #ppl p:nth-of-type(2) {
    font-size: 15px !important;
    line-height: 1.7;
  }

  /* 서명 위치 고정 해제 → 자연스럽게 아래로 */
  #ppl p:last-of-type {
    position: static !important;
    margin-top: 24px;
    text-align: right;
  }
}

/* 초소형 모바일 */
@media (max-width: 480px) {
  #ppl {
    padding: 18px;
  }

  #ppl p:first-of-type {
    font-size: 18px !important;
  }
}


























/* ==================== 제목 ==================== */
.training-title {
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: bold;
}

/* ==================== 박스 ==================== */
.simple-box {
  border: 1.5px solid #000;
  border-radius: 14px;
  padding: 20px;
  background-color: #fff;
  margin-bottom: 20px;
}

/* ==================== 상단 헤더 ==================== */
.training-header {
  display: flex;
  align-items: center;      
  gap: 12px;                
  flex-wrap: wrap;          
  margin-bottom: 20px;      
  justify-content: left;  
  text-align: left;
}

.training-header .course-title {
  border: 2px solid #FF00FF;  /* 초기 테두리 색상 */
  border-radius: 8px;
  padding: 8px 16px;
  margin-bottom: 12px;
  text-align: center;
  font-size: 24px;
  color: #000000;             /* 초기 글씨 색상 */
  font-weight: 400;            /* 기본 글꼴 굵기 */
  text-shadow: none;          /* 선명하게 */
  animation: fontColorPulse 4s linear infinite;
  transition: all 0.3s ease;
}

/* 호버 시 살짝 확대 */
.training-header .course-title:hover {
  transform: scale(1.05);
}


/* h4 기본 스타일 */
.training-header h4 {
  font-size: 24px;
  font-weight: bold;
  margin: 0;
  flex: 1 1 auto;           
  min-width: 150px;         
}

/* 버튼/상태 */
.training-header strong,
.training-header a {
  border: 1px solid #000;
  border-radius: 10px;
  padding: 2px 8px;
  text-decoration: none;
  color: #000;
  font-size: 24px;
  flex: 0 1 auto;           
  min-width: 80px;           
}

/* ==================== 하단 항목 grid ==================== */
.training-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 16px;
  font-size: 16px;
}

.training-info-grid > div {
  display: flex;
  gap: 8px;
  line-height: 1.6;
  flex-wrap: wrap;
}

.training-info-grid strong {
  min-width: 90px;
  font-weight: 600;
}

.training-info-grid span {
  font-size: 15px;
  word-break: break-word;
}

/* ==================== 반응형 ==================== */
@media (max-width: 1024px) {
  .training-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .training-info-grid {
    grid-template-columns: 1fr;
  }

  .training-info-grid > div {
    white-space: normal;
  }

  .training-header {
    justify-content: flex-start;  
  }

  .training-header h4 {
    font-size: 18px;              
  }

  .training-header strong,
  .training-header a {
    font-size: 16px;              
  }
}

/* 글씨 색상 + 굵기 + 테두리 색상 애니메이션 */
@keyframes fontColorPulse {
  0%, 100% {
    color: #FF00FF;
    font-weight: 400;       /* 기본 굵기 */
    border-color: #FF00FF;
  }
  12.5% {
    color: #FF00FF;
    font-weight: 700;       /* 진하게 */
    border-color: #FF00FF;
  }
  25% {
    color: #FF0000;
    font-weight: 400;       /* 기본 굵기 */
    border-color: #FF0000;
  }
  37.5% {
    color: #FF0000;
    font-weight: 700;       /* 진하게 */
    border-color: #FF0000;
  }
  50% {
    color: #0000FF;
    font-weight: 400;
    border-color: #0000FF;
  }
  62.5% {
    color: #0000FF;
    font-weight: 700;
    border-color: #0000FF;
  }
  75% {
    color: #00FF00;
    font-weight: 400;
    border-color: #00FF00;
  }
  87.5% {
    color: #00FF00;
    font-weight: 700;
    border-color: #00FF00;
  }
}












.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;  /* 왼쪽-중앙-오른쪽 배치 */
  border: 1px solid #ddd;
  padding: 12px 16px;
  border-radius: 12px;
  width: 100%;
  background-color: #f9f9f9;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  gap: 10px;
  flex-wrap: wrap;                 /* 모바일에서 세로 배치 가능 */
   margin-top: 16px;
}

/* 상담전화 */
.phone-link {
  flex-shrink: 0;                  /* 고정폭 */
  text-decoration: none;
  color: #000;        
  font-weight: normal; 
  font-size: 16px;     
  transition: all 0.2s ease; 
}
.phone-link:hover {
  color: #3326a7;      
  font-weight: bold;    
  font-size: 20px;      
}

/* 신청방법 텍스트 */
.how-to-apply {
  flex: 1;                         /* 남은 공간 차지 */
  text-align: center;               /* 중앙 정렬 */
  font-weight: bold;
  font-size: 18px;
  color: #000;
  word-break: break-word;           /* 글자 길어도 줄바꿈 */
}

/* 신청하기 버튼 */
.apply-btn {
  flex-shrink: 0;                   /* 고정폭 */
  border: 1px solid #000;
  border-radius: 12px;
  padding: 10px 40px;
  text-decoration: none;
  color: #000;
  font-size: 20px;
  font-weight: bold;
  transition: all 0.3s ease;
}
.apply-btn:hover {
  border-color: red;
  background-color: #f0f0f0;
}

/* ================= 반응형 ================= */
@media (max-width: 600px) {
  .contact-row {
    flex-direction: column;          /* 세로 배치 */
    align-items: stretch;            /* 폭 전체 사용 */
  }

  .how-to-apply {
    text-align: left;
    margin: 6px 0;
    font-size: 16px;
  }

  .apply-btn {
    width: 100%;                     /* 버튼 전체 폭 */
    text-align: center;
    padding: 12px 0;
    font-size: 18px;
    margin-top: 8px;
  }

  .phone-link {
    font-size: 16px;
  }
}








/* 버튼 그룹 */
.button-group {
  display: flex;
  justify-content: space-between; /* 🔥 좌·우 끝 */
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
  width: 100%;
}

/* 모든 버튼 공통 */
.button-group a {
  flex: 1 1 260px;          /* 반응형 기준 */
  max-width: 300px;
  width: 100%;

  text-align: center;
  padding: 14px 16px;
  border-radius: 10px;
  border: 2px solid #000;
  color: #020202;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;

  transition: all 0.2s ease;
}

/* hover */
.button-group a:hover {
  border-color: #ff01c8;
  transform: scale(1.04);
}

/* 카카오 버튼 */
.kakao-chat-btn:hover {
  color: #550369;
}

/* 전화 아이콘 */
.call-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 22px;
  height: 22px;
  margin-right: 6px;

  background: #ffe5e5;
  color: #b00000;
  border-radius: 50%;

  font-size: 18px;
  font-weight: 900;

  transition: all 0.2s ease;
}

/* 전화 버튼 hover 시 아이콘 강조 */
.contact-btn:hover .call-icon {
  background: #b00000;
  color: #ffffff;
}

/* 📱 모바일 반응형 */
@media (max-width: 520px) {
  .button-group {
    justify-content: center;
  }

  .button-group a {
    max-width: 100%;
  }
}








/* ================== 버튼 ================== */
#load-more {
  margin: 20px auto;
  display: block;

  /* 🔹 반응형 버튼 폭 */
  width: 100%;
  max-width: 300px;

  padding: 10px 20px;
  font-size: 16px;
  font-weight: 700;
  border: 2px solid #000;      /* 기본 테두리 */
  border-radius: 8px;
  color: #000;                /* 글씨색 */

  cursor: pointer;
  transition: border-color 0.3s ease;
}

/* hover 효과 */
#load-more:hover {
  border-color: #f0242e;
}


/* 부모 컨테이너 */
.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

/* 공통 버튼 */
.share-btn {
  flex: 1 1 260px;      /* 🔥 반응형 핵심 */
  max-width: 300px;

  padding: 10px 14px;
  border: none;
  border-radius: 8px;

  font-size: 14px;
  font-weight: 700;
  color: #fff;

  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

/* hover 효과 */
.share-btn:hover {
  transform: scale(1.05);
  filter: brightness(0.9);
}

/* 개별 버튼 색상 */
.share-btn.naver {
  background: #03C75A;
}

.share-btn.band {
  background: #512DA8;
}

.share-btn.sms {
  background: #666;
}

/* 모바일에서 hover 제거 (선택) */
@media (hover: none) {
  .share-btn:hover {
    transform: none;
    filter: none;
  }
}


























.hugi-list {
  margin-top: 8px;
  padding-left: 0;
  list-style: none;
}

.hugi-list li {
  margin-bottom: 4px;
  line-height: 1.5;
}






/* ⭐ 별점 CSS */
.star {
  display: inline-block;
  width: 20px;
  height: 20px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 51 48"><polygon points="25,0 32,17 51,18 36,29 41,48 25,37 9,48 14,29 -1,18 18,17" fill="%23ccc"/></svg>') no-repeat center/contain;
  position: relative;
  margin-right: 2px;
}
.star.full::before,
.star.half::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 51 48"><polygon points="25,0 32,17 51,18 36,29 41,48 25,37 9,48 14,29 -1,18 18,17" fill="%23f5a623"/></svg>') no-repeat center/contain;
  z-index: 1;
}
.star.full::before { width: 100%; }
.star.half::before { width: 50%; }










        /* 광고 컨테이너 반응형 처리 */
        .ads-container {
            width: 100%;
            max-width: 320px; /* 최대 너비 */
        }







            h2 {
        font-size: 22px;
        font-weight: bold;
        color: #000000; /* 핑크 계열 강조 색상 */
        margin-bottom: 20px;
 
    }
/* ul.ss 기본 스타일 */
ul.ss {
    list-style: none;        /* 기본 점 제거 */
    padding: 0;              /* padding 제거 */
    margin: 10px 0 0 0;
    display: flex;
    flex-wrap: wrap;          /* 줄 바꿈 허용 */
    justify-content: space-between; /* 좌우 끝에 맞춤 */
}

/* ul.ss li 스타일 */
ul.ss li {
    border: 2px solid #000;  
    border-radius: 10px;     
    padding: 15px 10px;       /* 좌우 padding 줄임 */
    text-align: center;
    box-sizing: border-box;

    flex: 1 1 calc(25% - 0px); /* 부모폭에 맞춰 4등분, 좌우 갭 0 */
    min-width: 150px;
    transition: transform 0.2s;
}

ul.ss li:hover {
    transform: translateY(-3px);
}

/* 모바일: 1열 */
@media (max-width: 480px) {
    ul.ss li {
        flex: 1 1 100%;
        min-width: 0;
    }
}

/* 태블릿: 2열 */
@media (max-width: 768px) {
    ul.ss li {
        flex: 1 1 48%; /* 두 칸 꽉 채움, 좌우 여백 2% */
    }
}

/* 큰 화면: 4열 */
@media (min-width: 1200px) {
    ul.ss li {
        flex: 1 1 24%; /* 4등분, gap 없이 꽉 채움 */
    }
}













