.case-hero {
  position: relative;
  background-image: url('/assets/images/case-study.jpg'); 
  background-size: cover;
  background-position: center;
  height: 80vh;
  min-height: 400px; 
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.case-hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.7));
  /* backdrop-filter: blur(4px); */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

/* .hero-content {
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
} */

/* .hero-content.visible {
  opacity: 1;
  transform: translateY(0);
} */

.section-label {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
  font-weight: 600;
  opacity: 0.8;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 40px;
  color: #ddd;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn.filled {
  background-color: #7b2eff;
  color: white;
  border: 2px solid #7b2eff;
}

.btn.filled:hover {
  background-color: white;
  color: #7b2eff;
}

.btn.outline {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.btn.outline:hover {
  background-color: white;
  color: #222;
}



/* style for the featured section */
.featured-case {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 60px 8%;
  background-color: #f9f9f9;
  gap: 40px;
  flex-wrap: wrap;
}



.featured-left {
  flex: 1;
  min-width: 300px;
}

.featured-left img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.featured-right {
  flex: 1;
  min-width: 320px;
  color: #222;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.client-logo {
  width: 120px;
  height: auto;
  margin-bottom: 10px;
}

.problem-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #23005a;
}

.what-we-did h4,
.results h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 8px;
}

.what-we-did ul {
  list-style: disc;
  padding-left: 20px;
  margin: 0;
}

.what-we-did li {
  margin-bottom: 5px;
  font-size: 0.95rem;
}

.results p {
  font-size: 1rem;
  color: #333;
}

.read-story-btn {
  align-self: start;
  padding: 10px 20px;
  font-size: 1rem;
  color: white;
  background-color: #23005a;
  text-decoration: none;
  border-radius: 30px;
  transition: all 0.3s ease;
}

.read-story-btn:hover {
  background-color: #3a0c88;
}



/* style for the case studies */

.case-filter-section {
  display: flex;
  gap: 2rem;
  padding: 40px 8%;
  font-family: 'Inter', sans-serif;
  color: #222;
  background: #fff;
}

.filters-sidebar {
  flex: 0 0 280px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 100px;
  height: max-content;
  border-right: 1px solid #ddd;
  padding-right: 20px;
}

.search-panel input[type="search"] {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  border-radius: 12px;
  border: 1.5px solid #ccc;
  transition: border-color 0.3s ease;
}

.search-panel input[type="search"]:focus {
  border-color: #23005a;
  outline: none;
  box-shadow: 0 0 8px #23005a44;
}

.filter-group h4 {
  margin-bottom: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: #23005a;
  border-bottom: 2px solid #23005a;
  padding-bottom: 4px;
}

.filter-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  color: #444;
  transition: color 0.3s ease;
}

.filter-group label:hover {
  color: #23005a;
}

.filter-group input[type="checkbox"] {
  margin-right: 10px;
  accent-color: #23005a;
  cursor: pointer;
}

.case-studies-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-left: 30px;
}

.case-study {
  display: flex;
  gap: 20px;
  /* background: #fafafa; */
  border-radius: 16px;
  /* box-shadow: 0 6px 16px rgb(35 0 90 / 0.12); */
  padding: 24px;
  transition: box-shadow 0.3s ease;
  cursor: pointer;
}

/* .case-study:hover {
  box-shadow: 0 12px 30px rgb(35 0 90 / 0.3);
} */

.case-info {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.brand-name {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 3px solid transparent;
  padding-bottom: 2px;
  width: fit-content;
}

.brand-name.noveraiq {
  border-color: #6c63ff; /* purple */
  color: #4a44ce;
}

.brand-name.noveraed {
  border-color: #2a9d8f; /* teal */
  color: #247d75;
}

.brand-name.noveramed {
  border-color: #e76f51; /* coral */
  color: #c04b36;
}

.brand-name.noverasolutions {
  border-color: #f4a261; /* orange */
  color: #c07f3c;
}

.brand-name.gpp {
  border-color: #264653; /* navy */
  color: #1f3649;
}

.case-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #23005a;
  text-decoration: none;
  transition: color 0.3s ease;
}

.case-title:hover {
  color: #6c63ff;
  text-decoration: underline;
}

.case-impact {
  font-size: 1rem;
  color: #444;
  max-width: 620px;
  line-height: 1.5;
}

.case-date {
  font-size: 0.8rem;
  color: #888;
  font-style: italic;
}

.case-image {
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgb(35 0 90 / 0.1);
  transition: transform 0.3s ease;
}

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

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

/* Responsive */
@media (max-width: 900px) {
  .case-filter-section {
    flex-direction: column;
  }
  .filters-sidebar {
    position: relative;
    border-right: none;
    border-bottom: 1px solid #ddd;
    padding-bottom: 20px;
    margin-bottom: 30px;
  }
  .case-studies-list {
    padding-left: 0;
  }
  .case-study {
    flex-direction: column;
  }
  .case-image {
    max-width: 100%;
    min-width: 100%;
  }
}


/* style for the button */
.load-more-container {
  width: 100%;
  max-width: 900px; /* match your case studies width */
  margin: 40px 0 0 0;
}

.divider {
  width: 100%;
  border: none;
  height: 1px;
  background: #ddd;
  margin-bottom: 20px;
}

/* Align load more left with case studies text */
.load-more-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.1rem;
  color: #23005a;
  cursor: pointer;
  user-select: none;
  transition: color 0.3s ease;
  outline-offset: 2px;
  outline: none;
  /* align left */
  justify-content: flex-start;
}

/* Circle around arrow with neat styling */
.arrow-circle {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 28px;
  height: 28px;
  border: 2px solid #23005a;
  border-radius: 50%;
  color: #23005a;
  transition: border-color 0.3s ease, color 0.3s ease;
  user-select: none;
}

/* Adjust SVG inside to scale nicely */
.arrow-circle svg {
  stroke: currentColor;
  width: 14px;
  height: 14px;
}

/* Hover and focus styles */
.load-more-wrapper:hover,
.load-more-wrapper:focus {
  color: #6c63ff;
}

.load-more-wrapper:hover .arrow-circle,
.load-more-wrapper:focus .arrow-circle {
  border-color: #6c63ff;
  color: #6c63ff;
}

