/* 컨테이너 */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}



/* 카드 그리드 */
.program-card-grid {
	
  display: grid;
  grid-template-columns: repeat(3, 1fr);  /* PC: 3개 */
  gap: 24px;
}

/* 카드 그리드 */
.promo-card-grid {
	
  display: grid;
  grid-template-columns: repeat(3, 1fr);  /* PC: 3개 */
  gap: 24px;
}


/* 태블릿: 2개 */
@media (max-width: 1024px) {
  .program-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .promo-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }	
}

/* 모바일: 1개 */
@media (max-width: 768px) {
  .program-card-grid {
    grid-template-columns: 1fr;
  }
  .promo-card-grid {
    grid-template-columns: 1fr;
  }
	
}

.program-card,
.program-card-blue {
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 700px;
  background: #fff;
  border: 2px solid #6b5cff;
  overflow: hidden;
  font-family: 'Noto Sans KR', sans-serif;
}

.program-card-blue {
  border-color: #0052cc;         /* 보더 색만 블루로 변경 */
}



/* 기존 */
.promo-card {
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 550px;
  background: #fff;
  border: 2px solid #6b5cff;   /* 보라 */
  overflow: hidden;
  font-family: 'Noto Sans KR', sans-serif;
}

.promo-card-small {
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 450px;
  background: #fff;
  border: 2px solid #6b5cff;
  overflow: hidden;
  font-family: 'Noto Sans KR', sans-serif;
}


.promo-card.promo-card-blue,
.promo-card-small.promo-card-small-blue {
  border-color: #0052cc;
}

/* 선택: 라벨 색도 블루로 통일하고 싶다면 */
.promo-card.promo-card-blue .card-label,
.promo-card-small.promo-card-small-blue .card-label {
  background: #0052cc;
  color: #fff;
}

/* 카드 1개 */
.program-phil-card {
  aspect-ratio: 1 / 1.9;  /* 황금비율 유지 */
  background: #fff;
  border: 2px solid #6b5cff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: 0.3s;
  font-family: 'Noto Sans KR', sans-serif;	
  height: 100%; /* 높이는 유동적이거나 min-height 지정 */
  
	
}
.card-button.disabled {
  background-color: #ccc;
  cursor: not-allowed;
  pointer-events: none;
}

.program-card:hover {
  border-color: #6b5cff;  /* 유학피플 메인컬러 강조 */
  box-shadow: 0 8px 20px rgba(230, 0, 18, 0.3);  /* 붉은 그림자 */
  transform: translateY(-6px) scale(1.02);      /* 약간 띄우고 확대 */
  background-color: #fff8f9;  /* 붉은 느낌 배경 */	
  transition: all 0.3s ease;
  z-index: 10;
}

.promo-card:hover {
  border-color: #6b5cff;
  box-shadow: 0 8px 20px rgba(107,92,255,0.35);
  transform: translateY(-6px) scale(1.02);      /* 약간 띄우고 확대 */
  background-color: #f6f5ff;
  transition: all 0.3s ease;
  z-index: 10;
}


.program-phil-card:hover {
  border-color: #6b5cff;  /* 유학피플 메인컬러 강조 */
  box-shadow: 0 8px 20px rgba(230, 0, 18, 0.3);  /* 붉은 그림자 */
  transform: translateY(-6px) scale(1.02);      /* 약간 띄우고 확대 */
  background-color: #fff8f9;  /* 붉은 느낌 배경 */	
  transition: all 0.3s ease;
  z-index: 10;
}



.card-image {
  flex-shrink: 0;
  height: 397px;       /* 이미지는 고정 유지 */
  width: 100%;
  overflow: hidden;
  position: relative;
}

.card-image img {
  height: 100%;
  width: 100%;
  object-fit: fill;  /* 또는 contain, 필요 시 none */
  display: block;
}

.card-image-small {
  flex-shrink: 0;
  height: 250px;       /* 이미지는 고정 유지 */
  width: 100%;
  overflow: hidden;
  position: relative;
}

.card-image-small img{
  height: 100%;
  width: 100%;
  object-fit: fill;  /* 또는 contain, 필요 시 none */
  display: block;
}

