/* 
 * Case Studies Page Styles
 * Contains all styles specific to the case studies listing and single case study pages
 */

/* Case studies hero section */
.case-studies-hero {
  background-color: #f8f9fa;
  padding: 5rem 0;
  text-align: center;
}

.case-studies-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.case-studies-hero p {
  font-size: 1.25rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
}

/* Case studies filters */
.case-studies-filters {
  padding: 3rem 0;
  background-color: #fff;
}

.filter-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.filter-button {
  padding: 0.5rem 1.5rem;
  border-radius: 2rem;
  background-color: #f8f9fa;
  color: #495057;
  border: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.filter-button:hover {
  background-color: #e9ecef;
}

.filter-button.active {
  background-color: #0056b3;
  color: #fff;
}

/* Case studies grid */
.case-studies-grid {
  padding: 3rem 0 5rem;
}

.case-study-card {
  margin-bottom: 2rem;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  height: 100%;
}

.case-study-card:hover {
  transform: translateY(-10px);
}

.case-study-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.case-study-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.case-study-card:hover .case-study-image img {
  transform: scale(1.05);
}

.case-study-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: #0056b3;
  color: #fff;
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
}

.case-study-content {
  padding: 2rem;
  background-color: #fff;
}

.case-study-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.case-study-content .client {
  color: #6c757d;
  margin-bottom: 1rem;
}

.case-study-content .excerpt {
  margin-bottom: 1.5rem;
}

.case-study-content .results {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.case-study-content .result-item {
  background-color: #f8f9fa;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  font-weight: 500;
}

.case-study-content .result-item span {
  color: #0056b3;
  font-weight: 700;
}

/* Single case study page */
.single-case-study {
  padding: 5rem 0;
}

.case-study-header {
  margin-bottom: 3rem;
}

.case-study-header .case-study-category {
  position: static;
  display: inline-block;
  margin-bottom: 1rem;
}

.case-study-header h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.case-study-header .client {
  font-size: 1.25rem;
  color: #6c757d;
  margin-bottom: 2rem;
}

.case-study-featured-image {
  margin-bottom: 3rem;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.case-study-featured-image img {
  width: 100%;
}

.case-study-overview {
  background-color: #f8f9fa;
  padding: 2rem;
  border-radius: 0.5rem;
  margin-bottom: 3rem;
}

.case-study-overview h2 {
  margin-bottom: 1.5rem;
}

.case-study-overview p {
  margin-bottom: 0;
}

.case-study-challenge {
  margin-bottom: 3rem;
}

.case-study-challenge h2 {
  margin-bottom: 1.5rem;
}

.case-study-solution {
  margin-bottom: 3rem;
}

.case-study-solution h2 {
  margin-bottom: 1.5rem;
}

.case-study-results {
  margin-bottom: 3rem;
}

.case-study-results h2 {
  margin-bottom: 1.5rem;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.result-card {
  background-color: #fff;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.result-card .result-value {
  font-size: 3rem;
  font-weight: 700;
  color: #0056b3;
  margin-bottom: 1rem;
}

.result-card .result-label {
  font-weight: 500;
}

.case-study-testimonial {
  background-color: #f8f9fa;
  padding: 3rem;
  border-radius: 0.5rem;
  margin-bottom: 3rem;
}

.case-study-testimonial .quote {
  font-size: 1.25rem;
  font-style: italic;
  margin-bottom: 2rem;
}

.case-study-testimonial .client-info {
  display: flex;
  align-items: center;
}

.case-study-testimonial .client-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-right: 1.5rem;
}

.case-study-testimonial .client-details h4 {
  margin-bottom: 0.25rem;
}

.case-study-testimonial .client-details p {
  color: #6c757d;
  margin-bottom: 0;
}

.case-study-gallery {
  margin-bottom: 3rem;
}

.case-study-gallery h2 {
  margin-bottom: 1.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.case-study-cta {
  background-color: #0056b3;
  color: #fff;
  padding: 3rem;
  border-radius: 0.5rem;
  text-align: center;
  margin-bottom: 3rem;
}

.case-study-cta h2 {
  margin-bottom: 1.5rem;
}

.case-study-cta p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.related-case-studies {
  margin-bottom: 3rem;
}

.related-case-studies h2 {
  margin-bottom: 2rem;
  text-align: center;
}

/* Responsive styles */
@media (max-width: 991.98px) {
  .case-study-header h1 {
    font-size: 2.5rem;
  }
  
  .case-study-testimonial {
    padding: 2rem;
  }
  
  .case-study-testimonial .quote {
    font-size: 1.1rem;
  }
}

@media (max-width: 767.98px) {
  .case-studies-hero h1 {
    font-size: 2.5rem;
  }
  
  .case-studies-hero p {
    font-size: 1.1rem;
  }
  
  .case-study-header h1 {
    font-size: 2rem;
  }
  
  .case-study-header .client {
    font-size: 1.1rem;
  }
  
  .results-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  
  .result-card .result-value {
    font-size: 2.5rem;
  }
  
  .case-study-testimonial .client-info {
    flex-direction: column;
    text-align: center;
  }
  
  .case-study-testimonial .client-image {
    margin-right: 0;
    margin-bottom: 1rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .case-study-cta {
    padding: 2rem;
  }
  
  .case-study-cta p {
    font-size: 1.1rem;
  }
}