/* ÄÁÅ×ÀÌ³Ê */
.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;
  }
	
}

/* Ä«µå 1°³ */
.program-card {
  display: flex;
  flex-direction: column;
  height: auto;         /* °íÁ¤ ÇØÁ¦ */
  min-height: 700px;    /* ±âº» ³ôÀÌ À¯Áö */
  background: #fff;
  border: 2px solid #e60012;
  overflow: hidden;
  font-family: 'Noto Sans KR', sans-serif;
}

/* Ä«µå 1°³ */
.promo-card {
  display: flex;
  flex-direction: column;
  height: auto;         /* °íÁ¤ ÇØÁ¦ */
  min-height: 550px;    /* ±âº» ³ôÀÌ À¯Áö */
  background: #fff;
  border: 2px solid #e60012;
  overflow: hidden;
  font-family: 'Noto Sans KR', sans-serif;
}


/* Ä«µå 1°³ */
.program-phil-card {
  aspect-ratio: 1 / 1.9;  /* È²±ÝºñÀ² À¯Áö */
  background: #fff;
  border: 2px solid #e60012;
  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: #e60012;  /* À¯ÇÐÇÇÇÃ ¸ÞÀÎÄÃ·¯ °­Á¶ */
  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: #e60012;  /* À¯ÇÐÇÇÇÃ ¸ÞÀÎÄÃ·¯ °­Á¶ */
  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;
}


.program-phil-card:hover {
  border-color: #e60012;  /* À¯ÇÐÇÇÇÃ ¸ÞÀÎÄÃ·¯ °­Á¶ */
  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-label {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #e60012;
  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 {
  font-size: 14px;
  color: #333;
  line-height: 1.4;
  margin: 4 0 8px 0;  /* Ãß°¡ */
}
.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:hover {
  border-color: #007bff;
  color: #007bff;
  cursor: default;
}


/* »õ·Ó°Ô Á¤ÀÇµÈ ¸µÅ© ¹öÆ° ½ºÅ¸ÀÏ */
.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;      /* ¡ç È¤½Ã ÀÖÀ» °æ¿ì Á¦°Å */
}

/* °øÅë ÅÂ±× ¹öÆ° ½ºÅ¸ÀÏ ÅëÀÏ */
.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: 1px solid #ccc;
  border-radius: 2px;
  white-space: nowrap;
  background-color: #fff;
  color: #333;
  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;
}
.tag-link:hover {
  border-color: #007bff;
  color: #007bff;
}
/* ¼¼ºÎ »ö»ó ÁöÁ¤ */
.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: #e60012;
  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: #003d99;
}



.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;
}



.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-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; /* ¡ç ±âº»°ªº¸´Ù °¡´Ã°Ô */
  
}