
/* =========================================================
   CASE PAGE REBUILD
   ========================================================= */

.case-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(340px,1fr));
  gap:32px;
  align-items:stretch;
}

.case-card{
  position:relative;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border:1px solid #d9e6f3;
  background:#ffffff;
  border-radius:0;
  box-shadow:0 14px 34px rgba(15,35,67,.06);
  transition:
    transform .28s ease,
    box-shadow .28s ease,
    border-color .28s ease;
  min-height:100%;
}

.case-card:hover{
  transform:translateY(-8px);
  border-color:#8fc0ff;
  box-shadow:0 24px 52px rgba(15,35,67,.14);
}

.case-thumb{
  position:relative;
  width:100%;
  aspect-ratio:16/10;
  overflow:hidden;
  background:#edf4fb;
}

.case-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .45s ease;
}

.case-card:hover .case-thumb img{
  transform:scale(1.06);
}

.case-body{
  display:flex;
  flex-direction:column;
  flex:1;
  padding:26px 26px 28px;
}

.case-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:18px;
}

.case-meta span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:32px;
  padding:0 12px;
  background:#eef5fc;
  border:1px solid #d7e8fb;
  color:#2368b7;
  font-size:12px;
  font-weight:700;
  letter-spacing:.2px;
}

.case-body h3{
  margin:0 0 14px;
  color:#102b4c;
  font-size:26px;
  line-height:1.4;
  font-weight:900;
  letter-spacing:-0.4px;
  min-height:72px;
}

.case-body p{
  margin:0;
  color:#5e6b7a;
  font-size:15px;
  line-height:1.8;
}

.case-list-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:28px;
}

.case-list-head h2{
  font-size:34px;
  font-weight:900;
  letter-spacing:-1px;
}

.case-more-wrap{
  display:flex;
  justify-content:center;
  margin-top:42px;
}

.case-more-button{
  min-width:180px;
  min-height:52px;
  padding:0 28px;
  border:1px solid #cfe1f5;
  background:#fff;
  color:#163d67;
  font-size:15px;
  font-weight:800;
  cursor:pointer;
  transition:all .25s ease;
}

.case-more-button:hover{
  background:#163d67;
  border-color:#163d67;
  color:#fff;
}

@media (max-width:1024px){

  .case-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:22px;
  }

  .case-body{
    padding:22px;
  }

  .case-body h3{
    font-size:22px;
    min-height:auto;
  }
}

@media (max-width:768px){

  .case-grid{
    grid-template-columns:1fr;
    gap:18px;
  }

  .case-thumb{
    aspect-ratio:16/11;
  }

  .case-body{
    padding:18px;
  }

  .case-body h3{
    font-size:20px;
    line-height:1.45;
  }

  .case-body p{
    font-size:14px;
    line-height:1.7;
  }

  .case-list-head h2{
    font-size:26px;
  }
}

/* ===== [CSS 통합] 사례 CSS 통합: cases-page/detail/meta → case.css ===== */

/* ---- merged from /assets/css/cases-page.css ---- */
/* =========================================================
   CASES PAGE VISUAL TUNING
   ========================================================= */

.page-cases .case-card{
  background:#fff;
}

.page-cases .case-card h3{
  color:#102b4c;
}

.page-cases .case-card p{
  color:#667085;
}

.page-cases .case-filter-panel{
  border:1px solid #dce7f3;
  background:#fff;
  box-shadow:0 10px 28px rgba(15,35,67,.05);
}

.page-cases .case-filter-button{
  min-height:48px;
  padding:0 18px;
  font-size:14px;
  font-weight:800;
}

/* ---- merged from /assets/css/case-detail.css ---- */
/* =========================================================
   뉴트리바디 스타일 정리형 디자인
   - 기존 디자인 유지
   - 과한 SaaS/UI 느낌 제거
   - 약한 포인트만 추가
========================================================= */

.case-section-card,
.product-section-card,
.case-info-block{
    background:#fff;
    border:1px solid #dbe6f2;
    border-radius:0;
    box-shadow:none;
    overflow:hidden;
}

/* 상단 아주 얇은 포인트 */
.case-section-card::before,
.product-section-card::before,
.case-info-block::before{
    content:"";
    display:block;
    width:100%;
    height:3px;
    background:#2b78d0;
    opacity:.85;
}

/* 헤더 영역 */
.case-section-head,
.product-section-head,
.case-block-head{
    display:flex;
    align-items:center;
    gap:14px;
    padding-bottom:14px;
    margin-bottom:22px;
    border-bottom:1px solid #e8eef5;
    position:relative;
}

