@charset "UTF-8";

/* ====================================
   LIST PAGE STYLES
==================================== */

.list-main {
  background: white;
  min-height: calc(100vh - 200px);
}

/* ====================================
   PAGE TITLE SECTION
==================================== */
.page-title-section {
  background: #f1f3f9;
  padding: 40px 0;
}

.page-title-section .container {
  max-width: 1220px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 28px;
  letter-spacing: -0.48px;
}

.breadcrumb span {
  color: #6e6e73;
  font-weight: 400;
}

.breadcrumb .current {
  color: #202124;
  font-weight: 500;
}

.breadcrumb svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.page-title {
  margin: 0;
  font-size: 42px;
  line-height: 46px;
  letter-spacing: -1.26px;
  font-weight: 700;
  color: #202124;
}

/* ====================================
   FILTER TABS
==================================== */
.filter-tabs {
  display: flex;
  gap: 5px;
  margin-top: 30px;
}

.course-list-section {
  padding: 60px 0;
}

.course-list-section .container {
  max-width: 1220px;
  margin: 0 auto;
}

.filter-tabs .tab {
  background: white;
  border: 1px solid #eceef2;
  border-radius: 50px;
  padding: 7px 20px;
  cursor: pointer;
  transition: all 0.2s;
  color: #9c9ca4;
  font-weight: 500;
  font-size: 14px;
}

.filter-tabs .tab:hover {
  border-color: #202124;
  color: #202124;
}

.filter-tabs .tab.active {
  background: #202124;
  border-color: #202124;
  color: white;
  font-weight: 600;
}

/* ====================================
   TOOLBAR (Sort & Search)
==================================== */
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 30px;
  padding-bottom: 6px;
}

.sort-bar {
  display: flex;
  align-items: center;
  gap: 14px;
}

.total-count {
  color: #9c9ca4;
  font-size: 15px;
  letter-spacing: -0.45px;
  font-weight: 600;
}

.total-count strong {
  color: #fb7126;
  font-weight: 700;
}

.divider {
  color: #9c9ca4;
  font-size: 15px;
  font-weight: 400;
}

.sort-btn {
  background: none;
  border: none;
  color: #9c9ca4;
  cursor: pointer;
  padding: 0;
  font-weight: 500;
  transition: color 0.2s;
  border-bottom: 2px solid transparent;
  font-size: 15px;
  letter-spacing: -0.45px;
}

.sort-btn:hover {
  color: #202124;
}

.sort-btn.active {
  color: #202124;
  border-bottom-color: #202124;
  font-weight: 600;
}

.search-box-inline {
  position: relative;
  width: 300px;
}

.search-box-inline input {
  width: 100%;
  height: 36px;
  border-bottom: 2px solid #202124;
  border-radius: 0;
  padding: 0 40px 0 16px;
  outline: none;
  transition: border-color 0.2s;
  font-size: 14px;
}

.search-box-inline input:focus {
  border-color: #fb7126;
}

