/* ========= CASE STUDIES PAGE ========= */

.cs-page {
  --cs: #0077B6;
  --cs-dark: #005A8C;
  --cs-deep: #003752;
  --cs-bg: #EBF5FB;
  --cs-pink: #E8537A;
  --cs-gold: #F5A623;
}

.page-main--cs {
  max-width: none;
  padding: 0 0 72px;
}

/* ── Hero ── */
.cs-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, var(--cs-deep) 0%, var(--cs) 48%, var(--cs-dark) 100%);
  min-height: 440px;
}

.cs-hero.page-hero--program::before {
  display: none;
}

.cs-hero .page-tagline {
  color: rgba(255, 255, 255, 0.92);
}

.cs-hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 1.05fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  max-width: 1180px;
}

.cs-hero-copy {
  min-width: 0;
  position: relative;
  z-index: 2;
}

.cs-hero-copy > * {
  animation: csHeroFade 0.7s ease-out both;
}

.cs-hero-copy .breadcrumb { animation-delay: 0.05s; }
.cs-hero-copy .page-tagline { animation-delay: 0.12s; }
.cs-hero-copy h1 { animation-delay: 0.22s; }
.cs-hero-copy .page-lead { animation-delay: 0.35s; }
.cs-hero-copy .page-hero-actions { animation-delay: 0.48s; }

@keyframes csHeroFade {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.cs-hero-reel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 8px 0;
  mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
}

.cs-reel {
  overflow: hidden;
  width: 100%;
}

.cs-reel-track {
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  animation: csReelLeft 34s linear infinite;
}

.cs-reel--right .cs-reel-track {
  animation-name: csReelRight;
  animation-duration: 38s;
}

.cs-reel--slow .cs-reel-track {
  animation-duration: 44s;
}

@keyframes csReelLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes csReelRight {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.cs-reel-thumb {
  flex-shrink: 0;
  position: relative;
  width: 168px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 24px rgba(0, 35, 55, 0.22);
}

.cs-reel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cs-reel-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 37, 58, 0.2);
}

.cs-reel-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.cs-reel-play i {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--cs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  padding-left: 2px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

/* ── Layout ── */
.cs-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 40px 0;
}

.cs-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cs);
  margin-bottom: 10px;
}

.cs-eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  background: var(--cs);
  border-radius: 2px;
}

.cs-section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 32px;
}

.cs-section-head h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: #1A202C;
  margin: 0 0 12px;
}

.cs-section-head p {
  font-size: 15px;
  color: #718096;
  line-height: 1.65;
  margin: 0;
}

/* ── Stats strip ── */
.cs-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.cs-stat {
  text-align: center;
  padding: 22px 16px;
  background: linear-gradient(160deg, #fff 0%, var(--cs-bg) 100%);
  border: 1px solid rgba(0, 119, 182, 0.14);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 55, 90, 0.06);
}

.cs-stat-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 10px;
  background: #fff;
  color: var(--cs);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(0, 55, 90, 0.08);
}

.cs-stat .n {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 28px;
  color: var(--cs);
  line-height: 1;
}

.cs-stat .l {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #718096;
}

/* ── Featured video ── */
.cs-featured {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  margin-bottom: 48px;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 55, 90, 0.1);
  color: inherit;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cs-featured:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px rgba(0, 55, 90, 0.14);
}

.cs-featured-thumb {
  position: relative;
  min-height: 220px;
  background: #1A202C;
}

.cs-featured-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 220px;
}

.cs-featured-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 37, 58, 0.25);
  transition: background 0.3s ease;
}

.cs-featured:hover .cs-featured-play {
  background: rgba(0, 37, 58, 0.38);
}

.cs-featured-play i {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: var(--cs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  padding-left: 4px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.25);
}

.cs-featured-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 7px 14px;
  background: var(--cs-pink);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
}

.cs-featured-body {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cs-featured-body h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 800;
  color: #1A202C;
  margin: 0 0 12px;
  line-height: 1.3;
}

.cs-featured-body p {
  font-size: 15px;
  color: #718096;
  line-height: 1.7;
  margin: 0 0 20px;
}

.cs-featured-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--cs);
}

.cs-featured:hover .cs-featured-link {
  gap: 12px;
}

/* ── Filters ── */
.cs-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}

.cs-filter {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid #E2E8F0;
  background: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #4A5568;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.cs-filter:hover {
  border-color: rgba(0, 119, 182, 0.35);
  color: var(--cs);
}

.cs-filter.is-active {
  background: var(--cs);
  border-color: var(--cs);
  color: #fff;
}

/* ── Video grid ── */
.cs-video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cs-video-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, opacity 0.3s ease;
}

.cs-video-card.is-hidden {
  display: none;
}

.cs-video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 44px rgba(0, 55, 90, 0.12);
  border-color: rgba(0, 119, 182, 0.22);
}

.cs-video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1A202C;
}

.cs-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

.cs-video-card:hover .cs-video-thumb img {
  transform: scale(1.04);
  opacity: 0.95;
}

.cs-video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 37, 58, 0.18);
  transition: background 0.25s ease;
}

.cs-video-card:hover .cs-video-play {
  background: rgba(0, 37, 58, 0.32);
}

.cs-video-play i {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--cs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  padding-left: 3px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.cs-video-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--cs);
}

.cs-video-tag--pink { color: var(--cs-pink); }
.cs-video-tag--gold { color: #C47D00; }
.cs-video-tag--green { color: #16A34A; }

.cs-video-body {
  padding: 18px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cs-video-body h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #1A202C;
  margin: 0 0 8px;
  line-height: 1.35;
}

.cs-video-body p {
  font-size: 13px;
  color: #718096;
  line-height: 1.55;
  margin: 0;
  flex: 1;
}

.cs-video-watch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--cs);
}

/* ── CTA ── */
.cs-cta {
  max-width: 1180px;
  margin: 56px auto 0;
  padding: 0 40px;
}

.cs-cta-band {
  background: linear-gradient(135deg, var(--cs) 0%, var(--cs-deep) 100%);
  border-radius: 22px;
  padding: 44px 40px;
  text-align: center;
  color: #fff;
}

.cs-cta-band h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  color: #fff;
  margin: 0 0 12px;
}

.cs-cta-band p {
  font-size: 15px;
  opacity: 0.9;
  max-width: 520px;
  margin: 0 auto 24px;
  line-height: 1.65;
}

.cs-cta-band .hero-ctas {
  justify-content: center;
}

/* ── Reveal ── */
.cs-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.cs-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .cs-hero-split { grid-template-columns: 1fr; }
  .cs-hero-reel { max-height: 180px; }
  .cs-stats { grid-template-columns: repeat(2, 1fr); }
  .cs-featured { grid-template-columns: 1fr; }
  .cs-video-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .cs-inner, .cs-cta { padding-left: 20px; padding-right: 20px; }
  .cs-hero-reel { max-height: 150px; }
  .cs-reel-thumb { width: 140px; }
  .cs-stats { grid-template-columns: 1fr 1fr; }
  .cs-video-grid { grid-template-columns: 1fr; }
  .cs-featured-body { padding: 24px 20px; }
  .cs-cta-band { padding: 32px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .cs-reel-track { animation: none; }
  .cs-hero-copy > * { animation: none; }
  .cs-reveal { opacity: 1; transform: none; transition: none; }
}
