/* =========================================
   보상리포트 서브페이지 전용 스타일 (report.css)
========================================= */

.report-section {
  padding: 100px 0 120px;
  background: #FFFFFF;
}

/* --- 1. 상단 헤더 --- */
.report-header {
  text-align: center;
  margin-bottom: 40px;
}

.report-header h3 {
  color: #313131;
  font-family: 'Pretendard', sans-serif;
  font-size: 27px;
  font-weight: 700;
  line-height: 38px;
  margin-bottom: 12px;
}

.report-header p {
  color: #313131;
  font-family: 'Pretendard', sans-serif;
  font-size: 18px;
  font-weight: 300;
  line-height: 27px;
}

/* --- 4. 리스트 카드 영역 --- */
.report-list-wrap {
  width: 100%;
  max-width: 853px;
  margin: 0 auto;
}

.report-card {
  display: flex;             /* 원래 있던 속성 */
  text-decoration: none;     /* 추가: a태그 기본 밑줄 제거 */
  color: inherit;            /* 추가: a태그 기본 파란색 글씨 방지 */
  width: 100%;
  min-height: 307px; 
  margin-bottom: 40px;
  border-top: 6px solid #B70000; 
  background: #EFEFEF; 
  transition: transform 0.2s ease; /* 호버 시 살짝 떠오르는 효과 준비 */
}

/* 카드에 마우스를 올렸을 때의 피드백 (선택사항) */
.report-card:hover {
  transform: translateY(-5px); /* 마우스 오버 시 위로 5px 이동 */
}

.report-card-img {
  width: 444px; 
  padding: 17px 0 17px 40px; 
  box-sizing: border-box;
  flex-shrink: 0;
  display: flex;
  align-items: center; /* 텍스트 내용이 길어질 경우 이미지 수직 중앙 정렬 */
}

