.header {
  background: var(--background-blue-color) !important;
  transition: background 0.5s ease, transform 0.5s ease;
  z-index: 997;
}


/* Container */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 20px;
}

/* Hero Section Grid */
.hero-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-text {
  flex: 1;
}

.hero-image {
  flex: 1;
  text-align: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Hero Title */
.case-study-hero h1 {
  font-size: 3.2rem;
  margin-top: 60px;
  text-align: center;
  font-weight: bold;
  margin-bottom: 20px;
  color: #37517e;
}

.case-study-hero p {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 20px;
  line-height: 1.7;
  max-width: 1200px;
  margin: auto;
  text-align: justify;
}

.hero-bullets {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.hero-bullets li {
  position: relative;
  padding-left: 40px;
  margin-bottom: 15px;
  font-size: 1.1rem;
  color: #555;
}

.hero-bullets li::before {
  content: '★';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--button-color);
  font-size: 1.2rem;
  animation: rotateStar 2s linear infinite;
  transform-origin: center;
}

/* Star Rotation Animation */
@keyframes rotateStar {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(90deg); }
  50% { transform: rotate(180deg); }
  75% { transform: rotate(270deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid {
    flex-direction: column;
    text-align: center;
  }

  .hero-text {
    order: 2;
  }

  .hero-image {
    order: 1;
    margin-bottom: 30px;
  }

  .case-study-hero h1 {
    font-size: 2.2rem;
  }

  .case-study-hero p,
  .hero-bullets li {
    font-size: 1rem;
  }
}

.client-overview{
    background-color: #f9f9f9;
}
.client-overview h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: #37517e;
  font-weight: 700;
  text-align: left;
}

/* Paragraphs */
.client-overview p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 20px;
  line-height: 1.8;
}

.industry {
  background-color: #f9f9f9;
}

.industry h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: #37517e;
  font-weight: 700;
  text-align: left;
  margin-top: -80px;
}

.industry p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 20px;
  line-height: 1.8;
  text-align: justify;
}

.client-requirements {
  background-color: #fff;
  /* padding: 40px 20px; */
}

.client-requirements h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: #37517e;
  font-weight: 700;
  text-align: left;
}

.client-requirements p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 20px;
  line-height: 1.8;
  text-align: justify;
}

.client-requirements ul {
  list-style: none;
  padding-left: 0;
}

.client-requirements ul li {
  position: relative;
  padding-left: 35px;
  margin-bottom: 15px;
  font-size: 1.05rem;
  color: #555;
  line-height: 1.6;
}

.client-requirements ul li::before {
  content: '➤';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--button-color); /* Blue accent */
  font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .case-study-hero h1 {
    font-size: 2.2rem;
  }
  .case-study-hero p,
  .case-study-hero ul li,
  .client-overview p,
  .industry p,
  .client-requirements p,
  .client-requirements ul li {
    font-size: 1rem;
  }
  .container {
    padding: 40px 15px;
  }
}



.related-case-studies {
  padding: 80px 20px;
  background: #fff;
  text-align: center;
}

.related-case-studies .sub-title {
  color: var(--button-color);
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 10px;
  margin-top: -80px;
}

.related-case-studies .main-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #37517e;
  margin-bottom: 15px;
}

.related-case-studies .desc {
  max-width: 900px;
  margin: 0 auto 40px;
  color: #555;
  font-size: 1.1rem;
  line-height: 1.6;
  letter-spacing: 0.4px;
}

/* Carousel */
.carousel {
  overflow: hidden;
  position: relative;
  border-radius: 12px;
}

.carousel-track {
  display: flex;
  width: max-content;
  animation: scroll-left 40s linear infinite;
}

.carousel:hover .carousel-track {
  animation-play-state: paused; 
}

.case-card {
  position: relative;
  width: 25vw; /* exactly 3 cards visible */
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  margin: 0 10px;
  cursor: pointer;
}

.case-card img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.case-card .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(55, 81, 126, 0.9);
  color: #fff;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.5s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.case-card:hover .overlay {
  opacity: 1;
}

.case-card .overlay h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  font-weight: 700;
  color: #fff;
}

.case-card .overlay p {
  font-size: 1rem;
  margin-bottom: 15px;
  line-height: 1.5;
  letter-spacing: 0.3px;
}

.case-card .btn {
  display: inline-block;
  padding: 8px 16px;
  background: var(--button-color);
  color: #000;
  font-size: 0.9rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.case-card .btn:hover {
  background: var(--button-hover-color);
  color: #000;
}

/* Infinite scrolling animation */
@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* Moves half the duplicated track */
}

/* Responsive */
@media (max-width: 992px) {
  .case-card { width: 50vw; } /* 2 cards visible */
}

@media (max-width: 600px) {
  .case-card { width: 100vw; } /* 1 card visible */
}