/* Case Studies page specific styles */

/* Hero/Header */
.success-stories-header {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%) !important;
  padding: 80px 0 !important;
  position: relative;
  overflow: hidden;
}
.success-title {
  font-size: 48px !important;
  font-weight: 700 !important;
  color: #fff !important;
  margin-bottom: 20px !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.success-subtitle {
  font-size: 20px !important;
  color: #fff !important;
  opacity: 0.9;
  line-height: 1.6;
}

/* Filters */
.filter-section {
  background: #fff !important;
  padding: 40px 0 !important;
  border-bottom: 1px solid #e5e7eb;
}
.filter-bar {
  display: flex !important;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.filter-categories {
  display: flex !important;
  align-items: center;
  gap: 15px;
}
.filter-label {
  font-size: 16px !important;
  font-weight: 500 !important;
  color: #374151 !important;
}
.filter-category-btn {
  padding: 8px 16px !important;
  border: 1px solid #d1d5db !important;
  background: #f9fafb !important;
  color: #374151 !important;
  border-radius: 6px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.02);
}
.filter-category-btn.active {
  background: #111827 !important;
  color: #fff !important;
  border-color: #111827 !important;
}
.filter-category-btn:focus {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}
.filter-options {
  display: flex !important;
  gap: 10px;
  flex-wrap: wrap;
}
.filter-option {
  padding: 8px 16px !important;
  border: 1px solid #d1d5db !important;
  background: #fff !important;
  color: #374151 !important;
  border-radius: 20px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  cursor: pointer;
  transition: all 0.3s ease;
}
.filter-option:hover {
  background: #f3f4f6 !important;
}
.filter-option.active {
  background: #111827 !important;
  color: #fff !important;
  border-color: #111827 !important;
}
.filter-option:focus {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

/* Cards/Grid */
.case-studies-section {
  background: #f8fafc !important;
  padding: 60px 0 !important;
}
.case-studies-header {
  margin-bottom: 40px !important;
}
.case-studies-header h2 {
  font-size: 24px !important;
  font-weight: 600 !important;
  color: #374151 !important;
}
.case-studies-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
  gap: 24px !important;
}
.case-study-card {
  background: #fff !important;
  border-radius: 16px !important;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  opacity: 1 !important;
  transform: translateY(0) !important;
}
.case-study-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08) !important;
  border-color: #d1d5db;
}
.case-study-card.hidden {
  opacity: 0 !important;
  transform: scale(0.95) !important;
  pointer-events: none;
}
.case-study-image {
  position: relative !important;
  height: 220px !important;
  overflow: hidden;
}
.case-study-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.3s ease;
}
.case-study-card:hover .case-study-image img {
  transform: scale(1.05) !important;
}
.image-overlay {
  position: absolute !important;
  inset: auto 0 0 0 !important;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7)) !important;
  padding: 16px 18px !important;
  color: #fff !important;
}
.client-name {
  font-weight: 600 !important;
}
.year {
  float: right;
  opacity: 0.9;
}
.case-study-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px !important;
  min-height: 260px;
}
.case-study-title {
  font-size: 18px !important;
  font-weight: 600 !important;
  color: #111827 !important;
  margin-bottom: 10px !important;
}
.case-study-description {
  color: #4b5563 !important;
  margin-bottom: 8px !important;
}
.technology-tags {
  display: flex !important;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 2px !important;
  margin-bottom: 6px !important;
}
.tech-tag {
  background: #eef2ff !important;
  color: #3730a3 !important;
  padding: 4px 10px !important;
  border-radius: 9999px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  box-shadow: inset 0 0 0 1px #dbe4ff;
}
.key-results {
  margin-top: auto;
}
.key-results h4 {
  font-size: 14px !important;
  margin: 0 0 8px 0 !important;
  color: #111827;
}
.key-results ul {
  margin: 0;
  padding-left: 18px;
}
.checkmark {
  color: #10b981;
  margin-right: 6px;
}
.download-btn {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
  color: #fff !important;
  border: none;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.download-btn i {
  font-size: 12px;
}
.download-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25) !important;
}
.download-btn:focus {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

/* CTA section spacing if present (kept for safety) */
.cta-sec {
  padding: 40px 0;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .success-stories-header {
    padding: 70px 0 !important;
  }
  .success-title {
    font-size: 36px !important;
  }
  .case-studies-grid {
    grid-template-columns: 1fr !important;
  }
  .download-btn {
    align-self: stretch;
    justify-content: center;
  }
}
@media (max-width: 480px) {
  .success-stories-header {
    padding: 60px 0 !important;
  }
  .success-title {
    font-size: 28px !important;
  }
  .case-studies-section {
    padding: 40px 0 !important;
  }
  .filter-section {
    padding: 30px 0 !important;
  }
}
