/* ===== Case Studies Archive Page Styles ===== */

/* Hero Section */
.hero-bg {
  background: radial-gradient(circle at top center, #111438 0%, #070919 100%);
  position: relative;
  overflow: hidden;
  color: white;
  padding-bottom: 5rem;
}

.hero-bg .decorative-dots {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  pointer-events: none;
}

.hero-bg .dot {
  position: absolute;
  background: white;
  border-radius: 50%;
}

.hero-bg .dot-1 {
  top: 2.5rem;
  left: 25%;
  width: 4px;
  height: 4px;
}

.hero-bg .dot-2 {
  top: 6rem;
  left: 2.5rem;
  width: 6px;
  height: 6px;
}

.hero-bg .dot-3 {
  top: 10rem;
  right: 25%;
  width: 4px;
  height: 4px;
}

.hero-bg .dot-4 {
  top: 4rem;
  right: 3rem;
  width: 8px;
  height: 8px;
}

.hero-content {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
  padding: 3rem 1.5rem 0;
  position: relative;
  z-index: 10;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.hero-eyebrow .line {
  width: 1.5rem;
  height: 1px;
  background: #fbbf24;
}

.hero-eyebrow .text {
  color: #fbbf24;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
  line-height: 1.2;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 3rem;
  }
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

.hero-title .serif {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  color: #fcd34d;
}

.hero-description {
  color: #9ca3af;
  font-size: 0.875rem;
  max-width: 32rem;
  margin: 0 auto 4rem;
  line-height: 1.625;
}

@media (min-width: 640px) {
  .hero-description {
    font-size: 1rem;
  }
}

/* Floating Stats Card */
.stats-card {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  color: #1e293b;
  padding: 1.5rem;
  max-width: 48rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  border-top: 1px solid #f3f4f6;
}

@media (min-width: 768px) {
  .stats-card {
    grid-template-columns: repeat(4, 1fr);
    border-top: none;
    border-left: 1px solid #f3f4f6;
  }
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .stat-item {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    text-align: left;
  }
}

.stat-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: #faf5ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9333ea;
  flex-shrink: 0;
}

.stat-content {
  text-align: left;
}

.stat-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 500;
  margin-top: 2px;
}

/* Main Content */
main {
  max-width: 80rem;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* Filters Section */
.filters-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .filters-section {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .filters-section {
    grid-template-columns: repeat(5, 1fr);
  }
}

.filter-search {
  position: relative;
}

@media (min-width: 768px) {
  .filter-search {
    grid-column: span 1;
  }
}

.filter-search i {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
}

.filter-search input {
  width: 100%;
  padding: 0.625rem 1rem 0.625rem 2.5rem;
  background: white;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  font-size: 0.75rem;
}

.filter-search input:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.2);
}

.filter-select {
  position: relative;
}

.filter-select select {
  width: 100%;
  padding: 0.625rem 1rem;
  background: white;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  font-size: 0.75rem;
  color: #4b5563;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.filter-select i {
  position: absolute;
  right: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 0.75rem;
  pointer-events: none;
}

.filter-clear a {
  display: inline-block;
  width: 100%;
  background: #e5e7eb;
  color: #6b7280;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  text-align: center;
  text-decoration: none;
}

.filter-clear a:hover {
  background: #d1d5db;
}

/* Case Study Cards Grid */
.case-studies-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .case-studies-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .case-studies-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.case-study-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid #f3f4f6;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: box-shadow 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.case-study-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.card-image {
  position: relative;
  height: 12rem;
  background: #e5e7eb;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-image .fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e9d5ff 0%, #c4b5fd 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image .fallback i {
  color: #a78bfa;
  font-size: 2.5rem;
}

.card-badge {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 600;
  color: #7e22ce;
}

.card-content {
  padding: 1.5rem;
}

.card-client {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.25rem;
}

.card-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 0.75rem;
}

.card-description {
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.625;
  margin-bottom: 1.5rem;
}

.card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  border-top: 1px solid #f3f4f6;
  padding-top: 1rem;
  margin-bottom: 1rem;
}

.card-stat .value {
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f172a;
}

.card-stat .label {
  font-size: 10px;
  color: #9ca3af;
}

.card-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: #4f46e5;
  text-decoration: none;
  transition: color 150ms;
}

.card-link:hover {
  color: #3730a3;
}

.card-link i {
  margin-left: 0.375rem;
  font-size: 10px;
}

/* Empty State */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 1rem;
}