.card-label {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #6b5cff;
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 2px;
  transition: all 0.3s ease;	
}

.program-card:hover .card-label {
  background-color: #f84c4f;
}

.card-body {
 flex: 1;  /* 남은 공간을 채움 */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* 상단 내용 + 하단 버튼 분리 */
  padding: 12px 16px 16px 16px;

}

.card-body > .card-tags {
  margin-bottom: auto; /* 남은 공간 밀어냄 */
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 0px 0;  /* 하단 간격만 살짝 */
  padding: 0;	
}

.card-subtitle {
  
	
  margin: 0 0 8px 0;
  font-size: 13px;
  color: #222; /* 기존보다 더 진한 회색 */
  line-height: 1.6;
  font-weight: 550; /* 글씨 두께 중간 단계 */
  letter-spacing: -0.2px; /* 한글에 적절한 약간의 자간 조정 */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;	
}
.card-tags {

  margin-bottom: 0px; /* ↓ 간격 최소화 */
}

.card-tags .tag {
  font-size: 12px;
  padding: 5px 10px;
  height: 28px;         /* 버튼 높이 고정 */
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ccc;
  border-radius: 2px;
  white-space: nowrap;
  background-color: #fff;
  color: #333;
  box-sizing: border-box;
}

.card-tags .tag.area {
  background-color: #eef4ff;
  border-color: #c8dfff;
  color: #3366cc;
  cursor: default;
  pointer-events: none; /* 클릭 방지 */
}

.card-tags .tag:hover {
  border-color: #007bff;
  color: #007bff;
  cursor: default;
}

.card-tags .tag.area:hover {
  border-color: #c8dfff;
  color: #3366cc;
}

/* 새롭게 정의된 링크 버튼 스타일 */
.card-links {
	
	
  display: flex;
  flex-wrap: wrap;
  gap: 0px 6px;
  margin-top: 6px;
  margin-bottom: 0;
  
  justify-content: flex-start;
  padding-left: 0;     /* ← 혹시 있을 경우 제거 */
  margin-left: 0;      /* ← 혹시 있을 경우 제거 */
}

/* 공통 spare_tags_link 버튼 스타일 */
.card-links .tag-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  height: 28px;
  line-height: 1.2;
  border-radius: 4px;
  white-space: nowrap;
  background-color: #007bff; /* 파란색 배경 */
  color: #fff;               /* 흰색 글자 */
  border: 1px solid #007bff;
  margin: 0 2px 8px 0;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

.card-links .tag-link:hover {
  background-color: #0056b3; /* 진한 파란색 */
  border-color: #0056b3;
}


/* 공통 버튼 스타일 */
.tag-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  height: 28px;
  line-height: 1.2;
  border-radius: 4px;
  white-space: nowrap;
  background-color: #e6f4ea;  /* 연한 연두색 배경 */
  color: #19733e;             /* 진한 녹색 글씨 */
  border: 1px solid #cce3d6;  /* 은은한 연두 테두리 */
  box-sizing: border-box;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
  margin: 0 2px 8px 0;
  text-decoration: none;
}

/* hover 시: 테두리만 진하게 */
.tag-link:hover {
  border-color: #19733e;  /* 진한 녹색 테두리 */
  color: #19733e;         /* 글씨색은 유지 */
  background-color: #e6f4ea; /* 배경색은 그대로 */
}


/* 세부 색상 지정 */
.card-links .tag-pic {
  background-color: #e6f4ea;
  color: #19733e;
  border: 1px solid #cce3d6;
}

.card-links .tag-book {
  background-color: #e6f8f8;
  color: #157575;
  border: 1px solid #c2eeee;
}

.tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  padding: 5px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  color: #222;
  text-decoration: none;
  cursor: pointer;  /* ← 여기! 손모양으로 */
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.tag:hover {
  
  background-color: #d8e4ff;   /* ← 기존보다 더 진한 연파랑 */
  border-color: #3366cc;
  color: #003399;
}
/* 링크 없는 태그 */
.tag.disabled {
	
  cursor: default;
  pointer-events: none;
  background-color: #f9f9f9;
}

