/* /case-studies index page styles */

.cs-page {
  background: #0f1629;
  color: #e5e7eb;
  min-height: 100vh;
}

/* ── Nav ───────────────────────────────────────────────────────────────────── */
.cs-nav {
  background: rgba(15, 22, 41, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
.cs-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cs-logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #e5e7eb;
  font-weight: 600;
  font-size: 15px;
}
.cs-nav-links { display: flex; align-items: center; gap: 20px; }
.cs-nav-links a {
  background: #f59e0b;
  color: #0f1629;
  padding: 7px 16px;
  border-radius: 7px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}
.cs-nav-links a:hover { background: #d97706; }

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.cs-hero {
  background: linear-gradient(135deg, #0f1629 0%, #1a2540 100%);
  padding: 72px 24px 56px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cs-hero-inner { max-width: 680px; margin: 0 auto; }

.cs-badge {
  display: inline-block;
  background: rgba(245,158,11,0.15);
  color: #f59e0b;
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.cs-h1 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 400;
  color: #ffffff;
  line-height: 1.18;
  margin: 0 0 18px;
}

.cs-sub {
  color: #8899aa;
  font-size: 17px;
  line-height: 1.65;
  max-width: 540px;
  margin: 0 auto;
}

/* ── Filter Bar ─────────────────────────────────────────────────────────────── */
.cs-filter-bar {
  background: #111d32;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 20px 24px;
}
.cs-filter-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}
.cs-filter-label {
  color: #6b7c96;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 4px;
}
.cs-filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cs-filter-select {
  background: #1a2744;
  color: #d1d5db;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 9px 32px 9px 14px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 14px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238899aa' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  min-width: 170px;
  transition: border-color 0.15s, background-color 0.15s;
}
.cs-filter-select:hover, .cs-filter-select:focus {
  border-color: rgba(245,158,11,0.4);
  background-color: #1f3050;
  outline: none;
}
.cs-filter-reset {
  background: transparent;
  color: #f59e0b;
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: 8px;
  padding: 9px 16px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
  align-self: flex-end;
}
.cs-filter-reset:hover {
  background: rgba(245,158,11,0.1);
  border-color: rgba(245,158,11,0.5);
}

/* ── Grid ──────────────────────────────────────────────────────────────────── */
.cs-grid-section {
  padding: 48px 24px 80px;
}
.cs-grid-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ── Cards ──────────────────────────────────────────────────────────────────── */
.cs-card {
  background: #111d32;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s, transform 0.18s, box-shadow 0.2s;
}
.cs-card:hover {
  border-color: rgba(245,158,11,0.35);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}
.cs-card.hidden {
  display: none;
}

.cs-card-top {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cs-badge-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.industry-badge {
  background: rgba(245,158,11,0.12);
  color: #f59e0b;
  border: 1px solid rgba(245,158,11,0.2);
}
.type-badge {
  background: rgba(96,165,250,0.12);
  color: #60a5fa;
  border: 1px solid rgba(96,165,250,0.2);
}

.cs-card-amount {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 32px;
  color: #ffffff;
  line-height: 1;
  margin-top: 6px;
}

.cs-card-days {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #8899aa;
  font-size: 13px;
}
.cs-card-days strong { color: #d1d5db; }

.cs-card-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 18px;
  font-weight: 400;
  color: #f8f7f4;
  line-height: 1.3;
  margin-top: 4px;
}

.cs-card-excerpt {
  color: #8899aa;
  font-size: 14px;
  line-height: 1.6;
  flex-grow: 1;
}

.cs-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #f59e0b;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 4px;
  transition: color 0.15s, gap 0.15s;
}
.cs-card-cta:hover { color: #fcd34d; gap: 10px; }

/* ── Empty State ────────────────────────────────────────────────────────────── */
.cs-empty {
  text-align: center;
  padding: 60px 24px;
  color: #6b7c96;
}
.cs-empty svg { margin: 0 auto 16px; display: block; color: #6b7c96; }
.cs-empty p { font-size: 15px; margin-bottom: 20px; }

/* ── CTA Section ────────────────────────────────────────────────────────────── */
.cs-cta-section {
  background: linear-gradient(135deg, #0f1629 0%, #1a2744 100%);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 72px 24px;
  text-align: center;
}
.cs-cta-inner { max-width: 560px; margin: 0 auto; }
.cs-cta-h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(24px, 4vw, 36px);
  color: #ffffff;
  margin-bottom: 14px;
  line-height: 1.2;
}
.cs-cta-sub {
  color: #8899aa;
  font-size: 16px;
  margin-bottom: 28px;
  line-height: 1.6;
}
.cs-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f59e0b;
  color: #0f1629;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 30px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.18s, transform 0.12s;
}
.cs-cta-btn:hover { background: #fcd34d; transform: translateY(-1px); }

/* ── Footer ─────────────────────────────────────────────────────────────────── */
.cs-footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 32px 24px;
}
.cs-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cs-footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #8899aa;
}
.cs-footer-links {
  display: flex;
  gap: 20px;
  margin-left: auto;
}
.cs-footer-links a {
  color: #6b7c96;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.15s;
}
.cs-footer-links a:hover { color: #d1d5db; }
.cs-footer-copy {
  width: 100%;
  color: #4b5a6b;
  font-size: 12px;
  margin-top: 8px;
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .cs-grid-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .cs-grid-inner { grid-template-columns: 1fr; }
  .cs-filter-inner { gap: 12px; }
  .cs-filter-select { min-width: 140px; }
  .cs-footer-inner { flex-direction: column; align-items: flex-start; }
  .cs-footer-links { margin-left: 0; }
}