/* ============================================
   CASE STUDIES LIST — Specific Styles
   ============================================ */

/* === Hero === */
.cs-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 160px 2rem 80px;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 212, 255, 0.05);
  background: radial-gradient(circle at center top, rgba(0, 212, 255, 0.02) 0%, transparent 60%);
}

.cs-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.cs-hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.cs-hero-sub {
  font-size: 1.1rem;
  color: #94a3b8;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* === Grid Section === */
.cs-list-section {
  padding: 5rem 2rem 8rem;
  position: relative;
  z-index: 1;
}

.cs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* === Case Study Card === */
.cs-card {
  position: relative;
  background: rgba(10, 14, 28, 0.6);
  border: 1px solid rgba(0,212,255,0.1);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  cursor: pointer;
}

.cs-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0,212,255,0.3);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 30px rgba(0,212,255,0.05);
}

.cs-card-img-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
}

.cs-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.cs-card:hover .cs-card-img {
  transform: scale(1.05);
}

.cs-card-content {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.cs-client {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--c-cyan);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
}

.cs-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.4;
  margin-bottom: auto; /* pushes footer down */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cs-card-footer {
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cs-read-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-cyan);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.3s ease;
}

.cs-read-more svg {
  margin-top: 1px;
}

.cs-card:hover .cs-read-more {
  gap: 0.7rem;
}

/* === Loading State === */
.cs-loader {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
  width: 100%;
}
.cs-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(0,212,255,0.2);
  border-top-color: #00d4ff;
  border-radius: 50%;
  animation: spinner 1s linear infinite;
}
@keyframes spinner {
  to { transform: rotate(360deg); }
}

@media (max-width: 1024px) {
  .cs-grid { grid-template-columns: repeat(2, 1fr); padding: 0 1rem; }
}

@media (max-width: 768px) {
  .cs-grid { grid-template-columns: 1fr; }
  .cs-hero { min-height: auto; padding: 120px 1rem 60px; }
  .cs-hero-title { font-size: clamp(2rem, 8vw, 3rem); }
}
