/* 도입사례 아카이브 기본 스타일. 디자인 정합은 퍼블리셔가 테마 스타일과 맞춰 조정합니다. */

.cs-archive { padding-top: 138px; }
.cs-archive .inner { padding: 0 20px; max-width: 1240px; }
.cs-archive .cs-heading { text-align: center; font-size: 48px; font-weight: 800; margin: 0 0 56px; }
html[lang="ja"] .cs-archive .cs-heading {font-weight: 700;}

/* Featured carousel (slick) */
.cs-featured { position: relative; overflow: hidden; margin-bottom: 60px; }
.cs-featured-track .slick-list { margin: 0 -16px; }
.cs-featured-track .slick-slide { margin: 0 16px; }
.cs-featured .cs-card { display: flex; align-items: flex-start; gap: 110px; flex-direction: row-reverse; }
.cs-featured .cs-card-thumb { flex: 0 0 634px; width: 634px; display: block; aspect-ratio: 634 / 360; border-radius: 12px; overflow: hidden; }
.cs-featured .cs-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-featured .cs-card-body { flex: 1 1 auto; margin-top: 48px; }
.cs-featured .cs-card-client { color: #B2B2B2; font-size: 18px; margin: 0 0 32px; font-weight: 600; }
.cs-featured .cs-card-title { font-size: 36px; font-weight: 800; margin: 0 0 24px; color: #333;}
.cs-featured .cs-card-title a { color: inherit; text-decoration: none; }
.cs-featured .cs-card-excerpt { color: #666; font-size: 16px; line-height: 1.3; }
html[lang="ja"] .cs-featured .cs-card-title {font-weight: 700;}

html[lang="en-US"] .cs-featured .cs-card-body {margin-top: 0;}

.cs-featured-dots { position: absolute; left: 0; bottom: 0; display: flex; gap: 8px; padding: 8px 0; }
.cs-dot { width: 8px; height: 8px; border-radius: 999px; border: none; background: #d1d5db; padding: 0; cursor: pointer; }
.cs-dot.active { width: 24px; background: #0097E4; transition: width 0.2s ease; }

/* Category / tag filters */
.cs-filters { text-align: center; margin-bottom: 32px; padding-top:20px; }
.cs-cat-tabs, .cs-tag-tabs { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin: 0 0 20px; padding: 0; width: 100%; }
.cs-cat-tabs-scroll { width: 100%; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: #999 #eee; margin: 0 0 20px; padding-bottom: 12px; }
.cs-cat-tabs-scroll::-webkit-scrollbar { height: 6px; }
.cs-cat-tabs-scroll::-webkit-scrollbar-track { background: #eee; }
.cs-cat-tabs-scroll::-webkit-scrollbar-thumb { background: #999; border-radius: 999px; }
.cs-cat-tabs { gap: 79px; flex-wrap: nowrap; width: max-content; min-width: 100%; margin: 0; }
.cs-cat-tab { position: relative; flex: 0 0 auto; white-space: nowrap; background: none; border: none; font-size: 20px; color: #CCCCCC; cursor: pointer; font-weight: 600; }
.cs-cat-tab.active { color: #111827; font-weight: 800; }
/* 테마 공통 [class*="btn"] 규칙이 able_cta_btn(CTA 추적용 클래스)에 걸려 패딩·라운드·overflow:hidden 등이 적용되는 것을 상쇄.
   overflow:hidden이 남으면 left:-40px 위치의 구분선(::before)이 잘려 보이지 않는다.
   테마 CSS와 로드 순서에 상관없이 이기도록 .cs-cat-tab.able_cta_btn(0,2,0)으로 지정. */
.cs-cat-tab.able_cta_btn { overflow: visible; display: inline-block; padding: 0; border-radius: 0; line-height: inherit; letter-spacing: inherit; transition: none; }
.cs-cat-tab::before { content: ""; position: absolute; top: 50%; left: -40px; transform: translateY(-50%); width: 1px; height: 16px; background: #e5e5e5; }
.cs-cat-tabs li:first-child .cs-cat-tab::before { content: none; }

html[lang="en-US"] .cs-cat-tabs { gap: 50px; }
html[lang="en-US"] .cs-cat-tab::before { left: -25.5px; }

html[lang="ja"] .cs-cat-tab { font-weight: 700;}
html[lang="ja"] .cs-cat-tabs { gap: 58px; }
html[lang="ja"] .cs-cat-tab::before { left: -29.5px; }

.cs-tag-tabs { gap: 24px; }
.cs-tag-tab { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #C1C4C7; border-radius: 65px; padding: 10px 20px; font-size: 14px; font-weight: 400; color: #C1C4C7; cursor: pointer; }
.cs-tag-tab.active { background: #333; border-color: #333; color: #fff; padding: 10px 16px; font-weight: 700;}
.cs-tag-tab.active::before { content: ""; flex-shrink: 0; width: 10px; height: 9px; background: url(/wp-content/uploads/image/common/case_check_icon.webp) no-repeat center / contain; }

/* List grid */
.cs-list-wrap { margin: 56px 0 80px; }
.cs-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 64px 24px; }

@media (max-width: 1024px) {
    .cs-archive .cs-heading { font-size: 32px; }
    .cs-cat-tabs { gap: 30px; }
    .cs-cat-tab::before { left: -15.5px; }
}

@media (max-width: 900px) {
    .cs-featured .cs-card { flex-direction: column; }
    .cs-featured .cs-card-thumb { flex-basis: auto; width: 100%; }
    .cs-featured-dots { position: static; left: auto; bottom: auto; justify-content: center; margin-top: 24px; }
    .cs-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .cs-filters { position: sticky; top: 38px; z-index: 10; background: #fff; padding-top: 10px;}
    .cs-featured { margin-bottom: 22px; }
    .cs-featured-track .slick-list { margin: 0 -8px; }
    .cs-featured-track .slick-slide { margin: 0 8px; }
    .cs-cat-tab { font-size: 16px; }
    .cs-tag-tabs { gap: 12px; padding: 10px 0;}
    .cs-tag-tab { font-size: 12px; padding: 6px 22px; }
    html[lang="en-US"] .cs-tag-tab{padding: 5px 9px;}
    html[lang="ja"] .cs-tag-tab{padding: 5px 16px;}

    .cs-tag-tab.active { padding: 6px 10px; }
    .cs-list-wrap { margin: 20px 0 30px; }
    .cs-cat-tabs-scroll {padding-top: 10px; margin-bottom: 8px;}

    html[lang="ja"] .cs-cat-tabs { gap: 33px; }
    html[lang="ja"] .cs-cat-tab::before { left: -17px; }

    html[lang="en-US"] .cs-cat-tabs { gap: 33px; }
    html[lang="en-US"] .cs-cat-tab::before { left: -17px; }
}

@media (max-width: 640px) {
    .cs-archive { padding-top: 73px; }
    .cs-archive .cs-heading { font-size: 24px; margin-bottom: 24px; }
    .cs-featured .cs-card { gap: 24px; }
    .cs-featured .cs-card-body { margin-top: 0; }
    .cs-featured .cs-card-title { font-size: 20px; margin-bottom: 12px; }
    .cs-featured .cs-card-excerpt { font-size: 14px; }
    .cs-featured .cs-card-client { font-size: 14px; margin-bottom: 12px; }
    .cs-cat-tabs { gap: 33px; }
    .cs-list { grid-template-columns: 1fr; gap: 32px; }
}

/* Cards */
.cs-card { display: block; }
.cs-card-thumb { display: block; aspect-ratio: 634 / 360; border-radius: 12px; overflow: hidden; background: #fff; }
.cs-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-card-thumb-placeholder { display: block; width: 100%; height: 100%; }
.cs-card-client { font-size: 20px; font-weight: 800; margin: 24px 0 12px; }
.cs-card-new { display: inline-block; margin-left: 8px; color: #FF0000; font-size: 14px; font-weight: 700; vertical-align: top; line-height: 1.3; }
.cs-card-excerpt { font-size: 14px; line-height: 1.3; color: #666; margin: 0; }
.cs-card-skeleton { aspect-ratio: 4 / 3; border-radius: 8px; background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 37%, #f3f4f6 63%); background-size: 400% 100%; animation: cs-skeleton-loading 1.4s ease infinite; }

@media (max-width: 640px) { 
    .cs-card-client { font-size:16px; margin: 16px 0 12px; }
    .cs-card-new {font-size: 12px;}
     .cs-card-thumb {border-radius: 8px;}
 
}

@keyframes cs-skeleton-loading {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

.cs-empty { grid-column: 1 / -1; text-align: center; color: #6b7280; padding: 60px 0; }

/* Pagination */
.cs-pagination { margin: 56px auto 0; }
.cs-pagination-wrap { display: flex; justify-content: center; gap: 0 30px; }
.cs-page-num { min-width: 0; width: 22px; height: 44px; line-height: 44px; padding: 0; border: none; background: none; font-size: 16px; font-weight: 400; text-align: center; color: grey; cursor: pointer; }
.cs-page-num.active { color: #333; }
.cs-page-arrow { position: relative; width: 22px; height: 44px; padding: 0; border: none; background: url(../images/ico_pagenation_next.webp) no-repeat center / cover; font-size: 0; color: transparent; cursor: pointer; }
.cs-page-arrow.prev { background-image: url(../images/ico_pagenation_prev.webp); }
.cs-page-arrow[disabled] { opacity: .3; pointer-events: none; cursor: default; }

@media (max-width: 1024px) {
    .cs-page-num { font-size: 14px; }
}

/* CTA 배너 (case_banner) */
.case_banner { position: relative; display: flex; align-items: center; padding: 80px 0; background: url(/wp-content/uploads/sites/2/image/sub/case_banner_ko_bg.webp) no-repeat right center / cover; }
.case_banner .inner { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.case_banner .tit { margin: 0 0 24px; font-size: 40px; font-weight: 800; color: #333; }
.case_banner p { margin: 0 0 48px; font-size: 24px; line-height: 1.3; color: #666; }
.case_banner .bt_wrap { position: relative; font-size: 0; }
.case_banner .bt_wrap .cs_bn { position: relative; overflow: hidden; z-index: 0; display: inline-block; vertical-align: top; white-space: nowrap; font-size: 24px; font-weight: 800; line-height: 1.3; padding: 16px 32px; border-radius: 66px; text-align: center; cursor: pointer; }
.case_banner .bt_wrap .cs_bn.down { color: #56ACFF; box-shadow: inset 0 0 0 2.5px #56ACFF; background-color: transparent; margin-right: 12px; }
.case_banner .bt_wrap .cs_bn.down:hover { color: #fff; }
.case_banner .bt_wrap .cs_bn.iq { color: #fff; background-color: #56ACFF; text-decoration: none; }

@media (max-width: 640px) {
    .cs-pagination { margin: 32px auto 0; }
    .cs-pagination-wrap { gap: 0 24px; }
}


html[lang="en-US"] .case_banner { background-image: url(/wp-content/uploads/sites/4/image/sub/case_banner_en_bg.webp); background-position: center; }
html[lang="en-US"] .case_banner .bt_wrap .cs_bn { min-width: 318px; }

html[lang="ja"] .case_banner { background-image: url(/wp-content/uploads/sites/3/image/sub/case_banner_ja_bg.webp); }
html[lang="ja"] .case_banner .tit { font-weight: 700; }
html[lang="ja"] .case_banner .bt_wrap .cs_bn { min-width: 256px; font-weight: 700; }

@media (max-width: 640px) {
    .case_banner { align-items: flex-start; min-height: 0; aspect-ratio: 360 / 551; padding: 48px 0 0; background-image: url(/wp-content/uploads/sites/2/image/sub/case_banner_ko_bg_mb.webp); background-position: top center; }
    .case_banner .tit { font-size: 24px; margin-bottom: 16px; }
    .case_banner p { margin-bottom: 16px; font-size: 18px; }
    .case_banner .bt_wrap { display: flex; flex-direction: column-reverse; gap: 12px; margin-top: 16px; }
    .case_banner .bt_wrap .cs_bn { font-size: 18px; padding: 12px 24px; }
    .case_banner .bt_wrap .cs_bn.down { margin-right: 0; }

    html[lang="en-US"] .case_banner { aspect-ratio: 720 / 1022; background-image: url(/wp-content/uploads/sites/4/image/sub/case_banner_en_bg_mb.webp); }

    html[lang="ja"] .case_banner { aspect-ratio: 720 / 930; padding-top: 32px; background-image: url(/wp-content/uploads/sites/3/image/sub/case_banner_ja_bg_mb.webp); }
}
