/* Google Fonts 필기체 추가 */
@import url('https://fonts.googleapis.com/css2?family=Pacifico&display=swap');

:root{--bg:#f7f7f7;--card:#ffffff;--accent:#ffffff;--muted:#666;--danger:#e02424}
*{box-sizing:border-box}
body{  margin:0;  padding-top: 30px;    font-family: -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', '맑은 고딕', 'Noto Sans KR', Arial, sans-serif;background:var(--bg);color:#111}

/* ===== 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:sticky;
  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;
  }

}




    /* layout */
    .wrap{max-width:1300px;margin:22px auto;padding:0 16px;display:grid;grid-template-columns:1fr 320px;gap:22px}
    .main{display:flex;flex-direction:column;gap:14px}
    .post-card{background:var(--card);padding:14px;border-radius:12px;box-shadow:0 6px 18px rgba(16,24,40,0.05)}
    .post-card .thumb{width:100%;height:180px;object-fit:cover;border-radius:8px;margin-bottom:10px}
    .post-card h2{margin:0 0 8px 0;font-size:18px}
    .meta{font-size:13px;color:var(--muted);margin-bottom:8px}
    .excerpt{line-height:1.6;color:#222}

    .sidebar .widget{background:var(--card);padding:12px;border-radius:10px;margin-bottom:12px}
    .search{display:flex;gap:8px}
    .search input{flex:1;padding:8px;border-radius:6px;border:1px solid #000000}
    .btn{display:inline-block;padding:8px 12px;border-radius:8px;background:var(--accent);color:#ffffff;text-decoration:none;cursor:pointer}

    .filters{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
    .chip{padding:6px 10px;border-radius:999px;border:1px solid #1c469b;background:#fff;cursor:pointer}
    .chip.active{background:var(--accent);color:#000000;border-color:transparent}

    .load-more{display:block;margin:8px auto 20px auto;padding:10px 14px;border-radius:8px;border:0;background:#111;color:#fff;cursor:pointer}

    .site-footer{text-align:center;color:var(--muted);font-size:13px;padding:28px 12px}

    /* admin */
    .admin-bar{display:flex;gap:8px;align-items:center}
    .admin-card{background:var(--card);padding:14px;border-radius:10px;box-shadow:0 6px 18px rgba(16,24,40,0.05);margin-bottom:12px}
    input,textarea,select{width:100%;padding:10px;margin-top:6px;border:1px solid #e6e9ef;border-radius:8px}
    .post-list{margin-top:10px}
    .post-item{display:flex;gap:12px;align-items:center;padding:10px;border-radius:8px;border:1px solid #f0f2f5;margin-bottom:8px}
  .post-item img {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 40 / 21;
  object-fit: cover;
  border-radius: 8px;
}
    .post-actions{margin-left:auto;display:flex;gap:8px}
    .danger{background:var(--danger);color:#fff}

    /* modal */
 .modal {
  position: fixed;
  inset: 0;
  background: rgba(3,7,18,0.6);
  display: none;

  /* 중앙 → 위 기준으로 변경 */
  align-items: flex-start;

  /* 원하는 만큼 내리기 */
  padding-top: 180px;

  justify-content: center;
  padding-left: 20px;
  padding-right: 20px;
}

.modal .panel {
  max-width: 900px;
  width: 100%;
  background: var(--card);
  border-radius: 10px;
  padding: 20px;
  overflow: auto;
  max-height: 88vh;
}
    .close-btn{background:#eee;padding:6px 10px;border-radius:6px;cursor:pointer}

    @media (max-width:980px){.wrap{grid-template-columns:1fr}.sidebar{order:2}}
    @media (max-width:540px){.post-card .thumb{height:140px}}



      h1{
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 20px;
  }
  #content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    padding-bottom: 40px;
  }
  .card {
    background: #fff;
    padding: 18px;
    border-radius: 14px;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.06);
    border: 1px solid #eaeaea;
  }
  .stars {color: #FFD700; font-size: 17px; margin-bottom: 8px;}
  .category {font-size: 14px; color: #555; margin-bottom: 6px;}
  blockquote {
    margin: 10px 0;
    font-size: 15px;
    line-height: 1.45;
    color: #333;
  }
  .copy-btn {
    margin-top: 12px;
    padding: 8px 12px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
  }
  .btn-area {margin: 20px 0;}
  textarea{
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 15px;
    line-height: 1.5;
  }
  .btn{
      display: block;
    padding: 10px 14px;
    font-size: 14px;
    color: #000000;
    background: #ffffff;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s;
    border: 1px solid #000000;  /* 실선 테두리 추가 */
  }















/* -----------------------------------------
   SLIDER (가로 5개 완전 고정 + 스크롤 없음)
----------------------------------------- */
.slider {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 8px;

  padding: 10px 4px 14px 4px;
  background: #fff;
  border-bottom: 1px solid #e6e9ef;

  overflow: hidden; /* 스크롤 완전 제거 */
}

.slider figure {
  flex: 0 0 calc(20% - 6px);
  margin: 0;
}

.slider img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 12px;
}

.slider figcaption {
  text-align: center;
  margin-top: 6px;
  font-size: 14px;
  color: #444;
}

/* PC 넓은 화면 */
@media (min-width: 1024px) {
  .slider img {
    height: 200px;
  }
}

/* -----------------------------------------
   모바일 — 전체 축소 + 글자 작게 유지

@media (max-width: 768px) {
  .slider {
    transform: scale(0.82);
    transform-origin: left top;
  }

  .slider img {
    height: 120px;
  }

  .slider figcaption {
    font-size: 12px;
  }
}----------------------------------------- */

@media (max-width: 768px) {

  /* 슬라이더를 가운데 정렬 */
  .slider {
    transform: scale(0.82);
    transform-origin: top center; /* 가운데 기준으로 축소 */
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: center;
  }

  .slider img {
    height: 120px;
  }

  .slider figcaption {
    font-size: 12px;
  }
}




/* 문의 박스 공통 */
.contact-box {
         display: block;
    padding: 10px 14px;
    font-size: 14px;
    color: #000000;
    background: #ffffff;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s;

}

.contact-box h3 {
  margin: 0 0 10px;
  font-size: 24px;
  color: #000000;
}

/* 전화 버튼 스타일 */
.call-btn {
  display: block;
  padding: 10px 14px;
  font-size: 16px;
  color: #000000;
  background: #ffffff;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s, color 0.2s;
  border: 1px solid #000000;  /* 실선 테두리 추가 */
  cursor: pointer;
}

.call-btn:hover {
  background: #4b27eb; /* 배경색 반전 */
  color: #ffffff;      /* 글자색 반전 */
}

/* 모바일 최적화 */
@media (max-width: 600px) {
  .contact-box {
    padding: 16px;
  }

   .call-btn {
    font-size: 20px;
    padding: 12px;
    width: 100%;          /* 가로 최대 크기 */
    box-sizing: border-box; /* padding 포함해서 100% 적용 */
  }
}



.call-icon {
  font-size: 20px;
  margin-right: 6px;
  vertical-align: middle;
}


.footer {
  background: #f3f4f6;
  padding: 20px 10px;
  border-top: 1px solid #ddd;
  font-family: 'Noto Sans KR', sans-serif;
  text-align: center;   /* 텍스트 가운데 정렬 */
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: center;    /* 전체를 가운데 배치 */
  white-space: nowrap;        /* 줄바꿈 금지 */
  overflow-x: auto;           /* 모바일에서 가로 스크롤 */
  scrollbar-width: none;      /* Firefox 스크롤 숨김 */
}

.footer-container::-webkit-scrollbar {
  display: none;              /* 크롬 스크롤 숨김 */
}

.footer-box {
  display: flex;
  gap: 20px;                 /* 항목 간 간격 */
  align-items: center;
  font-size: 14px;
  color: #444;
}

.footer-title {
  font-weight: 700;
  color: #222;
}

.footer-box a {
  color: #000000;
  text-decoration: none;
}

.footer-box a:hover {
  text-decoration: underline;
}












/* 사이드바 유튜브 그리드: 1열 고정 */
.sidebar-youtube-grid {
  display: grid;
  grid-template-columns: 1fr; /* 항상 1열 */
  gap: 10px;
}

/* 더보기 박스 높이 */
#moreYoutubeBox {
  width: 100%;
  height: 150px; /* 필요 시 조절 가능 */
  margin: 12px 0 0 0;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

#moreYoutubeBox img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#moreYoutubeBox .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.2s, transform 0.2s;
}

#moreYoutubeBox:hover .overlay {
  background: rgba(0,0,0,0.5);
  transform: scale(1.03);
}






.card {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  border-radius: 12px;
  background: #fff;
}
.card h4 {
  margin-bottom: 10px;
}
.card img {
  width: 100%;
  margin-top: 15px;
  border-radius: 12px;
}









.load-more {
  display: block;
  margin: 30px auto 0;
  padding: 12px 26px;
  font-size: 16px;
  background: #ffffff;
  color: #000000;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
}
.load-more:hover {
  background: #ffffff;
}




  .review-card {
    border:1px solid #ddd;
    padding:15px;
    border-radius:10px;
    margin-bottom:15px;
    background:#fff;
    box-shadow:0 2px 6px rgba(0,0,0,0.08);
  }








.button-wrap { 
  text-align:center; 
  margin:20px 0; 
  display:block;        /* 반드시 블록 레벨 */
}
.call-btn {
  display:inline-block; 
  padding:12px 24px; 
  background:#ffffff; 
  color:#000000; 
  border-radius:8px; 
  font-weight:bold; 
  text-decoration:none;
}






























/* postsList UL 컨테이너 */
#postsContainer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 0;
  margin: 0 auto;
  width: 100%; /* 반응형 */
  max-width: 1200px; /* 최대 넓이 */
  list-style: none;
  box-sizing: border-box;
}

/* UL 안 LI 카드 */
#postsContainer ul li {
  flex: 0 0 calc(50% - 10px); /* 기본: 2개 */
  box-sizing: border-box;
  border: 1px solid #ddd;
  padding: 10px;
  background: #fff;
  border-radius: 8px;
  margin-bottom: 20px;
}

/* 썸네일 이미지 */
#postsContainer ul li .thumb {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}








.post-header,
.post-body{
  border:2px solid #000;
  border-radius:12px;
  background:none;
}

.post-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  padding:16px;
  margin-bottom:16px;
}

.post-body{
  padding:20px;
}
.post-header h2 {
  margin: 0;
  font-size: 16px;
  flex: 1 1 auto;
}

.post-header .post-date {
  font-size: 13px;
  color: #888;
  flex-shrink: 0;
}

/* excerpt */
.excerpt {
  font-size: 14px;
  text-align: left;
}

/* Load More 버튼 */
#loadMoreBtn {
  display: block;
  width: 300px;        /* 버튼 가로 넓이 */
  margin: 30px auto;   /* 가운데 정렬 */
   padding: 6px 20px; /* 버튼 높이 */
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;

  border: 2px solid #000;
  border-radius: 8px;
  background: #fff;
  transition: 0.2s;
}

#loadMoreBtn:hover{
  background:#652ceb;
  color:#fff;
}

/* ================================ */
/* 반응형 미디어쿼리 */
/* ================================ */

/* 화면 <= 992px: 2개 → 2개 유지 */
@media (max-width: 992px) {
  #postsContainer ul li {
    flex: 0 0 calc(50% - 10px);
  }
}

/* 화면 <= 768px: 2개 → 1개 */
@media (max-width: 768px) {
  #postsContainer ul li {
    flex: 0 0 100%;
  }
}

/* 화면 <= 480px: 여백 조금 줄이기 */
@media (max-width: 480px) {
  #postsContainer ul {
    gap: 10px;
  }
  #postsContainer ul li {
    padding: 8px;
  }
}






 




.naver-image-pack{
  max-width:1300px;
  margin:20px auto;
  padding:0 12px;
  display:flex;
  gap:8px;
  box-sizing:border-box;
}

.img-item{
  width:calc((100% - 24px) / 4);
  position:relative;
  text-decoration:none;
}

.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}
}




























