/* ====== Case / Application pages (builds on about.css) ====== */

/* Banner - dark overlay over industry photo */
.case-hero {
  position: relative;
  width: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.case-hero.idx { height: 360px; padding: 0 120px; }
.case-hero.detail { height: 320px; padding: 0 120px; }
.case-hero::after {
  content:''; position:absolute; inset:0;
  background: rgba(0,0,0,0.6);
  z-index: 1;
}
.case-hero > * { position: relative; z-index: 2; }
.case-hero .breadcrumb {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: rgba(255,255,255,0.73);
  margin-bottom: 16px;
}
.case-hero .breadcrumb .current { color: #fff; font-weight: 600; }
.case-hero .breadcrumb i { width: 14px; height: 14px; stroke: rgba(255,255,255,0.5); }
.case-hero h1 {
  font-size: 48px; font-weight: 800; color: #fff;
}
.case-hero.detail h1 { font-size: 44px; }
.case-hero .sub-tag {
  display: inline-flex; flex-direction: column; align-items: center; gap: 12px;
  margin-top: 16px;
}
.case-hero .sub-tag .label {
  font-size: 14px; letter-spacing: 3px; color: rgba(255,255,255,0.8);
  font-weight: 600;
}
.case-hero .sub-tag::after {
  content:''; display: block; width: 48px; height: 2px; background: #CC0000;
}
.case-hero p.hero-p {
  color: rgba(255,255,255,0.87); font-size: 18px; margin-top: 12px;
}

/* Stats strip */
.case-stats-strip {
  background: #fff; padding: 48px 120px;
  border-bottom: 1px solid #EEEEEE;
}
.case-stats-strip .inner {
  max-width: 1440px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  gap: 32px;
}
.case-stats-strip .stat {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.case-stats-strip .stat .n {
  color: #CC0000; font-size: 44px; font-weight: 800; line-height: 1;
}
.case-stats-strip .stat .l {
  color: #666; font-size: 14px;
}
.case-stats-strip .sep { width: 1px; height: 56px; background: #EEEEEE; }

/* Section utilities */
.case-sec { padding: 96px 120px; }
.case-sec.muted { background: #F7F8FA; }
.case-sec.white { background: #fff; }
.case-sec-inner {
  max-width: 1440px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 48px;
}
.case-sec-header {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  text-align: center;
}
.case-sec-header .pill {
  display: inline-flex; align-items: center;
  padding: 6px 16px; border-radius: 20px;
  background: rgba(204,0,0,0.08);
  color: #CC0000; font-size: 12px; font-weight: 700;
  letter-spacing: 2px;
}
.case-sec-header h2 {
  color: #1A1A2E; font-size: 36px; font-weight: 800;
}
.case-sec-header .sub {
  color: #666; font-size: 16px;
}

/* Industries grid (used on case index) */
.industries-grid {
  width: 100%; max-width: 1200px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.industry-card {
  background: #fff; border: 1px solid #E8E8E8; border-radius: 12px;
  overflow: hidden; display: flex; flex-direction: column;
  height: 420px;
  transition: transform .3s, box-shadow .3s;
  box-shadow: 0 4px 8px rgba(0,0,0,0.04);
  text-decoration: none; color: inherit;
}
.industry-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); }
.industry-card .img {
  position: relative; height: 200px;
  background-size: cover; background-position: center;
}
.industry-card .img::after {
  content:''; position:absolute; inset:0;
  background: rgba(0,0,0,0.25);
}
.industry-card .tag-pill {
  position: absolute; top: 20px; left: 20px; z-index: 2;
  padding: 4px 10px; border-radius: 4px;
  background: #CC0000; color: #fff;
  font-size: 12px; font-weight: 600;
}
.industry-card .body {
  flex: 1; padding: 28px;
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 14px;
}
.industry-card .body h3 { color: #1A1A2E; font-size: 22px; font-weight: 800; }
.industry-card .body p { color: #666; font-size: 14px; line-height: 1.6; }
.industry-card .stats-row {
  display: flex; align-items: center; gap: 16px;
}
.industry-card .stats-row .count { color: #CC0000; font-size: 14px; font-weight: 700; }
.industry-card .stats-row .sep { width: 1px; height: 14px; background: #EEEEEE; }
.industry-card .stats-row .lbl { color: #666; font-size: 13px; }

/* Featured tall cards (case index) */
.featured-grid {
  width: 100%; max-width: 1200px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.featured-tile {
  position: relative; height: 360px; border-radius: 12px;
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 24px; color: #fff;
  text-decoration: none;
  background-size: cover; background-position: center;
  transition: transform .3s;
}
.featured-tile:hover { transform: translateY(-4px); }
.featured-tile::before {
  content:''; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.9) 100%);
  z-index: 0;
}
.featured-tile > * { position: relative; z-index: 1; }
.featured-tile .ft-tag {
  display: inline-flex; align-self: flex-start;
  padding: 4px 10px; border-radius: 4px;
  background: #CC0000; color: #fff;
  font-size: 11px; font-weight: 600;
  margin-bottom: 8px;
}
.featured-tile h3 {
  color: #fff; font-size: 18px; font-weight: 700; line-height: 1.4;
}

/* Testimonial grid (case index) */
.testimonial-grid {
  width: 100%; max-width: 1200px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.testimonial-card {
  background: #fff; border: 1px solid rgba(204,0,0,0.13); border-radius: 12px;
  padding: 32px;
  display: flex; flex-direction: column; gap: 20px;
}
.testimonial-card .qmark {
  color: rgba(204,0,0,0.19); font-size: 60px; font-weight: 700;
  line-height: 0.4; height: 32px;
}
.testimonial-card .quote {
  color: #444; font-size: 14px; line-height: 1.7;
}
.testimonial-card .ft {
  padding-top: 16px; border-top: 1px solid #EEEEEE;
  display: flex; align-items: center; gap: 12px;
}
.testimonial-card .avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(204,0,0,0.08); color: #CC0000;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
}
.testimonial-card .who { color: #1A1A2E; font-size: 13px; font-weight: 700; }
.testimonial-card .role { color: #999; font-size: 12px; margin-top: 2px; }

/* Red CTA */
.case-red-cta {
  background: #CC0000; color: #fff;
  padding: 64px 120px;
  display: flex; justify-content: space-between; align-items: center; gap: 48px;
}
.case-red-cta .left h3 { color: #fff; font-size: 32px; font-weight: 800; margin-bottom: 12px; }
.case-red-cta .left p { color: rgba(255,255,255,0.85); font-size: 15px; }
.case-red-cta .right { display: flex; gap: 16px; flex-shrink: 0; }
.case-red-cta .btn-light {
  padding: 14px 36px; border-radius: 4px;
  background: #fff; color: #CC0000;
  font-size: 16px; font-weight: 700;
  transition: transform .2s, box-shadow .2s;
}
.case-red-cta .btn-light:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.case-red-cta .btn-ghost {
  padding: 14px 36px; border-radius: 4px;
  background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,0.8);
  font-size: 16px; font-weight: 600;
  transition: background .2s;
}
.case-red-cta .btn-ghost:hover { background: rgba(255,255,255,0.12); }

/* Industry detail overview */
.overview-2col {
  width: 100%; max-width: 1200px;
  display: grid; grid-template-columns: 1fr 480px; gap: 60px; align-items: center;
}
.overview-2col .ov-left { display: flex; flex-direction: column; gap: 24px; }
.overview-2col .ov-left .ov-body { display: flex; flex-direction: column; gap: 12px; }
.overview-2col .ov-left .pill {
  align-self: flex-start;
  padding: 6px 16px; border-radius: 20px;
  background: rgba(204,0,0,0.08); color: #CC0000;
  font-size: 12px; font-weight: 700; letter-spacing: 2px;
}
.overview-2col .ov-left h2 { color: #1A1A1A; font-size: 32px; font-weight: 800; }
.overview-2col .ov-left .lead { color: #555; font-size: 14px; line-height: 1.8; }
.overview-2col .ov-left .points {
  display: flex; flex-direction: column; gap: 12px; margin-top: 8px;
}
.overview-2col .ov-left .points .row {
  display: flex; align-items: center; gap: 12px;
  color: #1A1A1A; font-size: 14px; font-weight: 500;
}
.overview-2col .ov-left .points .row i {
  width: 20px; height: 20px; color: #CC0000; flex-shrink: 0;
}
.overview-2col .ov-right {
  height: 360px; border-radius: 8px;
  border: 1px solid #F0F0F0;
  background-size: cover; background-position: center;
}

/* Case cards grid on detail pages */
.case-grid {
  width: 100%; max-width: 1200px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.case-grid.auto-3 { grid-template-columns: repeat(3, 1fr); }
.case-card {
  background: #fff; border: 1px solid #E8E8E8; border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  display: flex; flex-direction: column;
  transition: transform .3s, box-shadow .3s;
}
.case-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(0,0,0,0.08); }
.case-card .img {
  position: relative; height: 200px;
  background-size: cover; background-position: center;
}
.case-card.tall .img { height: 220px; }
.case-card .case-tag {
  position: absolute; top: 20px; left: 20px;
  padding: 4px 10px; border-radius: 4px;
  background: #CC0000; color: #fff;
  font-size: 11px; font-weight: 600;
}
.case-card .body {
  flex: 1; padding: 28px;
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 14px;
}
.case-card .title-block { display: flex; flex-direction: column; gap: 10px; }
.case-card h3 { color: #1A1A2E; font-size: 18px; font-weight: 700; line-height: 1.4; }
.case-card p { color: #666; font-size: 13px; line-height: 1.7; }
.case-card .kpis {
  display: flex; align-items: center; gap: 20px;
  padding-top: 16px; border-top: 1px solid #EEEEEE;
}
.case-card .kpi { display: flex; flex-direction: column; gap: 2px; }
.case-card .kpi .v { color: #CC0000; font-size: 16px; font-weight: 700; }
.case-card .kpi .l { color: #999; font-size: 11px; }
.case-card .kpi-sep { width: 1px; height: 28px; background: #EEEEEE; }

/* Responsive */
@media (max-width: 1024px) {
  .case-hero.idx, .case-hero.detail { padding: 0 24px; height: 280px; }
  .case-hero h1 { font-size: 32px; }
  .case-hero.detail h1 { font-size: 28px; }
  .case-stats-strip { padding: 32px 24px; }
  .case-stats-strip .inner { flex-wrap: wrap; gap: 16px; }
  .case-stats-strip .sep { display: none; }
  .case-stats-strip .stat { flex-basis: calc(50% - 8px); }
  .case-sec { padding: 64px 24px; }
  .industries-grid { grid-template-columns: 1fr; }
  .industry-card { height: auto; }
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .case-red-cta { padding: 48px 24px; flex-direction: column; align-items: flex-start; gap: 24px; }
  .overview-2col { grid-template-columns: 1fr; gap: 40px; }
  .overview-2col .ov-right { height: 260px; }
  .case-grid, .case-grid.auto-3 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .featured-grid { grid-template-columns: 1fr; }
  .case-stats-strip .stat .n { font-size: 32px; }
}