.empty-state-content {
  background: #f9fafb;
  border-radius: 1rem;
  padding: 2rem;
  max-width: 28rem;
  margin: 0 auto;
}

.empty-state i {
  font-size: 2.25rem;
  color: #d1d5db;
  margin-bottom: 1rem;
}

.empty-state h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.empty-state p {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 1rem;
}

.empty-state a {
  display: inline-block;
  background: #fbbf24;
  color: #0f172a;
  font-weight: 700;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  text-decoration: none;
  transition: background 150ms;
}

.empty-state a:hover {
  background: #f59e0b;
}

/* CTA Banner */
.cta-banner {
  background-color: #0A0C1E;
  border-radius: 1.5rem;
  padding: 2rem 1.5rem;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
  margin: 2rem auto;
  max-width: 80rem;
}

@media (min-width: 768px) {
  .cta-banner {
    flex-direction: row;
    padding: 3rem;
  }
}

/* ===== Case Study Detail Page ===== */
/* Matching case-study-post-details.html design */

.cs-detail-wrap {
  max-width: 56rem;
  margin: 3rem auto;
  padding: 0 1rem;
}

.cs-detail-card {
  background: #ffffff;
  border-radius: 1.5rem;
  padding: 2rem 1.5rem;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.05);
}

@media (min-width: 640px) {
  .cs-detail-card {
    padding: 3rem;
  }
}

/* Breadcrumb */
.cs-breadcrumb {
  margin-bottom: 1.5rem;
  font-size: 0.8125rem;
  color: #6b7280;
}

.cs-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.cs-breadcrumb a:hover {
  color: #4f46e5;
}

.cs-breadcrumb .current {
  color: #0f172a;
  font-weight: 600;
}

/* ===== HEADER GRID ===== */
.cs-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .cs-detail-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Left Column */
.cs-detail-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4f46e5;
  display: block;
  margin-bottom: 0.75rem;
}

.cs-detail-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .cs-detail-title {
    font-size: 2.25rem;
  }
}

.cs-detail-desc {
  font-size: 0.8125rem;
  line-height: 1.625;
  color: #6b7280;
  margin-bottom: 2rem;
}

/* Mini Stats */
.cs-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  border-top: 1px solid #f3f4f6;
  padding-top: 1.5rem;
}

.cs-mini-stat .mini-stat-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #eef2ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4f46e5;
  margin-bottom: 0.5rem;
}

.cs-mini-stat .mini-stat-icon i {
  font-size: 0.75rem;
}

.cs-mini-stat .mini-stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.1;
}

.cs-mini-stat .mini-stat-label {
  font-size: 0.6875rem;
  color: #9ca3af;
  font-weight: 500;
}

/* Right Column - Image */
.cs-detail-image {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 4/3;
}

@media (min-width: 768px) {
  .cs-detail-image {
    aspect-ratio: 1;
  }
}

.cs-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cs-detail-image .img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #818cf8;
  font-size: 2.5rem;
}

/* Image Badge Overlay */
.cs-image-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(17, 19, 40, 0.9);
  backdrop-filter: blur(12px);
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.3);
  max-width: 10.625rem;
}

.cs-image-badge .badge-value {
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: #fbbf24;
  line-height: 1;
}

.cs-image-badge .badge-label {
  font-size: 0.625rem;
  color: #d1d5db;
  font-weight: 500;
  line-height: 1.25;
  margin-top: 2px;
}

/* ===== QUOTE BLOCK ===== */
.cs-quote-block {
  background: #f3f1ff;
  border-radius: 1rem;
  padding: 1.5rem 2rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 3rem;
}

.cs-quote-block .quote-mark {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  color: #6366f1;
  line-height: 0.8;
  flex-shrink: 0;
  user-select: none;
}

.cs-quote-block blockquote {
  font-size: 0.8125rem;
  color: #334155;
  font-weight: 500;
  line-height: 1.625;
  font-style: italic;
  margin: 0 0 0.75rem;
}

.cs-quote-block .quote-author-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cs-quote-block .quote-author-img {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  object-fit: cover;
  background: #e5e7eb;
}

.cs-quote-block .quote-author {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
}

/* ===== THE RESULTS ===== */
.cs-results-section {
  margin-bottom: 3rem;
}

.cs-results-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1.5rem;
}

.cs-results-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) {
  .cs-results-cards {
    grid-template-columns: repeat(4, 1fr);
  }
}

.cs-result-card {
  background: #f8f9fd;
  border-radius: 1rem;
  padding: 1.25rem;
  border: 1px solid #f3f4f6;
}