/* ==================== 제목 ==================== */
.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;
  }
}







.action-alim {
  display: flex;
  gap: 10px;
  font-size: 22px;
  width: 100%;
  flex-wrap: wrap;
}
.action-alim a.btn-dark {
  flex: 1 1 calc(50% - 5px);
  text-align: center;
  padding: 8px 0;
  border: 1px solid #000;
  border-radius: 8px;
  background-color: transparent;
  color: #000;
  text-decoration: none;
  font-weight: bold;
  box-sizing: border-box;
  min-width: 120px;
}
.action-alim a.btn-dark:hover { background-color: #f0f0f0; }

/* ---------------- 반응형 ---------------- */
@media (max-width: 480px) {
  .training-info1 p { flex: 1 1 100%; }
  .action-alim a.btn-dark { flex: 1 1 100%; }
}



.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;
  }
}












.collapsible {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  width: 100%;
  max-width: 900px;
}

.collapsible li {
  margin-bottom: 12px;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #ddd;
}

.collapsible-header {
  padding: 12px 16px;
  font-size:18px;
  font-weight:600;
}

/* PC 레이아웃 */
.flex-wrap {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 15px;
  align-items: start;
  padding: 12px 16px 24px 16px;
}

.flex-wrap img {
  border-radius: 8px;
  width:120px;
  height:160px;
  object-fit:cover;
}

.flex-wrap p {
  margin:0;
  text-align:left;
  font-size:15px;
  line-height:1.6;
}

/* 📱 모바일 */
@media (max-width:768px){

  .flex-wrap{
    display:flex;
    flex-direction:column;
    gap:10px;
  }

  .flex-wrap img{
    width:100%;
    height:auto;
    max-height:220px;
    object-fit:cover;
  }

  .flex-wrap p{
    font-size:15px;
  }

}