.card-button {
  margin-top: 12px;
  width: 100%;
  text-align: center;
  background-color: #6b5cff;
  color: #fff;
  font-size: 13px;
  padding: 10px 0;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.card-button:hover {
  background-color: #4f3cff;
}



.card-stats-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-size: 13px;
  flex-wrap: wrap;
}

.card-left-info,
.card-right-info {
  flex: 1;
  display: flex;
  align-items: center;
  font-size: 13px;
}

.card-left-info {
  justify-content: flex-start;
  color: #d60000;
  font-weight: 600;
  padding-right: 8px;
  white-space: nowrap;
}

.card-right-info {
  justify-content: flex-end;
  gap: 10px;
  color: #444;
}

.card-right-info .like-count.liked {
  color: #d60000;
}

.like-count {
  cursor: pointer; /* ← 커서 변경 추가 */
  transition: color 0.2s;
}

.like-count:hover {
  color: red;
}



.tag-pic {
  background-color: #e6f4ea;
  color: #19733e;
  border-color: #cce3d6;
}
.tag-pic:hover {
  background-color: #d3ecd8;
  border-color: #98d5b2;
  color: #125c2c;
}

/* 브로셔: 민트 */
.tag-book {
  background-color: #e6f8f8;
  color: #157575;
  border-color: #c2eeee;
}
.tag-book:hover {
  background-color: #cceff1;
  border-color: #98dcdc;
  color: #116060;
}



.price-line {
  margin-top: 4px;
  color: black;
  margin-bottom: 6px; /* 혹은 padding-bottom: 4px 등 */	
}

.price-period {
  font-weight: 500;	
  color: #333; /* 검정색으로 변경 */
  margin-bottom: 4px;
}

.price-label {
  font-weight: 500;
  color: black;
}

.price-regular {
  font-weight: 500;	
  color: red;
  margin-left: 4px;
}

.arrow {
  margin: 0 4px;
  color: black;
}

.price-discount {
  color: red;
  font-weight: 500;
  line-height: 1; /* ← 이 값을 조절하세요 (기본은 1~1.5) */
}

.discount-until {
  color: #444;
  font-size: 13px;
  margin-left: 6px;
  line-height: 1; /* ← 이 값을 조절하세요 (기본은 1~1.5) */	
}

.price-toggle-inline {
  margin-left: 10px;
  cursor: pointer;
  color: #007bff;
  
  font-weight: normal;
}

.price-toggle-inline:hover {
  color: #0056b3;
}

.extra-price.hidden {
  display: none;
}