.cs-result-card .result-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #eef2ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4f46e5;
  margin-bottom: 0.75rem;
}

.cs-result-card .result-icon i {
  font-size: 0.75rem;
}

.cs-result-card .result-value {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.25rem;
  line-height: 1.1;
}

.cs-result-card .result-label {
  font-size: 0.75rem;
  color: #9ca3af;
  font-weight: 500;
}

/* ===== WHAT WE DID ===== */
.cs-what-section {
  margin-bottom: 3rem;
}

.cs-what-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1.5rem;
}

.cs-body-content {
  font-size: 0.875rem;
  line-height: 1.75;
  color: #4b5563;
}

.cs-body-content p {
  margin-bottom: 1rem;
}

.cs-body-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cs-body-content ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: #4b5563;
  font-weight: 500;
}

.cs-body-content ul li::before {
  content: '';
  width: 1.25rem;
  height: 1.25rem;
  min-width: 1.25rem;
  border-radius: 50%;
  background: #4f46e5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.125rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3E%3Cpath d='M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.75.75 0 0 1 1.06-1.06L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0z'/%3E%3C/svg%3E");
  background-size: 10px;
  background-repeat: no-repeat;
  background-position: center;
}

/* ===== CTA SECTION ===== */
.cs-cta-section {
  background: #f8f9fd;
  border-radius: 1rem;
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  border: 1px solid #f3f4f6;
}

@media (min-width: 640px) {
  .cs-cta-section {
    flex-direction: row;
    justify-content: space-between;
  }
}

.cs-cta-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cs-cta-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: #eef2ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4f46e5;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.cs-cta-text h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.125rem;
}

.cs-cta-text p {
  font-size: 0.75rem;
  color: #6b7280;
  margin: 0;
}

.cs-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #4f46e5;
  color: #fff;
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  text-decoration: none;
  transition: background 150ms;
  white-space: nowrap;
  box-shadow: 0 4px 6px -1px rgba(79,70,229,0.2);
  width: 100%;
  justify-content: center;
}

@media (min-width: 640px) {
  .cs-cta-btn {
    width: auto;
  }
}

.cs-cta-btn:hover {
  background: #4338ca;
}

.cs-cta-btn i {
  font-size: 0.625rem;
}

/* ===== Related Case Studies ===== */
.cs-related-section {
  margin-top: 3rem;
  border-top: 1px solid #f3f4f6;
  padding-top: 2rem;
}

.cs-related-section h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1.5rem;
}

.cs-related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .cs-related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cs-related-card {
  background: #ffffff;
  border: 1px solid #f3f4f6;
  border-radius: 1rem;
  overflow: hidden;
  transition: box-shadow 150ms;
}

.cs-related-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.cs-related-card .related-media {
  height: 10rem;
  background: #e5e7eb;
  background-size: cover;
  background-position: center;
}

.cs-related-card .related-body {
  padding: 1rem;
}

.cs-related-card .related-category {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #4f46e5;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cs-related-card .related-title {
  font-size: 0.9375rem;
  margin: 0.5rem 0;
  font-weight: 600;
  color: #0f172a;
}

.cs-related-card .related-title a {
  color: inherit;
  text-decoration: none;
}

.cs-related-card .related-title a:hover {
  color: #4f46e5;
}

.cs-related-card .related-link {
  font-size: 0.75rem;
  color: #4f46e5;
  font-weight: 600;
  text-decoration: none;
}

.cs-related-card .related-link:hover {
  color: #3730a3;
}

.cta-banner-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.cta-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a5b4fc;
  flex-shrink: 0;
}

.cta-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.cta-content p {
  font-size: 0.875rem;
  color: #9ca3af;
}

.cta-banner-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

@media (min-width: 768px) {
  .cta-banner-right {
    width: auto;
  }
}

.cta-btn-primary {
  background: #fbbf24;
  color: #0f172a;
  font-weight: 700;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  transition: background 150ms;
}

.cta-btn-primary:hover {
  background: #f59e0b;
}

.cta-btn-secondary {
  border: 1px solid #374151;
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  transition: background 150ms;
}

.cta-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 3rem 0;
}

.pagination-btn {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: transparent;
  border: none;
  font-size: 0.75rem;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  transition: background 150ms;
}

.pagination-btn:hover {
  background: #f3f4f6;
}

.pagination-btn.active {
  background: #4f46e5;
  color: white;
  font-weight: 700;
}

.pagination-ellipsis {
  color: #9ca3af;
  padding: 0 0.25rem;
}