.report-card-img img {
  width: 100%;
  height: auto;
  aspect-ratio: 444 / 273; /* PC에서도 모바일처럼 예쁜 고정 비율 유지 */
  object-fit: cover; 
  background: #FFFFFF;
  display: block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.report-card-text {
  flex: 1;
  min-width: 0; /* 텍스트가 카드 영역 밖으로 밀려나지 않도록 제한 */
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.report-badge {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 89px;
  height: 38px;
  background: #B70000;
  color: #FFFFFF;
  font-family: 'Pretendard', sans-serif;
  font-size: 16px; 
  font-weight: 500;
  margin-bottom: 15px;
}

.report-title {
  color: #313131;
  font-family: 'Pretendard', sans-serif;
  font-size: 25px;
  font-weight: 700;
  line-height: 38px; 
  margin-bottom: 15px;
  word-break: keep-all;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* 타이틀 2줄까지만 표시하고 말줄임표 */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.report-desc {
  color: #313131;
  font-family: 'Pretendard', sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 25px; 
  word-break: keep-all;
  display: -webkit-box;
  -webkit-line-clamp: 4; /* 내용은 4줄까지만 표시하고 말줄임표 */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* th:utext 내부 인라인 스타일을 무시하고 기존 report-desc 스타일을 유지 */
.report-desc * {
  display: inline;
  color: inherit !important;
  font-family: inherit !important;
  font-size: inherit !important;
  font-style: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
  letter-spacing: inherit !important;
  white-space: normal !important;
  text-decoration: inherit !important;
  text-transform: inherit !important;
  background: transparent !important;
}

.report-desc meta,
.report-desc style,
.report-desc script,
.report-desc link {
  display: none !important;
}

/* --- 5. 더보기 버튼 영역 --- */
.report-more-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 60px;
  text-align: center;
}

/* =========================================
   6. 선임후기 리스트 영역 (.review-list-wrap)
========================================= */
.review-list-wrap {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

/* 👇 기존 인라인 스타일을 여기로 옮겼습니다! */
.review-card {
  display: block;            /* a 태그를 블록 요소로 변경 */
  text-decoration: none;     /* 링크 밑줄 제거 */
  color: inherit;            /* 글자색이 기본 링크색(파란색)으로 변하는 것 방지 */
  position: relative;
  width: 100%;
  height: 401px;
  background: #F5F5F5;
  border-top: 6px solid #B70000;
  box-sizing: border-box;
  overflow: hidden;
  transition: transform 0.2s ease; /* 호버 시 살짝 떠오르는 효과용 (선택적) */
}

/* 카드에 마우스를 올렸을 때의 피드백 */
.review-card:hover {
  transform: translateY(-5px);
}

.review-card-img {
  margin: 39px 24px 0 28px;
  width: calc(100% - 52px);
  height: 215px;
  background: #FFFFFF;
}

.review-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%); /* 흑백 사진 효과 적용 */
}

.review-card-text {
  margin: 20px 24px 0 28px;
  color: #313131;
  font-family: 'Pretendard', sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 27px;
  word-break: break-word; /* keep-all 시 말줄임 버그 방지 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.review-card-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 45px;
  background: #B70000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 18px;
  box-sizing: border-box;
}

.review-card-bottom .type {
  color: #FFF;
  font-family: 'Pretendard', sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 27px;
}

.review-card-bottom .name {
  color: #FFF;
  font-family: 'Pretendard', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 27px;
}


/* =========================================
   모바일 반응형 통합 (화면 가로 768px 이하일 때)
========================================= */
@media screen and (max-width: 768px) {  
  .report-section {
    padding: 65px 45px 67px;
  }

  .report-header {
    margin-bottom: 20px;
}

  .report-header h3{
    color: #313131;
    text-align: center;
    font-family: Pretendard;
    font-size: 21px;
    font-style: normal;
    font-weight: 700;
    line-height: 23px; /* 109.524% */
  }
  .report-header p {
    color: #313131;
    text-align: center;
    font-family: Pretendard;
    font-size: 13px;
    font-style: normal;
    font-weight: 300;
    line-height: 20px; /* 153.846% */
  }

  .review-list-wrap{
        margin-bottom: 30px;
  }

  /* --- 성공사례 모바일 설정 --- */
  .report-card {
    flex-direction: column;
    height: auto;
  }
  
  .report-card-img {
    width: 100%;
    padding: 20px 20px 0 20px;
    height: auto;
  }
  
  .report-card-img img {
    width: 100%;
    height: auto;
    aspect-ratio: 444 / 273; /* PC 화면의 예쁜 이미지 비율을 모바일에도 그대로 유지 */
    object-fit: cover;
  }
  
  .report-card-text {
    width: 100%;
    padding: 25px 20px 20px;
  }
  
  .report-badge {
    width: 60px;
    height: 26px;
    color: #FFF;
    text-align: center;
    font-family: Pretendard;
    font-size: 13px;
    font-style: normal;
    font-weight: 500;
    line-height: 1.4; /* 292.308% */
    margin-bottom: 8px;
  }
  .report-title { font-size: 20px; line-height: 1.4; 
  color: #313131;
font-family: Pretendard;
font-size: 16px;
font-style: normal;
font-weight: 700;
line-height: 1.4;
    margin-bottom: 10px;
}
  .report-desc { font-size: 14px; line-height: 1.5; 
  color: #313131;
  font-family: Pretendard;
  font-size: 12px;
  font-style: normal;
  font-weight: 300;
  line-height: 1.4
  }

  /* --- 선임후기 모바일 설정 --- */
  .review-list-wrap {
    grid-template-columns: 1fr;
    gap: 25px;
    max-width: 400px;
  }

  .review-card {
    height: auto;
    padding-bottom: 45px;
  }

  .review-card-img {
    margin: 30px 20px 0 20px;
    width: calc(100% - 40px);
    height: auto;
    aspect-ratio: 326/215;
  }

  .review-card-text {
    margin: 20px;
    font-size: 16px;
    line-height: 1.5;
    color: #313131;
font-family: Pretendard;
font-size: 13px;
font-style: normal;
font-weight: 600;
line-height: 1.4
  }

  .review-card-bottom{
    height: 35px;
  }
  .review-card-bottom .type{
color: #FFF;
font-family: Pretendard;
font-size: 12px;
font-style: normal;
font-weight: 700;
line-height: 27px; /* 225% */
  }
  .review-card-bottom .name{
color: #FFF;
font-family: Pretendard;
font-size: 11px;
font-style: normal;
font-weight: 400;
line-height: 27px; /* 245.455% */
  }

  .report-more-wrap {
    margin-top: 30px;
  }
}
