/* 리셋 및 기본 스타일 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 메인 컨테이너 */
.baro-portfolio-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
  background-color: white;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 헤더 스타일 */
.baro-portfolio-header {
  margin-bottom: 40px;
  position: relative;
}

.baro-portfolio-title {
  font-size: 32px;
  font-weight: 700;
  color: #0099FF;
  margin-bottom: 16px;
}

.baro-portfolio-subtitle {
  font-size: 16px;
  line-height: 1.6;
  color: #666;
  margin-bottom: 16px;
  max-width: 80%;
}

/* 모든 성공 사례 보기 링크 숨기기 */
.baro-portfolio-view-all {
  display: none;
}

/* 카드 컨테이너 - 3개만 정확히 보이도록 수정 */
.baro-portfolio-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 100%;
}

/* 카드 스타일 */
.baro-portfolio-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.baro-portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.baro-portfolio-card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.baro-portfolio-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.baro-portfolio-card:hover .baro-portfolio-card-image img {
  transform: scale(1.05);
}

.baro-portfolio-country {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  font-size: 12px;
  color: #0099FF;
  font-weight: 500;
}

.baro-portfolio-country svg {
  margin-right: 4px;
}

.baro-portfolio-card-content {
  padding: 20px;
  background-color: white;
}

.baro-portfolio-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.baro-portfolio-car-name {
  font-size: 20px;
  font-weight: 700;
  color: #333;
}

.baro-portfolio-year {
  font-size: 14px;
  color: white;
  background-color: #0099FF;
  padding: 4px 10px;
  border-radius: 20px;
}

.baro-portfolio-price-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.baro-portfolio-original-price,
.baro-portfolio-export-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.baro-portfolio-price-label {
  font-size: 14px;
  color: #666;
}

.baro-portfolio-price-value {
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

.baro-portfolio-highlight {
  color: #0099FF;
  font-weight: 700;
  font-size: 20px;
}

.baro-portfolio-button {
  width: 100%;
  background-color: #0099FF;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.baro-portfolio-button:hover {
  background-color: #0055dd;
}

.baro-portfolio-button:active {
  transform: scale(0.98);
}

.baro-portfolio-button svg {
  margin-left: 8px;
}

/* 이미지 에러 처리 스타일 */
.baro-portfolio-card-image.image-error .image-placeholder {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 200px;
  background-color: #f5f5f5;
  border-radius: 8px;
}

.baro-portfolio-card-image.image-error {
  background-color: #f5f5f5;
}

/* 반응형 스타일 */
@media (max-width: 1024px) {
  .baro-portfolio-subtitle {
    max-width: 100%;
  }

  .baro-portfolio-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .baro-portfolio-title {
    font-size: 28px;
  }

  .baro-portfolio-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .baro-portfolio-title {
    font-size: 24px;
  }

  .baro-portfolio-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

.baro-portfolio-card {
  cursor: pointer;
}

.baro-portfolio-cards {
  display: grid;
  grid-auto-flow: row;
  /* 가로로 자동 채우기 */
  grid-auto-columns: minmax(260px, 1fr);
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
}