/*
* Haricane Consultancy Services - Case Studies Page CSS
* This file contains custom styles for the Case Studies page
*/

/* Import base styles from main stylesheet */
@import url('styles.css');

/*----------------------------------
# Page Header Styles
----------------------------------*/

.case-studies-hero {
  min-height: 60vh;
  padding: 80px 0 50px;
}

.case-studies-hero .hero-title {
  text-align: center;
}

.case-studies-hero .hero-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.case-studies-hero .hero-subtitle {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 800px;
}

/*----------------------------------
# Case Studies Overview Section
----------------------------------*/

.overview-card {
  background-color: #fff;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  height: 100%;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.overview-card::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 5px;
  background: var(--secondary-color-1);
  bottom: 0;
  left: 0;
  transition: height 0.4s ease;
  z-index: -1;
}

.overview-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

.overview-card:hover::before {
  height: 8px;
}

.overview-icon {
  width: 80px;
  height: 80px;
  background-color: var(--light-bg);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: all 0.4s ease;
}

.overview-icon i {
  font-size: 2.2rem;
  transition: all 0.3s ease;
}

.overview-card:hover .overview-icon {
  background-color: var(--primary-color);
  transform: scale(1.1);
}

.overview-card:hover .overview-icon i {
  color: #fff;
}

.overview-card h3 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-family: var(--heading-font);
}

.overview-card p {
  color: var(--gray);
  font-size: 1rem;
  line-height: 1.6;
}

/*----------------------------------
# Industry Filter
----------------------------------*/

.industry-filter {
  background-color: #fff;
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  margin-bottom: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.filter-title {
  font-weight: 700;
  color: var(--dark-color);
  margin-right: 10px;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.filter-btn {
  background-color: var(--light-bg);
  color: var(--dark-color);
  border: none;
  border-radius: 30px;
  padding: 8px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background-color: var(--primary-color);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(65, 105, 225, 0.2);
}

.filter-btn.active {
  background-color: var(--primary-color);
  color: #fff;
  box-shadow: 0 5px 15px rgba(65, 105, 225, 0.2);
}

/*----------------------------------
# Featured Case Study
----------------------------------*/

.case-study-featured {
  background-color: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
}

.featured-image {
  position: relative;
  height: 100%;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.industry-badge {
  position: absolute;
  top: 25px;
  left: 25px;
  background-color: var(--primary-color);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 30px;
  z-index: 2;
}

.featured-content {
  padding: 50px;
  position: relative;
}

.featured-tag {
  display: inline-block;
  background-color: var(--secondary-color-2);
  color: var(--dark-color);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 15px;
  border-radius: 30px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.featured-content h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 25px;
  color: var(--dark-color);
  font-family: var(--heading-font);
}

.metrics-row {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 25px;
}

.metric {
  display: flex;
  flex-direction: column;
}

.metric-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
  font-family: var(--heading-font);
}

.metric-label {
  font-size: 0.9rem;
  color: var(--gray);
  margin-top: 5px;
}

.featured-content p {
  color: var(--gray);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 25px;
}

.featured-highlights {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.featured-highlights li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  color: var(--dark-color);
}

.featured-highlights li i {
  position: absolute;
  left: 0;
  top: 3px;
  color: var(--secondary-color-1);
  font-size: 1.1rem;
}

.featured-btn {
  padding: 14px 30px;
  font-size: 1rem;
}

/*----------------------------------
# Case Study Card Detailed
----------------------------------*/

.case-study-card.detailed {
  background-color: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  margin-bottom: 40px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.case-study-card.detailed:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

.case-image {
    position: relative;
    height: 100%;
    max-height: 500px; /* Add this to limit height on larger screens */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Ensures image doesn't overflow container */
  }
  
  .case-image img {
    width: 100%;
    height: auto; /* Change from 100% to auto to maintain aspect ratio */
    max-height: 500px; /* Limit maximum height */
    object-fit: contain; /* Change from 'cover' to 'contain' to prevent stretching */
    object-position: center;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
  }
  
  /* Add this media query to handle very large screens */
  @media (min-width: 1400px) {
    .case-image {
      max-height: 600px;
    }
    
    .case-image img {
      max-width: 100%;
      max-height: 600px;
    }
  }

  .case-image {
    background-color: #f9f9f9; /* Light background if image doesn't fill space */
    /* other properties as above */
  }

.case-category {
  position: absolute;
  top: 20px;
  left: 20px;
  background-color: var(--primary-color);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 15px;
  border-radius: 30px;
  z-index: 2;
}

.case-content {
  padding: 40px;
}

.case-content h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 5px;
  color: var(--dark-color);
  font-family: var(--heading-font);
}

.client-subtitle {
  font-size: 1rem;
  color: var(--primary-color);
  margin-bottom: 25px;
  font-weight: 500;
}

.case-results {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  margin-bottom: 25px;
  background-color: var(--light-bg);
  padding: 20px;
  border-radius: 15px;
}

.case-results .result-item {
  text-align: center;
}

.case-results .result-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
  font-family: var(--heading-font);
  display: block;
}

.case-results .result-label {
  font-size: 0.8rem;
  color: var(--gray);
  margin-top: 5px;
  display: block;
}

.case-description h4 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-top: 30px;
  margin-bottom: 15px;
  position: relative;
  padding-left: 18px;
}