/* 제목 아래 짧은 포인트 라인 */
.case-section-head::after,
.product-section-head::after,
.case-block-head::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-1px;
    width:58px;
    height:2px;
    background:#2b78d0;
}

/* 번호 배지 */
.case-section-num,
.product-section-num,
.case-block-head span{
    width:44px;
    height:44px;
    min-width:44px;
    border-radius:0;
    background:#1569c7;
    color:#fff;
    font-size:14px;
    font-weight:800;
    display:flex;
    align-items:center;
    justify-content:center;
}

/* 제목 */
.case-section-title,
.product-section-title,
.case-block-head h3{
    margin:0;
    font-size:21px;
    font-weight:800;
    color:#123458;
    letter-spacing:-0.03em;
}

/* 본문 */
.case-section-card p,
.product-section-card p,
.case-info-block p{
    font-size:16px;
    line-height:1.9;
    color:#41556b;
    word-break:keep-all;
}

/* 표 */
.case-section-card table,
.product-section-card table{
    width:100%;
    border-collapse:collapse;
    margin-top:12px;
}

.case-section-card table td,
.product-section-card table td{
    border:1px solid #dfe7f0;
    padding:12px 14px;
    font-size:15px;
}

/* 모바일 */
@media (max-width:768px){

    .case-section-card,
    .product-section-card,
    .case-info-block{
        border-radius:0;
    }

    .case-section-title,
    .product-section-title,
    .case-block-head h3{
        font-size:19px;
    }

    .case-section-num,
    .product-section-num,
    .case-block-head span{
        width:38px;
        height:38px;
        min-width:38px;
        font-size:13px;
    }

    .case-section-card p,
    .product-section-card p,
    .case-info-block p{
        font-size:14.5px;
        line-height:1.82;
    }
}

/* ---- merged from /assets/css/case-meta.css ---- */
/* ===== CASE META INFO ===== */

.case-meta-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:14px;
    margin:24px 0 30px;
}

.case-meta-card{
    background:#f8fbff;
    border:1px solid #dbe7f3;
    border-radius:0;
    padding:18px;
}

.case-meta-label{
    font-size:13px;
    color:#5f7187;
    margin-bottom:8px;
    font-weight:700;
}

.case-meta-value{
    font-size:17px;
    color:#16385d;
    font-weight:800;
    line-height:1.5;
}

@media (max-width:768px){
    .case-meta-grid{
        grid-template-columns:1fr 1fr;
    }

    .case-meta-card{
        padding:16px;
    }

    .case-meta-value{
        font-size:15px;
    }
}


