/* ÄÁÅ×ÀÌ³Ê */

/* ÄÁÅ×ÀÌ³Ê */
.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;
}

/* ÅÂºí¸´: 2°³ */
@media (max-width: 1024px) {
  .program-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ¸ð¹ÙÀÏ: 1°³ */
@media (max-width: 768px) {
  .program-card-grid {
    grid-template-columns: 1fr;
  }
  .container {
    padding-left: 0;
    padding-right: 0;
  }	
  .program-card-grid {
    padding-left: 16px;
    padding-right: 16px;
  }	
}

/* Ä«µå 1°³ */
.program-card {
  aspect-ratio: 1 / 1.8;  /* È²±ÝºñÀ² À¯Áö */
  background: #fff;
  border: 2px solid #0052cc;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: 0.3s;
  font-family: 'Noto Sans KR', sans-serif;	
  height: 100%; /* ³ôÀÌ´Â À¯µ¿ÀûÀÌ°Å³ª min-height ÁöÁ¤ */
}

.program-card:hover {
  border-color: #0052cc;  /* À¯ÇÐÇÇÇÃ ¸ÞÀÎÄÃ·¯ °­Á¶ */
   box-shadow: 0 8px 20px rgba(0, 82, 204, 0.3);  /* ¸ÞÀÎÄÃ·¯ ±×¸²ÀÚ */
  transform: translateY(-6px) scale(1.02);      /* ¾à°£ ¶ç¿ì°í È®´ë */
  background-color: #fff8f9;  /* ºÓÀº ´À³¦ ¹è°æ */	
  transition: all 0.3s ease;
  z-index: 10;
}

/* ÀÌ¹ÌÁö ¿µ¿ª */
.card-image {
  height: 397px;      /* °íÁ¤ ³ôÀÌ */
  width: 100%;        /* Ä«µå Æø¿¡ ¸ÂÃç 100% */
  overflow: hidden;
  position: relative;
  display: block;
}

.card-image img {
  height: 100%;
  width: 100%;
  object-fit: fill;  /* ¶Ç´Â contain, ÇÊ¿ä ½Ã none */
  display: block;
}

.card-label {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #0052cc;
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 2px;
}

/* ÅØ½ºÆ® ¿µ¿ª */
.card-body {
  flex: 1;
  padding: 8px 16px 16px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}


.card-body > .card-tags {
  margin-bottom: auto; /* ³²Àº °ø°£ ¹Ð¾î³¿ */
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px 0; /* À§ ¿©¹é ¾ø¾Ö°í, ¾Æ·¡ ¿©¹é 4px */
}

.card-subtitle {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  white-space: normal;
  overflow: visible;
  display: block; /* ÀÌ°Ô ±âº»°ª */
}

.card-tags {
 display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;         /* ÁÙ °£°Ý + ÁÂ¿ì °£°Ý */
  min-height: 40px; /* ¡ç ÃÖ¼Ò µÎ ÁÙ Á¤µµ °ø°£ È®º¸ */
  margin-bottom: 0; /* ¡ç ÇÏ´Ü ¸¶Áø Á¦°Å */	
}

.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: #e6f4ea;
  color: #333;
  box-sizing: border-box;
}

.tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  padding: 5px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #RED;
  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;
}
.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-button {
  margin-top: 12px;
  display: block;
  width: 100%;
  text-align: center;
  background-color: #0052cc;
  color: #fff;
  font-size: 14px;
  padding: 10px 0;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.card-button:hover {
  background-color: #003d99;
}


.card-stats {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  font-size: 13px;
  color: #666;
  margin-top: 0; /* ¡ç »ó´Ü ¸¶Áø Á¦°Å */
  margin-bottom: 6px;
	
}

.card-stats .like-count,
.card-stats .view-count {
  display: flex;
  align-items: center;
  gap: 4px;
}

.like-count {
  cursor: pointer;
  user-select: none;
  display: inline-block;
  padding: 4px 8px;
}

.like-count:hover {
  color: red;
}