:root{
  --line:#e9ecef;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --radius: 18px;
  --muted:#666;
  --primary:#3ec890; /* 브랜드 컬러 */
}

*{ box-sizing:border-box; }

/* 🟢 컨테이너: 버튼 배치를 위해 relative와 padding 추가 */
.cv-wrap{
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 80px 80px; /* 양옆 80px은 화살표 버튼 공간 */
}

/* 🟢 양옆 고정 화살표 버튼 스타일 */
.nav-fixed-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  z-index: 100;
  text-decoration: none;
}

.nav-fixed-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.05);
}

.nav-fixed-btn.next { left: 0; }  /* 컨테이너 왼쪽 끝 */
.nav-fixed-btn.prev { right: 0; } /* 컨테이너 오른쪽 끝 */

.nav-fixed-btn svg { width: 28px; height: 28px; }

/* 카드 본체 */
.cv-card{
  display:flex;
  gap: 34px;
  align-items: stretch;
  background:#fff;
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.cv-media{
  position: relative;
  flex: 0 0 52%;
  margin: 0;
  border-radius: calc(var(--radius) - 6px);
  overflow: hidden;
  background: #f3f4f6;
  min-height: 340px;
}

.cv-media img{
  display:block;
  width:100%;
  height:100%;
  object-fit: contain; /* 👈 ESG 확인서 등이 잘리지 않게 조정 */
  background: #fff;
}

.cv-tag{
  position:absolute;
  top:14px;
  left:14px;
  z-index:2;
  padding:7px 10px;
  font-size:12px;
  color:#fff;
  background: rgba(0,0,0,.70);
  border-radius: 999px;
}

.cv-body{
  flex: 1 1 auto;
  padding: 6px 6px 2px;
}

.cv-title{
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.4;
}

.cv-meta{
  display:flex;
  gap: 10px;
  align-items: baseline;
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.cv-meta dt{
  font-size: 12px;
  font-weight: 700;
  min-width: 50px;
}
.cv-meta dd{
  margin:0;
  font-size: 12px;
  color: var(--muted);
}

.cv-desc p{
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.8;
  color: #444;
}

.cv-extra{
  display:flex;
  gap: 14px;
  margin-top: 20px;
  font-size: 12px;
  color: #8a8f98;
}

.cv-actions{
  margin-top: 25px;
  display: flex;          /* 플렉스 박스 적용 */
  justify-content: center; /* 가로 방향 중앙 정렬 */
}

.cv-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 36px;
  padding: 0 18px;
  border: 1px solid #cfd6dd;
  border-radius: 8px;
  text-decoration:none;
  color:#111;
  font-size: 12px;
  background: #fff;
  transition: 0.2s;
}

.cv-btn:hover{
  background:#f8f9fb;
  border-color: #adb5bd;
}

/* 반응형 */
@media (max-width: 1000px){
  .cv-wrap { padding: 20px 20px 100px; }
  .nav-fixed-btn { 
    top: auto; 
    bottom: 20px; 
    transform: none; 
  }
  .nav-fixed-btn:hover { transform: scale(1.05); }
  .nav-fixed-btn.next { left: 35%; }
  .nav-fixed-btn.prev { right: 35%; }
}

@media (max-width: 900px){
  .cv-card{ flex-direction: column; gap:18px; }
  .cv-media{ min-height: 280px; }
}

/* 다운로드 박스 레이아웃 */
.cv-file-box {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    margin-bottom: 25px;
}

.file-icon {
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.file-icon svg {
    color: #3ec890; /* 브랜드 컬러 */
    width: 30px;
    height: 30px;
}

.file-info {
    flex: 1;
}

.file-info strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
    color: #1e293b;
}

.file-info p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.file-download-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #3ec890;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
}

.file-download-btn:hover {
    background: #2fb47f;
}

/* 카테고리 태그 */
.cv-category-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #e2e8f0;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    margin-bottom: 10px;
}

/* 카드 가로/세로 정렬 유지 */
.cv-card {
    flex-direction: column !important; /* 자료실은 위에서 아래로 흐르는게 보기 좋음 */
}