/* =========================================================
   CASE VIDEO-FIRST PATCH
   - 납품·수리 사례를 영상 우선 구조로 표시
   - 사례 폴더 video.txt / videos/case-videos.txt 기반
========================================================= */
.case-video-archive{
  margin:30px 0 34px;
  padding:34px;
  border:1px solid #d9e7f6;
  background:linear-gradient(135deg,#ffffff 0%,#f2f8ff 100%);
  box-shadow:0 18px 42px rgba(15,35,67,.07);
}
.case-video-archive__head{margin-bottom:24px;}
.case-video-archive__head h2{margin:8px 0 10px;color:#102b4c;font-size:34px;font-weight:900;letter-spacing:-1px;}
.case-video-archive__head p{margin:0;color:#5e6f82;font-size:16px;line-height:1.75;}
.case-video-archive__head small{display:block;margin-top:8px;color:#7890aa;font-size:13px;}
.case-video-archive__grid{display:grid;grid-template-columns:1.45fr 1fr;gap:18px;}
.case-video-item{display:grid;grid-template-columns:180px 1fr;gap:16px;align-items:center;padding:14px;border:1px solid #d9e7f6;background:#fff;}
.case-video-item.is-main{grid-row:span 3;display:flex;flex-direction:column;align-items:stretch;padding:16px;}
.case-video-frame{position:relative;width:100%;aspect-ratio:16/9;overflow:hidden;background:#102b4c;}
.case-video-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0;display:block;}
.case-video-info strong{display:block;color:#102b4c;font-size:18px;font-weight:900;line-height:1.45;word-break:keep-all;}
.case-video-item.is-main .case-video-info strong{font-size:24px;margin-top:14px;}
.case-video-info p{margin:8px 0 0;color:#607286;font-size:14px;line-height:1.65;word-break:keep-all;}
.case-video-badge{position:absolute;right:12px;bottom:12px;display:inline-flex;align-items:center;justify-content:center;height:30px;padding:0 12px;background:rgba(16,43,76,.88);color:#fff;font-size:12px;font-weight:900;letter-spacing:.2px;}
.case-detail-video-section,.case-summary-panel{margin:28px 0;padding:28px;border:1px solid #d9e7f6;background:#fff;}
.case-detail-video-head,.case-summary-panel__head{margin-bottom:20px;}
.case-detail-video-head h3,.case-summary-panel__head h3{margin:8px 0 8px;color:#102b4c;font-size:26px;font-weight:900;letter-spacing:-.5px;}
.case-detail-video-head p{margin:0;color:#5f7187;line-height:1.7;}
.case-detail-video-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;}
.case-detail-video.is-main:first-child{grid-column:1/-1;}
.case-detail-video-frame{position:relative;aspect-ratio:16/9;width:100%;overflow:hidden;background:#102b4c;}
.case-detail-video-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0;display:block;}
.case-detail-video strong{display:block;margin-top:12px;color:#102b4c;font-size:18px;font-weight:900;line-height:1.45;}
.case-detail-video p{margin:6px 0 0;color:#61748a;font-size:14px;line-height:1.6;}
.case-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;}
.case-summary-item{padding:18px;background:#f6faff;border:1px solid #dceafa;}
.case-summary-item strong{display:block;margin-bottom:8px;color:#1768c3;font-size:14px;font-weight:900;}
.case-summary-item p{margin:0;color:#344e6b;font-size:14px;line-height:1.7;word-break:keep-all;}
.case-detail-article-toggle{margin:28px 0;border:1px solid #d9e7f6;background:#fff;}
.case-detail-article-toggle summary{cursor:pointer;padding:18px 22px;color:#102b4c;font-size:16px;font-weight:900;list-style:none;}
.case-detail-article-toggle summary::-webkit-details-marker{display:none;}
.case-detail-article-toggle summary::after{content:'+';float:right;color:#1768c3;font-size:20px;line-height:1;}
.case-detail-article-toggle[open] summary::after{content:'−';}
.case-detail-article-toggle .case-section-wrap{padding:0 22px 22px;}
@media(max-width:1024px){
  .case-video-archive__grid{grid-template-columns:1fr;}
  .case-video-item,.case-video-item.is-main{display:block;}
  .case-video-info{margin-top:12px;}
  .case-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:768px){
  .case-video-archive{padding:22px 16px;margin:22px 0;}
  .case-video-archive__head h2{font-size:26px;}
  .case-video-item{padding:12px;}
  .case-video-info strong,.case-video-item.is-main .case-video-info strong{font-size:18px;}
  .case-detail-video-section,.case-summary-panel{padding:18px;margin:20px 0;}
  .case-detail-video-grid,.case-summary-grid{grid-template-columns:1fr;}
  .case-detail-video-head h3,.case-summary-panel__head h3{font-size:22px;}
}


/* =========================================================
   CASE VIDEO CARD OPTION 1 PATCH
   - 영상 사례 카드: 중앙 플레이 버튼 + 우하단 영상 길이 표시
   - 기존 빨간/파란 텍스트 배지는 숨기고 영상 플레이 UI로 통일
========================================================= */
.case-card.has-video .case-thumb{
  position:relative;
  overflow:hidden;
}
.case-card.has-video .case-thumb::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background:linear-gradient(180deg,rgba(0,0,0,.16) 0%,rgba(0,0,0,.04) 42%,rgba(0,0,0,.24) 100%);
  pointer-events:none;
}
.case-video-badge{
  display:none;
}
.case-video-play{
  position:absolute;
  left:50%;
  top:50%;
  z-index:3;
  width:58px;
  height:58px;
  transform:translate(-50%,-50%);
  display:flex;
  align-items:center;
  justify-content:center;
  border:3px solid rgba(255,255,255,.92);
  border-radius:50%;
  background:rgba(0,0,0,.34);
  color:#fff;
  box-shadow:0 8px 22px rgba(0,0,0,.26);
  backdrop-filter:blur(2px);
}
.case-video-play span{
  display:block;
  margin-left:4px;
  font-size:24px;
  line-height:1;
  text-shadow:0 2px 5px rgba(0,0,0,.35);
}
.case-card.has-video:hover .case-video-play{
  transform:translate(-50%,-50%) scale(1.06);
  background:rgba(0,102,204,.72);
  border-color:#fff;
}
.case-video-duration{
  position:absolute;
  right:9px;
  bottom:9px;
  z-index:4;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:24px;
  padding:0 8px;
  border-radius:3px;
  background:rgba(0,0,0,.78);
  color:#fff;
  font-size:12px;
  font-weight:900;
  line-height:1;
  letter-spacing:.01em;
  box-shadow:0 3px 10px rgba(0,0,0,.2);
}
