/*
 * Vinasome Landing Public Styles
 *
 * 모든 색상과 레이아웃은 기본값이며 관리자 설정에서 변경 가능합니다.
 */

/*
 * 카드 그리드 컨테이너
 *
 * v1.2.4부터 PC·태블릿에서는 6열, 모바일에서는 2열 고정 레이아웃을 사용합니다. 카드는 페이지
 * 스크롤로 모두 노출되며 더보기 버튼 없이 전체 목록을 볼 수 있습니다. max-width와 가운데
 * 정렬은 .vs-landing-wrap 클래스에서 관리됩니다.
 */
.vs-cards-container {
  display: grid;
  /* 기본 레이아웃은 모바일 친화적으로 2열입니다. 이 값은 아래 미디어 쿼리에서 재정의됩니다. */
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

/* 최대 너비와 가운데 정렬을 담당하는 래퍼. 각 숏코드 출력은 이 래퍼로 감싸집니다. */
.vs-landing-wrap {
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
}

/* PC·태블릿 전용 레이아웃 (너비 768px 이상) */
@media (min-width: 768px) {
  .vs-cards-container {
    /* 확장된 화면에서는 카드가 6열로 표시됩니다. */
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
  }
  .vs-card-title {
    font-size: 16px;
  }
  .vs-card-desc {
    font-size: 13px;
  }
  .vs-card-cta {
    padding: 8px 12px;
    font-size: 14px;
  }
}

/* 모바일 전용 레이아웃 (너비 0~767px) */
@media (max-width: 767px) {
  .vs-cards-container {
    /* 모바일 화면에서는 2열 레이아웃과 더 좁은 간격을 사용합니다. */
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .vs-card {
    border-radius: 8px;
  }
  .vs-card-title {
    font-size: 14px;
  }
  .vs-card-desc {
    font-size: 12px;
  }
  .vs-card-cta {
    font-size: 12px;
    padding: 6px 8px;
  }
}

.vs-card {
  background-color: #ffffff;
  border: 1px solid #e7e7ee;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* The card image container now maintains a 4:3 aspect ratio. */
.vs-card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
  background-color: #f5f5f5;
}

/*
 * The actual image element fills the container and crops to cover the space.
 * This ensures that the image always fills the card without leaving blank bars
 * (object-fit: cover) while preserving its aspect ratio. Any overflow is
 * hidden by the container.
 */
.vs-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.vs-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.vs-card-badge {
  display: inline-block;
  background: #0d47a1;
  color: #fff;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.vs-card-title {
  font-size: 18px;
  margin: 0 0 8px;
  font-weight: 600;
}

.vs-card-desc {
  font-size: 14px;
  margin: 0 0 8px;
  color: #555;
}

.vs-card-rating {
  font-size: 16px;
  color: #f5a623;
  margin-bottom: 8px;
}

.vs-card-cta {
  margin-top: auto;
  display: inline-block;
  padding: 10px 16px;
  background: #0d47a1;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.vs-card-cta:hover {
  opacity: 0.9;
}

.vs-table-wrapper {
  overflow-x: auto;
  margin-bottom: 32px;
}

.vs-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.vs-table thead th {
  background: #0d47a1;
  color: #fff;
  padding: 12px 8px;
  font-weight: 600;
  text-align: left;
}

.vs-table tbody td {
  padding: 12px 8px;
  border-top: 1px solid #e0e0e0;
}

.vs-table tbody tr:nth-child(even) td {
  background: #f9f9f9;
}

.vs-sections {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.vs-section-title {
  font-size: 20px;
  margin: 0 0 8px;
  font-weight: 700;
}

.vs-section-highlight {
  font-size: 16px;
  font-weight: 600;
  color: #0d47a1;
  margin-bottom: 8px;
}

.vs-section-content {
  font-size: 14px;
  line-height: 1.6;
  color: #333;
}

.vs-section-chart {
  font-size: 12px;
  color: #333;
}