/* 강의 섹션 */
.courses {
  width: 1160px;
  margin: 0 auto;
  padding-top: 28px;
  background-color: #fff;
  box-sizing: border-box;
}

/* 구좌 제목 */
.courses-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.courses-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
  height: 36px;
}

.courses-title-link {
  font-size: 24px;
  font-weight: 800;
  text-decoration: none;
  transition: color 0.3s ease;
}

.courses-description {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
}

/* 상품 목록 */
.courses-container {
  position: relative;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1160px;
  margin: 0 auto;
}

.courses-container .courses-item {
  width: 275px;
}

.courses-item-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* 썸네일 */
.courses-thumb {
  width: 100%;
  height: 179px;
  overflow: hidden;
  border-radius: 8px;
}

.courses-thumb img {
  width: 100%;
  aspect-ratio: 630 / 410;
  transition: transform 0.3s ease;
}

/* 강의 정보 영역 */
.courses-content {
  padding: 10px 0 0;
  display: flex;
  flex-direction: column;
}

.courses-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  transition: color 0.2s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-wrap: break-word;
}

.courses-item:hover .courses-title {
  color: #01a28a;
}

.courses-item:hover .courses-thumb {
  filter: brightness(0.8);
}

.courses-meta {
  font-size: 12px;
  color: #8f8f8f;
  line-height: 2em;
}

.courses-meta .separator {
  margin: 0 4px;
  color: #c2c2c2;
}

/* 가격 */
.courses-price {
  display: flex;
  justify-content: flex-start;
  gap: 6px;
  align-items: center;
}

.courses-original-price {
  color: #5c5c5c;
  text-decoration: line-through;
  font-size: 12px;
  font-weight: 700;
}

.courses-final-price {
  color: #01a28a;
  font-size: 14px;
  font-weight: 800;
}

.courses-free {
  color: #01a28a;
  font-size: 14px;
  font-weight: 800;
}

.price-arrow {
  font-size: 14px;
  color: #c2c2c2;
}

.courses-discount-rate {
    color: #d50822;
    font-size: 12px;
    font-weight: 700;
}

.courses-score {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #444;
  font-weight: 800;
  margin-top: -5px;
}

.courses-score .review-count {
  font-weight: 700;
}

.courses-score .fa {
  font-size: 14px;
}
.courses-score .fa-star {
  color: #f8c200;
}
.courses-score .fa-heart {
  color: #fd6d83;
}

/* 네비게이션 버튼 스타일 강제 적용 */
.lSAction {
  display: block !important;
}

.courses-container .lSAction > a {
  top: 18%;
}

/* 더보기 버튼 관련*/
.more-arrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-size: 15px;
  font-weight: 700;
  color: #666;
  transition: all 0.3s ease;
  padding-right: 24px;
}

.more-arrow::after {
  content: '';
  position: absolute;
  right: 0;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M12 5l7 7-7 7'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform 0.3s ease;
}

.more-arrow:hover {
  color: #01a28a;
}

.more-arrow:hover::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2301a28a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M12 5l7 7-7 7'/%3E%3C/svg%3E");
}


.more-button {
  width: 550px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #555;
  padding: 8px 32px;
  background-color: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
  gap: 8px;
  min-width: 200px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.more-button::after, .more-button2::after {
  content: '>';
  font-size: 16px;
  transition: transform 0.3s ease;
  position: relative;
  top: 1px;
}

.more-button:hover, .more-button2:hover {
  background-color:rgb(252, 252, 252);
  color: #333;
  /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06); */
}

.more-button:hover::after, .more-button2:hover::after {
  transform: translateX(4px);
}

.section-footer {
  margin-top: 32px;
  text-align: center;
}

/* 강의 목록 페이지 관련 - leclist.html */
.courses-list-page {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
  padding-top: 15px;
}

.courses-list-page .courses-item {
  flex: 0 0 calc(25% - 12px);
  width: calc(25% - 12px);
  margin: 0;
}