.search-box-inline button {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-box-inline button svg {
  width: 18px;
  height: 18px;
  color: #202124;
}

/* ====================================
   COURSE LIST PAGE
==================================== */

/* Course grid specific to list page */
.course-list-section .course-grid {
  margin-bottom: 60px;
}

.course-card-new {
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.course-image-new {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
}

.course-image-new img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.course-card-new:hover .course-image-new img {
  transform: scale(1.1);
}

.course-info-new {
  padding: 0 8px;
}

.course-category-new {
  color: var(--gray-l-100);
  font-size: var(--text-label);
  font-weight: var(--font-medium);
  margin-bottom: 4px;
}

.course-title-wrapper-new {
  height: 68px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.course-title-wrapper-new h3 {
  font-size: var(--text-h4);
  font-weight: var(--font-bold);
  line-height: 1.5;
  letter-spacing: -0.01em;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-meta-new {
  color: var(--gray-l-100);
  font-size: var(--text-label);
  font-weight: var(--font-medium);
  letter-spacing: -0.03em;
}

.course-price-new {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 0;
  flex-wrap: wrap;
}

.course-price-new .discount {
  color: var(--clr-main);
  font-size: var(--text-h4);
  font-weight: var(--font-bold);
  line-height: 1.25;
}

.course-price-new .price {
  font-size: var(--text-h4);
  font-weight: var(--font-bold);
  line-height: 1.25;
}

.course-price-new .original-price {
  color: var(--gray-l-100);
  font-size: var(--text-label);
  font-weight: var(--font-medium);
  text-decoration: line-through;
}

.course-tags-new {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

/* Tags specific styles (base styles in common.css) */

/* Pagination styles in common.css */

/* ====================================
   COURSE DETAIL PAGE
==================================== */
.course-main {
  background: white;
  min-height: calc(100vh - 200px);
}

.course-detail-section {
  padding: 60px 0 120px;
}

.course-detail-section .container {
  max-width: 1220px;
  margin: 0 auto;
}

.course-layout {
  display: flex;
  gap: 80px;
  align-items: flex-start;
}

/* ====================================
   LEFT SIDEBAR (STICKY)
==================================== */
.course-sidebar {
  width: 423px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.course-thumbnail {
  width: 100%;
  aspect-ratio: 1002 / 515;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #eceef2;
}

.course-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-summary {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.breadcrumb-detail {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 14px;
  line-height: 28px;
  letter-spacing: -0.42px;
}

.breadcrumb-detail span {
  color: var(--gray-l-100);
  font-weight: var(--font-normal);
}

.breadcrumb-detail .current {
  color: var(--blk);
  font-weight: var(--font-medium);
}

.breadcrumb-detail svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.course-title-detail {
  margin: 0;
  font-size: 24px;
  line-height: 36px;
  letter-spacing: -0.72px;
  font-weight: var(--font-bold);
  color: var(--blk);
}

.course-tags-detail {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  padding-top: 4px;
}

/* tag-best defined in common.css */

.course-meta-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.meta-item {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 16px;
  letter-spacing: -0.48px;
}

.meta-label {
  color: var(--blk);
  font-weight: var(--font-bold);
  flex-shrink: 0;
}

.meta-value {
  color: var(--gray-l-100);
  font-weight: var(--font-normal);
}

.course-price-detail {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 20px;
  letter-spacing: -0.6px;
  font-weight: 600;
}

.course-price-detail .price {
  color: var(--blk);
}

.course-price-detail .discount-text {
  color: var(--clr-main);
  font-size: 20px;
}

.btn-preview {
  background: var(--blk);
  color: white;
  border: 1px solid transparent;
  border-radius: var(--radius);
  height: 50px;
  padding: 0 30px;
  font-size: var(--text-h4);
  font-weight: var(--font-medium);
  letter-spacing: -0.48px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-preview:hover {
  background: #000;
}

/* ====================================
   RIGHT CONTENT AREA
==================================== */
.course-content {
  flex: 1;
  min-width: 0;
}

.content-section {
  padding: 24px 0;
  border-top: 1px solid #eceef2;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.content-section:first-child {
  padding-top: 0;
  border-top: none;
}

.section-title {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.6px;
  font-weight: var(--font-bold);
  color: var(--blk);
}

.keyword-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.keyword-tag {
  background: var(--bg-light-gray);
  color: var(--blk);
  padding: 2px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: var(--font-medium);
  line-height: 26px;
  letter-spacing: -0.42px;
}

.section-text {
  color: var(--gray-l-100);
  font-size: 15px;
  line-height: 26px;
  letter-spacing: -0.45px;
  font-weight: var(--font-normal);
  margin: 0;
}

.section-list {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--gray-l-100);
  font-size: 15px;
  line-height: 26px;
  letter-spacing: -0.45px;
  font-weight: 400;
}

.section-list li {
  padding-left: 22.5px;
  position: relative;
  margin-bottom: 0;
}

.section-list li:before {
  content: "•";
  position: absolute;
  left: 8px;
}

.curriculum-list {
  color: var(--gray-l-100);
  font-size: 15px;
  line-height: 26px;
  letter-spacing: -0.45px;
}

.curriculum-list p {
  margin: 0;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray-l-100);
}

.back-to-list {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 30px 0;
  border-top: 1px solid #eceef2;
  cursor: pointer;
  transition: opacity 0.2s;
}

.back-to-list:hover {
  opacity: 0.7;
}

.back-to-list svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.back-to-list span {
  color: var(--blk);
  font-size: 15px;
  line-height: 24px;
  letter-spacing: -0.45px;
  font-weight: var(--font-normal);
}

/* ====================================
   FLOATING BANNER
==================================== */
.floating-banner {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 1220px;
  height: 80px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.85) 0%,
    rgba(255, 255, 255, 0.95) 50%,
    rgba(255, 255, 255, 0.85) 100%
  );
  border: 1px solid rgba(251, 113, 38, 0.5);
  border-radius: 8px;
  box-shadow: 0px 0px 15px 0px rgba(251, 113, 38, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
}

.floating-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.floating-text {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 10px;
}

.floating-title {
  margin: 0;
  font-size: 17px;
  font-weight: var(--font-bold);
  line-height: 22px;
  letter-spacing: -0.6px;
  color: var(--blk);
}

.floating-title .highlight {
  color: var(--clr-main);
}

.floating-subtitle {
  margin: 0;
  font-size: 14px;
  font-weight: var(--font-normal);
  line-height: 22px;
  letter-spacing: -0.6px;
  color: var(--gray-l-100);
}

.floating-buttons {
  display: flex;
  gap: 10px;
  width: 369px;
  flex-shrink: 0;
}

.btn-download,
.btn-inquiry {
  flex: 1;
  height: 50px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 30px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.48px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-download {
  background: white;
  color: var(--blk);
  border: 1px solid var(--clr-line-l);
}

.btn-download:hover {
  background: var(--bg-light-gray);
}

.btn-download svg {
  width: 13.5px;
  height: 13.5px;
  flex-shrink: 0;
}

.btn-inquiry {
  background: var(--clr-main);
  color: white;
  border: 1px solid transparent;
}

.btn-inquiry:hover {
  background: #e45e28;
}

/* ====================================
   COURSE SEARCH PAGE STYLES
==================================== */

/* Search Header Area */
.search-header-area {
  background: var(--bg-light-gray);
  padding: 40px 0;
}

.search-page-title {
  font-size: 42px;
  line-height: 46px;
  letter-spacing: -1.26px;
  font-weight: var(--font-bold);
  color: var(--blk);
  text-align: center;
  margin: 0 0 30px 0;
}

.search-box-large {
  max-width: 394px;
  margin: 0 auto;
  position: relative;
}

.search-box-large input {
  width: 100%;
  height: 36px;
  background: white;
  border: 1px solid var(--clr-line);
  border-radius: 50px;
  padding: 8px 40px 8px 14px;
  font-size: 15px;
  letter-spacing: -0.45px;
  color: var(--blk);
}

.search-box-large input:focus {
  outline: none;
  border-color: var(--clr-main);
}

.search-box-large .search-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 14px;
  height: 14px;
}

.search-box-large .search-btn svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Main Content */
.search-main {
  background: white;
  padding: 66px 0 80px;
  min-height: calc(100vh - 300px);
}

/* Result Summary */
.result-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--clr-line);
  margin-bottom: 40px;
}

.result-text {
  font-size: 18px;
  letter-spacing: -0.9px;
  color: var(--blk);
  margin: 0;
}

.result-text .keyword {
  font-weight: var(--font-bold);
  color: var(--clr-main);
}

.result-count {
  font-size: 15px;
  letter-spacing: -0.45px;
  font-weight: var(--font-bold);
  color: var(--gray-l-200);
  margin: 0;
}

.result-count .count {
  font-weight: var(--font-bold);
  color: var(--blk);
}

/* Course Card for Search Page */
.course-card {
  cursor: pointer;
  transition: transform 0.2s;
}

.course-card:hover {
  transform: translateY(-4px);
}

.course-image {
  width: 100%;
  aspect-ratio: 235 / 129;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
  position: relative;
}

.course-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.course-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.05);
  pointer-events: none;
}

.course-info {
  padding: 0 16px;
}

.course-category {
  font-size: 14px;
  color: var(--gray-l-200);
  font-weight: var(--font-medium);
  margin-bottom: 4px;
}

.course-title {
  font-size: var(--text-h4);
  line-height: 24px;
  letter-spacing: -0.16px;
  font-weight: var(--font-bold);
  color: var(--blk);
  margin: 0 0 5px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 48px;
}

.course-meta {
  font-size: 14px;
  letter-spacing: -0.42px;
  font-weight: var(--font-medium);
  color: var(--gray-l-200);
  margin-bottom: 10px;
}

.course-price {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 0;
}

.course-price .discount {
  font-size: 16px;
  line-height: 20px;
  font-weight: 700;
  color: #fb7126;
}

.course-price .price {
  font-size: 16px;
  line-height: 20px;
  font-weight: 700;
  color: #202124;
}

.course-price .original-price {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: #9c9ca4;
  text-decoration: line-through;
}

.course-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}



/* ====================================
   COURSE EMPTY STATE
==================================== */
.course-empty {
  padding: 100px 20px;
  margin: 60px 0;
}

.course-empty.show {
  display: block;
}

.course-empty-content {
  margin: 0 auto;
  text-align: center;
  background: var(--bg-light-gray);
  border-radius: var(--radius-card);
  padding: 60px 40px;
}


.course-empty-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.course-empty-icon svg {
  width: 64px;
  height: 64px;
}

.course-empty-title {
  color: var(--blk);
  margin-bottom: 16px;
}

.course-empty-message {
  color: var(--gray-l-100);
  line-height: 1.6;
  margin-bottom: 12px;
}

.course-empty-contact {
  color: var(--gray-l-200);
  line-height: 1.6;
}