.case-description h4::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 5px;
  background-color: var(--secondary-color-1);
  border-radius: 3px;
}

.case-description p {
  color: var(--gray);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.solution-approach {
  margin-bottom: 30px;
}

.approach-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
}

.approach-icon {
  width: 50px;
  height: 50px;
  background-color: var(--light-bg);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.approach-icon i {
  font-size: 1.5rem;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.approach-item:hover .approach-icon {
  background-color: var(--primary-color);
  transform: scale(1.1);
}

.approach-item:hover .approach-icon i {
  color: #fff;
}

.approach-content {
  flex-grow: 1;
}

.approach-content h5 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--dark-color);
}

.approach-content p {
  font-size: 0.95rem;
  color: var(--gray);
  margin-bottom: 0;
}

.client-testimonial {
  background-color: var(--light-bg);
  border-radius: 15px;
  padding: 25px;
  margin-top: 30px;
  position: relative;
}

.client-testimonial i {
  font-size: 1.6rem;
  color: var(--secondary-color-1);
  opacity: 0.3;
  margin-bottom: 15px;
  display: block;
}

.client-testimonial p {
  font-style: italic;
  margin-bottom: 10px;
  font-size: 1rem;
}

.testimonial-author {
  font-weight: 700;
  color: var(--dark-color);
  text-align: right;
}

/*----------------------------------
# Results Summary Section
----------------------------------*/

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.result-card {
  background-color: #fff;
  border-radius: 15px;
  padding: 30px 25px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.07);
  transition: all 0.3s ease;
}

.result-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.result-icon {
  width: 70px;
  height: 70px;
  background-color: var(--light-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: all 0.3s ease;
}

.result-icon i {
  font-size: 1.8rem;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.result-card:hover .result-icon {
  background-color: var(--primary-color);
}

.result-card:hover .result-icon i {
  color: #fff;
}

.result-card h3 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-family: var(--heading-font);
}

.result-card p {
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/*----------------------------------
# Responsive Styles
----------------------------------*/

@media (max-width: 1199.98px) {
  .featured-content {
    padding: 40px;
  }
  
  .featured-content h2 {
    font-size: 2rem;
  }
  
  .metric-value {
    font-size: 2rem;
  }
}

@media (max-width: 991.98px) {
  .case-studies-hero {
    min-height: 50vh;
    padding: 120px 0 60px;
  }
  
  .featured-content {
    padding: 30px;
  }
  
  .featured-content h2 {
    font-size: 1.8rem;
  }
  
  .case-content {
    padding: 30px;
  }
  
  .case-content h3 {
    font-size: 1.8rem;
  }
  
  .approach-icon {
    width: 45px;
    height: 45px;
  }
  
  .approach-icon i {
    font-size: 1.3rem;
  }
}

@media (max-width: 767.98px) {
  .case-studies-hero {
    min-height: 40vh;
    padding: 100px 0 50px;
  }
  
  .case-studies-hero .hero-title {
    font-size: clamp(2.2rem, 5vw, 3rem);
  }
  
  .overview-card h3 {
    font-size: 2.5rem;
  }
  
  .industry-filter {
    flex-direction: column;
    gap: 10px;
  }
  
  .filter-title {
    margin-right: 0;
    margin-bottom: 10px;
  }
  
  .featured-content {
    padding: 25px;
  }
  
  .featured-content h2 {
    font-size: 1.6rem;
  }
  
  .metric-value {
    font-size: 1.7rem;
  }
  
  .metrics-row {
    gap: 20px;
  }
  
  .case-image img {
    height: 300px;
    border-radius: 20px 20px 0 0;
  }
  
  .case-content {
    padding: 25px;
  }
  
  .case-content h3 {
    font-size: 1.6rem;
  }
  
  .case-results {
    justify-content: center;
    padding: 15px;
  }
  
  .result-card h3 {
    font-size: 2rem;
  }
}

@media (max-width: 575.98px) {
  .case-studies-hero {
    padding: 90px 0 40px;
  }
  
  .overview-card {
    padding: 25px;
  }
  
  .overview-card h3 {
    font-size: 2.2rem;
  }
  
  .overview-icon {
    width: 65px;
    height: 65px;
  }
  
  .overview-icon i {
    font-size: 1.8rem;
  }
  
  .featured-tag {
    font-size: 0.7rem;
    padding: 5px 12px;
  }
  
  .featured-content h2 {
    font-size: 1.4rem;
  }
  
  .metrics-row {
    justify-content: space-between;
    gap: 15px;
  }
  
  .metric-value {
    font-size: 1.5rem;
  }
  
  .metric-label {
    font-size: 0.8rem;
  }
  
  .case-image img {
    height: 250px;
  }
  
  .case-content h3 {
    font-size: 1.4rem;
  }
  
  .case-results {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .results-grid {
    grid-template-columns: 1fr;
  }
  
  .result-card {
    padding: 25px 15px;
  }
  
  .result-card h3 {
    font-size: 1.8rem;
  }
  
  .approach-item {
    flex-direction: column;
  }
  
  .approach-icon {
    margin-right: 0;
    margin-bottom: 15px;
  }
}