/**
 * Case Study Page Styles
 *
 * Specific styles for the Case Study page template.
 * Mobile-first: base = mobile, min-width 769px = tablet, min-width 1025px = desktop.
 */

/* ── Hero (structural — shared base in components/hero.css) ── */
.bosa-cs-hero {
  background-color: var(--bosa-primary-dark);
  overflow: hidden;
}

.bosa-cs-hero-bg-arrow {
  position: absolute;
  top: 50%;
  left: 30%;
  width: 40%;
  height: 120%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
}

.bosa-cs-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
  text-align: center;
  gap: 48px;
  padding-top: 120px;
  padding-bottom: 80px;
  width: 100%;
}

.bosa-cs-hero-content {
  flex: 1;
  max-width: 100%;
}

.bosa-cs-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 24px;
  justify-content: center;
}

.bosa-cs-hero-title {
  margin-bottom: 24px;
}

.bosa-cs-hero-desc {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
}

.bosa-cs-hero-image {
  flex: 1;
  width: 100%;
  height: auto;
  max-width: 100%;
}

/* ── Filters Section ── */
.bosa-cs-filters-section {
  padding-top: 40px;
  padding-bottom: 40px;
}

.bosa-cs-filters-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.bosa-cs-filters-list {
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.bosa-cs-filters-select-wrap {
  position: relative;
}

.bosa-cs-filter-select {
  appearance: none;
  background: #fff;
  border: 1px solid var(--bosa-border);
  padding: 10px 40px 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--bosa-ink);
  cursor: pointer;
  font-family: inherit;
}

.bosa-cs-filters-select-wrap::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--bosa-ink);
  pointer-events: none;
}

/* ── List Section (mobile base) ── */
.bosa-cs-list-section {
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.bosa-cs-list-card {
  display: flex;
  flex-direction: column;
  background-color: var(--bosa-mist);
  border-radius: 24px;
  padding: 24px;
  gap: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.bosa-cs-list-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.bosa-cs-card-media {
  position: relative;
  width: 100%;
  height: 300px;
  flex-shrink: 0;
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px;
  overflow: hidden;
}

.bosa-cs-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bosa-cs-card-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: #fff;
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.bosa-cs-badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bosa-primary);
}

.bosa-cs-badge-text {
  display: flex;
  flex-direction: column;
}

.bosa-cs-badge-lbl {
  font-size: 10px;
  font-weight: 600;
  color: var(--bosa-muted);
  text-transform: uppercase;
}

.bosa-cs-badge-val {
  font-size: 12px;
  font-weight: 700;
  color: var(--bosa-ink);
}

.bosa-cs-card-body {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bosa-cs-card-tag {
  display: inline-block;
  background: rgba(34, 165, 89, 0.1);
  color: var(--bosa-primary);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
  align-self: flex-start;
}

.bosa-cs-card-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--bosa-ink);
  line-height: 1.25;
  margin-bottom: 16px;
}

.bosa-cs-card-desc {
  font-size: 15px;
  color: var(--bosa-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.bosa-cs-services-lbl {
  font-size: 12px;
  font-weight: 700;
  color: var(--bosa-primary);
  margin-bottom: 12px;
}

.bosa-cs-services-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bosa-cs-services-list li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bosa-mist);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--bosa-ink);
}

.bosa-cs-services-list li svg {
  color: var(--bosa-primary);
}

.bosa-cs-card-stats-wrap {
  width: 100%;
  padding: 24px;
  flex-shrink: 0;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  flex-wrap: wrap;
  border-top: 1px solid var(--bosa-border);
  gap: 24px;
}

.bosa-cs-stats-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.bosa-cs-stat-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.bosa-cs-stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bosa-mist);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bosa-primary);
  flex-shrink: 0;
}

.bosa-cs-stat-content {
  display: flex;
  flex-direction: column;
}

.bosa-cs-stat-val {
  font-size: 24px;
  font-weight: 800;
}

.bosa-cs-stat-val.highlight-green {
  color: var(--bosa-primary);
}

.bosa-cs-stat-lbl {
  font-size: 13px;
  font-weight: 600;
  color: var(--bosa-muted);
  margin-top: 4px;
}

.bosa-cs-detail-btn {
  margin-top: 32px;
  width: 100%;
  justify-content: center;
  border-radius: 9999px;
  border-color: var(--bosa-border);
  color: var(--bosa-ink);
  font-weight: 700;
}

.bosa-cs-detail-btn:hover {
  background: var(--bosa-mist);
  border-color: var(--bosa-border);
  color: var(--bosa-primary);
}

/* ── Bottom CTA (shared component CSS in assets/css/components/cta-banner.css) ── */

/* ── Tablet (min-width: 769px) ── */
@media (min-width: 769px) {
  .bosa-cs-hero-title {
    font-size: 56px;
  }

  .bosa-cs-stats-list {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .bosa-cs-detail-btn {
    width: auto;
  }
}

/* ── Desktop (min-width: 1025px) ── */
@media (min-width: 1025px) {
  .bosa-cs-hero {
    min-height: 650px;
  }

  .bosa-cs-hero-inner {
    flex-direction: row;
    text-align: left;
    padding-top: 140px;
  }

  .bosa-cs-hero-content {
    max-width: 600px;
  }

  .bosa-cs-breadcrumb {
    justify-content: flex-start;
  }

  .bosa-cs-hero-image {
    width: auto;
    max-width: 500px;
    height: 380px;
  }

  .bosa-cs-list-card {
    flex-direction: row;
    padding: 0;
    gap: 32px;
  }

  .bosa-cs-card-media {
    width: 320px;
    height: auto;
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
  }

  .bosa-cs-card-stats-wrap {
    width: 280px;
    flex-shrink: 0;
    flex-direction: column;
    justify-content: space-between;
    border-left: 1px solid var(--bosa-border);
    border-top: none;
    padding-left: 32px;
  }

  .bosa-cs-stats-list {
    flex-direction: column;
    width: auto;
  }
}
