/* 메인 페이지 스타일 */
body {
  font-family: 'Noto Sans KR', sans-serif;
  background: #f7f8fa;
  margin: 0;
  padding: 0;
}

.main-content {
  display: flex;
  max-width: 1440px;
  width: 100%;
  margin: 40px auto;
  padding: 0 24px;
  gap: 32px;
  align-items: flex-start;
}

.left-up {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
  background: #fff5fa;
  border-radius: 20px;
  padding: 36px 28px;
  box-shadow: 0 4px 24px rgba(255, 79, 160, 0.05);
  box-sizing: border-box;
  min-height: 500px;
}

.left-down {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
  background: #fff5fa;
  border-radius: 20px;
  padding: 36px 28px;
  box-shadow: 0 4px 24px rgba(255, 79, 160, 0.05);
  box-sizing: border-box;
  min-height: 200px;
}

.right-column {
  flex: 1;
  background: #fff5fa;
  border-radius: 20px;
  padding: 36px 28px;
  box-shadow: 0 4px 24px rgba(255, 79, 160, 0.05);
  box-sizing: border-box;
  min-height: 700px;
}

.section-title-row {
  width: 100%;
  margin-bottom: 20px;
}

.section-title {
  font-size: 24px;
  font-weight: 600;
  color: #7d2082;
  margin: 0;
}

.section-subtitle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 20px;
}

.section-subtitle-row h2 {
  font-size: 14px;
  font-weight: 500;
  color: #140a0e;
  margin: 0;
}

.more-link {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  background-color: #912095;
  padding: 6px 14px;
  border-radius: 20px;
  text-decoration: none;
  transition: background-color 0.2s;
  white-space: nowrap;
}

.more-link:hover {
  background-color: #7a0f7f;
}

.carousel-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  min-height: 400px;
}

.carousel {
  display: flex;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
  width: 100%;
}

.carousel .course-card {
  flex: 0 0 100%;
  max-width: 100%;
  width: 50%;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 400px;
  position: relative;
}

.carousel .course-card img {
  width: 100%;
  height: 70%;
  object-fit: cover;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

.course-card-content {
  padding: 16px 20px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  flex: 1;
}

.course-card-content .card-author {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
}

.card-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  width: 100%;
  justify-items: center;
}

.course-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  width: 280px;
  height: 330px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.card-image {
  width: 100%;
  height: 200px;
  background-color: #f0f0f0;
  border-radius: 16px 16px 0 0;
  background-size: cover;
  background-position: center;
}

.card-title {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  margin: 12px 12px 8px;
  text-align: left;
  width: calc(100% - 24px);
}

.card-author {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  box-sizing: border-box;
  position: absolute;
  bottom: 40px;
  right: 12px;
  justify-content: flex-end;
}

.author-avatar {
  width: 32px;
  height: 32px;
  background: #ddd;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 2px solid #fff0fa;
}

.author-name {
  font-size: 15px;
  font-weight: 500;
  color: #4d4d4d;
}

.top-liked-banner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: 0 6px 28px rgba(255, 79, 160, 0.07);
  transition: box-shadow 0.3s ease;
  cursor: pointer;
  background-image: url('/images/banner.jpg'); /* 원하는 이미지 경로 */
  background-size: cover;
  background-position: center;
  color: black; /* 텍스트 대비를 위해 */
  position: relative;
  overflow: hidden;
}

.banner-card-title {
  font-weight: 500;

}

.top-liked-banner:hover {
  box-shadow: 0 8px 36px rgba(255, 79, 160, 0.15);
}

.top-liked-banner-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
}

.card-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  width: 100%;
  justify-items: center;
}

.course-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  width: 280px;
  height: 330px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.card-image {
  width: 100%;
  height: 200px;
  background-color: #f0f0f0;
  border-radius: 16px 16px 0 0;
  background-size: cover;
  background-position: center;
}

.card-title {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  margin: 12px 12px 8px;
  text-align: left;
  width: calc(100% - 24px);
}

.card-author {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  box-sizing: border-box;
  position: absolute;
  bottom: 40px;
  right: 12px;
  justify-content: flex-end;
}

.author-avatar {
  width: 32px;
  height: 32px;
  background: #ddd;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 2px solid #fff0fa;
}

.author-name {
  font-size: 15px;
  font-weight: 500;
  color: #4d4d4d;
}

.card-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  font-size: 13px;
  color: #555;
  padding: 12px;
  position: absolute;
  bottom: 0;
  right: 0;
  background: #fff;
  width: 100%;
  box-sizing: border-box;
}

.card-stats {
  display: flex;
  align-items: center;
}

