/* Case study (parts/single-case.php), to the Figma "Chi tiết Case Study" frame. Shares breadcrumb, avatar and
   card styles with post.css, which is loaded with it. */
.cs { --ink: #030303; --grey: #525252; --mute: #8a8a8a; --line: #e6e6e6; --gold: #f8d000; padding-top: 112px; font-family: 'Kanit', sans-serif; color: var(--ink); background: #fff; }
.cs a { color: inherit; }
.cs-title { margin: 26px 0 18px; font: 700 52px/1.1 'Space Grotesk', sans-serif; text-transform: uppercase; max-width: 1150px; }
.cs-lead { margin: 0; max-width: 1050px; font-size: 20px; line-height: 1.6; color: var(--grey); }
.cs-facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: 34px 0 0; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cs-facts div { padding: 0 20px; border-left: 1px solid var(--line); }
.cs-facts div:first-child { padding-left: 0; border-left: 0; }
.cs-facts dt { font: 600 12px 'Space Grotesk', sans-serif; text-transform: uppercase; letter-spacing: .05em; color: #876b00; }
.cs-facts dd { margin: 6px 0 0; font: 600 18px 'Space Grotesk', sans-serif; }
.cs-cover { margin: 64px auto 0; }
.cs-cover img { display: block; width: 100%; height: auto; max-height: 680px; object-fit: cover; }
.cs-results { margin-top: 64px; padding: 70px 0 80px; background-color: var(--gold); background-image: linear-gradient(rgba(3,3,3,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(3,3,3,.06) 1px, transparent 1px); background-size: 34px 34px; }
.cs-results small { font: 600 12px 'Space Grotesk', sans-serif; text-transform: uppercase; letter-spacing: .06em; }
.cs-figs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px 0; margin-top: 26px; }
.cs-figs div { display: flex; flex-direction: column; gap: 6px; padding: 0 24px; border-left: 1px solid rgba(3,3,3,.35); }
.cs-figs div:nth-child(4n+1) { padding-left: 0; border-left: 0; }
.cs-figs b { font: 700 64px/1 'Space Grotesk', sans-serif; letter-spacing: -.02em; }
.cs-figs span { font-size: 16px; }
.cs-figs em { font-style: normal; font-size: 13px; opacity: .7; }
.cs-body { padding: 70px 0 40px; }
.cs-row { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 40px; padding: 40px 0; border-bottom: 1px solid var(--line); }
.cs-row:last-child { border-bottom: 0; }
.cs-row h2 { margin: 0; font: 700 40px/1.1 'Space Grotesk', sans-serif; text-transform: uppercase; }
.cs-row h2 small { display: block; margin-bottom: 8px; font: 600 13px 'Space Grotesk', sans-serif; color: #876b00; }
.cs-text { font-size: 17px; line-height: 1.7; color: #333; }
.cs-text > :first-child { margin-top: 0; }
.cs-text p { margin: 0 0 14px; }
.cs-text strong, .cs-text b { color: var(--ink); }
.cs-text ul { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.cs-text ul li { position: relative; padding-left: 34px; }
.cs-text ul li::before { content: "\2713"; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); display: flex; align-items: center; justify-content: center; font: 700 12px/1 sans-serif; }
.cs-text img { max-width: 100%; height: auto; }
.cs-media { padding: 20px 0 80px; }
.cs-h3 { margin: 40px 0 16px; font: 600 24px 'Space Grotesk', sans-serif; }
.cs-ba { position: relative; overflow: hidden; aspect-ratio: 16 / 8; background: #eee; }
.cs-ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cs-ba__b { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--p)) 0 0); }
.cs-ba span { position: absolute; top: 16px; padding: 4px 12px; border-radius: 99px; background: #fff; font: 600 13px 'Space Grotesk', sans-serif; }
.cs-ba .t1 { left: 16px; } .cs-ba .t2 { right: 16px; background: var(--gold); }
.cs-ba input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.cs-video { position: relative; aspect-ratio: 16 / 9; margin-top: 30px; }
.cs-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cs-gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cs-gal a { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #eee; }
.cs-gal img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cs-gal a:hover img { transform: scale(1.04); }
.cs-review { padding: 110px 0; background: #f4f4f4; }
.cs-review blockquote { position: relative; margin: 34px 0; padding-top: 56px; max-width: 1000px; font: 500 32px/1.4 'Space Grotesk', sans-serif; }
.cs-review blockquote::before { content: "\201C"; position: absolute; left: 0; top: -14px; font: 700 90px/1 'Space Grotesk', sans-serif; color: var(--gold); }
.cs-review__by { display: flex; align-items: center; gap: 14px; }
.cs-review__by > span:nth-child(2) { display: flex; flex-direction: column; }
.cs-review__by b { font: 600 18px 'Space Grotesk', sans-serif; }
.cs-review__by small { color: var(--grey); }
.cs-review__by .grow { flex: 1; }
.cs-btn { display: inline-flex; align-items: center; height: 54px; padding: 0 28px; border-radius: 99px; background: var(--gold); font: 700 15px 'Space Grotesk', sans-serif; text-transform: uppercase; text-decoration: none; }
.cs-btn:hover { background: var(--ink); color: #fff !important; }
.cs-cta { padding: 20px 0 80px; }
.cs-more { padding: 110px 0 120px; background: #fff; --ink: #030303; --grey: #525252; --line: #c9c9c9; --gold: #f8d000; font-family: 'Kanit', sans-serif; }
.cs-more a { color: #030303; }
.cs-more .pp-rel__h { margin-bottom: 14px; }
.cs-more__lead { margin: 0 0 40px; font-size: 18px; color: var(--grey); }
.cs-card .pp-card__img { position: relative; }
.cs-card__tag { position: absolute; left: 14px; top: 14px; padding: 4px 12px; border-radius: 99px; background: #fff; font: 600 12px 'Space Grotesk', sans-serif; font-style: normal; }
.cs-card__fig { position: absolute; right: 14px; bottom: 14px; display: flex; flex-direction: column; align-items: center; padding: 8px 14px; border-radius: 12px; background: #fff; font-size: 11px; font-style: normal; color: #525252; }
.cs-card__fig b { font: 700 26px/1.1 'Space Grotesk', sans-serif; color: #030303; }
.cs-card small { margin: 0; font-size: 14px; line-height: 1.5; color: #525252; }
@media (max-width: 1199px) {
	.cs { padding-top: 100px; }
	.cs-title { font-size: 40px; }
	.cs-figs { grid-template-columns: repeat(2, 1fr); }
	.cs-figs div:nth-child(2n+1) { padding-left: 0; border-left: 0; }
	.cs-figs b { font-size: 52px; }
	.cs-row { grid-template-columns: 1fr; gap: 16px; }
	.cs-review blockquote { font-size: 26px; }
}
@media (max-width: 767px) {
	.cs { padding-top: 90px; }
	.cs-title { margin-top: 16px; font-size: 28px; }
	.cs-lead { font-size: 16px; }
	.cs-facts { display: flex; overflow-x: auto; scrollbar-width: none; gap: 10px; margin-right: -15px; padding: 18px 15px 18px 0; border: 0; }
	.cs-facts div, .cs-facts div:first-child { flex: 0 0 auto; padding: 12px 16px; border: 0; border-radius: 14px; box-shadow: inset 0 0 0 1.5px var(--line); }
	.cs-facts dd { font-size: 16px; white-space: nowrap; }
	.cs-cover { margin-top: 10px; }
	.cs-cover img { max-height: 280px; }
	.cs-results { margin-top: 40px; padding: 44px 0 50px; }
	.cs-figs { gap: 26px 0; }
	.cs-figs div { padding: 0 14px; }
	.cs-figs b { font-size: 36px; }
	.cs-figs span { font-size: 14px; }
	.cs-body { padding: 30px 0 10px; }
	.cs-row { padding: 28px 0; }
	.cs-row h2 { font-size: 28px; }
	.cs-text { font-size: 16px; }
	.cs-gal { grid-template-columns: 1fr 1fr; }
	.cs-review { padding: 64px 0; }
	.cs-review blockquote { font-size: 20px; }
	.cs-review__by { flex-wrap: wrap; }
	.cs-review__by .cs-btn { width: 100%; justify-content: center; margin-top: 14px; }
	.cs-more { padding: 64px 0 70px; }
}
/* a fact with several values (services): one at a time, 5s or drag */
.cs-facts dt small { margin-left: 6px; font-size: 11px; color: #999; }
.cs-rot { position: relative; height: 1.4em; overflow: hidden; cursor: grab; user-select: none; touch-action: pan-y; }
.cs-rot span { position: absolute; left: 0; top: 0; white-space: nowrap; opacity: 0; transform: translateY(100%); transition: opacity .45s, transform .45s cubic-bezier(.2,.7,.2,1); }
.cs-rot span.is-on { opacity: 1; transform: none; }
.cs-rot span.is-out { opacity: 0; transform: translateY(-100%); }
/* Images in the case study text: centred, never stretched past their own size (stays sharp) */
.cs-text img { display: block; max-width: 100%; height: auto; margin: 24px auto; }
.cs-text img:not([width]) { width: auto; } /* with width/height set the box is reserved before the file loads (no layout shift) */
.cs-text figure, .cs-text .wp-caption, .cs-text .wp-block-image { width: auto !important; max-width: 100%; margin: 24px auto; text-align: center; }
.cs-text figure img, .cs-text .wp-caption img { margin: 0 auto; }
.cs-text figcaption, .cs-text .wp-caption-text { margin-top: 10px; font-size: 14px; color: #666; text-align: center; }
.cs-text .alignleft, .cs-text .alignright { float: none; }