.card-period-price {
  margin: 0 0 8px 0;
  font-size: 13px;
  color: #222; /* 기존보다 더 진한 회색 */
  line-height: 1.6;
  font-weight: 700; /* 글씨 두께 중간 단계 */
  letter-spacing: -0.2px; /* 한글에 적절한 약간의 자간 조정 */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* 캠프 일정 영역 */
.card-period-list {
  margin: 0 0 8px 0;
  font-size: 13px;
  color: #222;
  line-height: 1.6;
  font-weight: 500;
  letter-spacing: -0.2px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.period-line {
  margin-top: 4px;
  margin-bottom: 6px;
  color: #222;
}

/* 일정 3번째부터 숨김 */
.extra-period.hidden {
  display: none;
}

/* 일정 더보기 버튼 */
.period-toggle-inline {
  display: inline-block;
  margin-top: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #007bff;
  font-size: 13px;
  font-family: inherit;
  font-weight: normal;
  cursor: pointer;
}

.period-toggle-inline:hover {
  color: #0056b3;
}
.card-period-price .period {
  font-weight: 500;
  color: #333;
  margin-bottom: 2px;
}

.card-period-price .price-line {
  color: #d93025;
  font-weight: 600;
}

.card-period-price .price-regular {
  margin-right: 0px;
  margin-left: 0px;		
}

.card-period-price .price-discount {
  margin-right: 0px;
  margin-left: 0px;	
}

.card-period-price .discount-msg {
  color: #444;
  font-weight: normal;
  font-size: 13px;
}

.price-regular.strike {
  text-decoration: line-through;
  text-decoration-thickness: 0.8px; /* ← 기본값보다 가늘게 */
  
}


/* ===== 블루 테마 오버라이드 (파일 맨 아래에 추가) ===== */

/* 보더 */
.promo-card.promo-card-blue,
.promo-card-small.promo-card-small-blue { border-color:#0052cc; }
.program-card.program-card-blue { border-color:#0052cc; }

/* 라벨 */
.promo-card.promo-card-blue .card-label,
.promo-card-small.promo-card-small-blue .card-label,
.program-card.program-card-blue .card-label {
  background:#0052cc; color:#fff;
}

/* 버튼(기본/호버) */
.promo-card.promo-card-blue .card-button,
.promo-card-small.promo-card-small-blue .card-button,
.program-card.program-card-blue .card-button {
  background:#0052cc; border-color:#0052cc; color:#fff;
}
.promo-card.promo-card-blue .card-button:hover,
.promo-card-small.promo-card-small-blue .card-button:hover,
.program-card.program-card-blue .card-button:hover {
  filter:brightness(0.95);
}

/* 호버 시에도 블루 유지 */
.promo-card.promo-card-blue:hover,
.promo-card-small.promo-card-small-blue:hover,
.program-card.program-card-blue:hover {
  border-color:#0052cc;
  box-shadow:0 8px 20px rgba(0,82,204,.3);
  background-color:#f2f6ff;
}

.up-closed-banner{
  display:block;
  width:100%;
  text-align:center;
  margin:4px 0 10px;
  padding:12px 16px;
  border-radius:12px;
  border:1px solid #f87171;   /* 레드 테두리 */
  background:#ffe2e2;         /* 연한 레드 배경 */
  color:#7f1d1d;              /* 진한 레드 텍스트 */
  font-weight:700;
  font-size:18px;
}
@media (max-width: 768px){
  .up-closed-banner{ font-size:16px; padding:10px 14px; }
}
.program-card-tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;

  border: 1px solid #d6d9e4;
  background: #fff;
  color: #333;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
}

.program-card-tab-btn:hover {
  border-color: #6b5ae6;
  color: #6b5ae6;
}
/* 링크형 탭 (인솔후기 등) - 브랜드 컬러 기반 */
.program-card-tab-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;

  border: 1px solid #dcd9ff;     /* 연보라 테두리 */
  background: #f3f2ff;           /* 아주 연한 보라 배경 */
  color: #6b5cff;                /* 메인 보라 */

  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;

  cursor: pointer;
  transition: all .2s ease;
}

/* hover 시 → 버튼처럼 반응 */
.program-card-tab-link:hover {
  border-color: #6b5cff;
  background: #6b5cff;
  color: #fff;
}

.program-card-tab-link::after {
  content: "";
}



/* 자세히 보기 (기준 - 가장 진함, 하지만 톤 다운) */
.card-button.btn-detail {
  background: #7b6ee6;   /* 기존보다 한톤 다운 */
  color: #fff;
  border: 1px solid #7b6ee6;
  font-weight: 600;
}

.card-button.btn-detail:hover {
  background: #6a5ed6;
  border-color: #6a5ed6;
}


/* 프로그램 보기 (중간 톤) */
.card-button.btn-program {
  background: #9488eb;   /* 더 연한 보라 */
  color: #fff;
  border: 1px solid #a39af3;
}

.card-button.btn-program:hover {
  background: #6a5ed6;
  border-color: #6a5ed6;
}


/* 자료 작성중 (최저 톤) */
.card-button.btn-disabled {
  background: #c2bbf9;
  color: #6a5ed6;
  border: 1px solid #a39af3;
  cursor: not-allowed;
  opacity: 0.75;
  font-weight: 600;
}

.card-price-notes{
    margin-top: 10px;
    padding: 10px 14px;

    border: 2px dashed #ff6b6b;   /* 빨간 점선 */
    border-radius: 6px;

    background: #fffdfd;

    font-size: 13px;
    line-height: 1.8;
}

.card-price-notes .price-note{
    color:#333;
}

.card-price-notes .price-note + .price-note{
    margin-top:4px;
}