/*
 * KSP Case Studies custom styling - Premium High-End Design
 */

.ksp-case-studies-wrapper {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #2c3e50;
  background-color: #f8fafc;
  min-height: 80vh;
}

/* Hero Section */
.cs-hero {
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  overflow: hidden;
  border-radius: 16px;
  border-bottom: 5px solid #3b82f6;
}
.cs-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 10% 80%, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0) 60%);
  pointer-events: none;
}
.cs-hero .lead {
  color: #cbd5e1;
  max-width: 750px;
  margin: 0 auto;
}

/* Card Styling */
.cs-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 16px;
  border: 1px solid #e2e8f0;
}
.cs-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

/* Cover Wrapper and Images */
.cs-cover-wrapper {
  height: 230px;
  background: #f1f5f9;
  overflow: hidden;
  border-bottom: 1px solid #f1f5f9;
}
.cs-cover {
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.cs-card:hover .cs-cover {
  transform: scale(1.06);
}
.cs-cover-placeholder {
  height: 100%;
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}

/* Sector / Category badge */
.cs-badge {
  top: 15px;
  left: 15px;
  background-color: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(4px);
  color: #0f172a !important;
  padding: 0.4rem 0.85rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Detail Banner styling */
.cs-detail-banner-wrapper {
  height: 380px;
  background: #f1f5f9;
}
.cs-detail-banner {
  height: 100%;
  object-fit: cover;
}

/* Card Content typography */
.cs-company {
  letter-spacing: 0.05em;
  font-size: 0.75rem;
}
.cs-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 1.15rem;
  color: #0f172a !important;
  line-height: 1.4;
  height: 2.8em;
}
.cs-title a {
  transition: color 0.2s ease;
}
.cs-title a:hover {
  color: #3b82f6 !important;
}
.cs-desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 4.5em;
  line-height: 1.5;
  color: #475569;
}

/* Download Button styling */
.download-btn {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
  border: none;
  transition: background 0.2s ease, transform 0.1s ease;
}
.download-btn:hover {
  background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
  transform: translateY(-1px);
}
.download-btn:active {
  transform: translateY(1px);
}

.view-btn {
  border-width: 2px;
}

/* Pagination Custom alignment */
.cs-pager-nav .page-link {
  padding: 0.5rem 1rem;
  font-weight: 500;
  transition: all 0.2s ease;
}
.cs-pager-nav .page-item.active .page-link {
  background-color: #3b82f6 !important;
  color: #fff !important;
  border-radius: 50px;
}
.cs-pager-nav .page-item:first-child .page-link {
  border-top-left-radius: 50px;
  border-bottom-left-radius: 50px;
}
.cs-pager-nav .page-item:last-child .page-link {
  border-top-right-radius: 50px;
  border-bottom-right-radius: 50px;
}
.cs-pager-nav .page-link:hover {
  background-color: #f1f5f9;
}
