body {
  font-family: Titillium Web; /* Global font */
  font-weight: 400;
 }

/* Case Studies Section */
.cs-case-studies-section {
  position: relative;
  background: 
    radial-gradient(circle at center, rgba(34, 139, 34, 0.4), transparent 70%),
    radial-gradient(circle at top left, rgba(0, 178, 255, 0.15), transparent 40%),
    radial-gradient(circle at bottom right, rgba(107, 183, 69, 0.15), transparent 40%),
    #0a0a0a;
  padding: 140px 20px 80px;
  color: #fff;
  text-align: center;
  box-sizing: border-box;
  overflow: hidden; /* to contain pseudo-element */
}

@media (min-width: 1400px) {
  .cs-case-studies-section {
    padding-top: 180px;
  }
}

.cs-case-studies-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px; /* adjust fade height */
  background: linear-gradient(to bottom, rgba(11, 8, 8, 0), #0a0a0a); /* fade to next section background */
}

/* Content container inside case studies */
.cs-case-studies-content {
  max-width: 700px;
  margin: 0 auto;
}

/* Title */
.cs-case-studies-title {
  color: #EAEAEA;
  text-align: center;
  font-size: 60px;
  font-style: normal;
  font-weight: 500;
  line-height: 100px; /* 166.667% */
  letter-spacing: -1.8px;
  text-transform: capitalize;
  margin-bottom: 1rem; /* optional spacing below */
}

/* Paragraph text */
.cs-case-studies-text {
  color: var(--Miscellaneous-Text-Field---BG, #FFF);
  text-align: center;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 160%; /* 28.8px */
  margin-bottom: 1rem; /* optional spacing */
}

/* ---------- Pills Container ---------- */
/* .cs-pill-buttons-container {
  display: flex;
  justify-content: flex-start;
  gap: 15px;
  margin: 10px 0 30px 75px;
} */

/* ---------- Dropdowns ---------- */
/* .cs-dropdown {
  position: relative;
  display: inline-block;
  margin-right: 20px;
} */

/* .cs-dropbtn {
  background-color: #141219;
  color: white;
  padding: 12px 20px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  border-radius: 20px;
  transition: background-color 0.3s ease, transform 0.3s ease;
} */

/* Active dropdown button (oval highlight) */
/* .cs-dropbtn.active {
  background-color: #38a186;
  color: white;
} */

/* Hover effect for dropdown button */
/* .cs-dropbtn:hover {
  background-color: #38a186;
} */

/* Dropdown menu container */
/* .cs-dropdown-content {
  display: flex;
  flex-direction: column;
  position: absolute;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  background-color: #1b1b1f;
  min-width: 160px;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  z-index: 1;
  margin-top: 5px;
} */

/* Show dropdown menu with smooth transition */
/* .cs-dropdown.show .cs-dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
} */

/* Dropdown links */
/* .cs-dropdown-content a {
  color: #fff;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  transition: background 0.3s ease;
} */

/* Hover for links */
/* .cs-dropdown-content a:hover {
  background-color: #38a186;
} */

/* Prevent full green highlight on link */
/* .cs-dropdown-content a.active {
  background-color: transparent;
  color: white;
} */

/* ---------- Filter Section ---------- */
/* .cs-filter-section {
  margin-left: 40px;
  display: flex;
  align-items: center;
  gap: 20px; spacing between dropdowns
} */


/* ---------- Case Study Cards Container ---------- */
/* .cs-image-placeholders {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 70px;
} */

/* ---------- Case Study Groups ---------- */
/* .cs-image-group {
  display: none;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 30px 0;
} */

/* ---------- Cards ---------- */
.cs-card {
  position: relative;
  width: 320px;
  height: 480px;
  border-radius: 12px;
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: white;
  background: #000;
  box-shadow: 0 4px 8px rgba(0,0,0,0.35);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, box-shadow;
}

/* Card hover effect */
.cs-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.45);
}

/* ---------- Full Background Image ---------- */
.cs-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
}

/* Optional: dark overlay */
.cs-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.45) 40%,
    rgba(0, 0, 0, 0) 80%
  );
  z-index: 2;
  transition: background 0.4s ease;
}

/* ---------- Card Content ---------- */
.cs-card-content {
  position: absolute;
  top: 22px;
  left: 22px;
  right: 22px;
  bottom: 22px; /* ensure expand link can sit at bottom */
  z-index: 3;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Subtitle */
.cs-card-subtitle {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ffffff;
  opacity: 0.9;
  margin-bottom: 12px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Title */
.cs-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 16px 0;
  color: #ffffff;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Description ---------- */
.cs-card-desc {
  opacity: 0;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 24px;
  color: #fff;
}

/* Slide in on hover */
.cs-card:hover .cs-card-desc {
  opacity: 1;
  transform: translateX(0);
}


/* ---------- Case Study Cards Container ---------- */
.cs-image-placeholders {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 70px;
}

/* ---------- Case Study Groups ---------- */
.cs-image-group {
  display: none;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 30px 0;
}

/* ---------- Cards ---------- */
.cs-card {
  position: relative;
  width: 320px;
  height: 480px;
  border-radius: 12px;
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: white;
  background: #000;
  box-shadow: 0 4px 8px rgba(0,0,0,0.35);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), 
              box-shadow 0.4s cubic-bezier(0.4,0,0.2,1);
  will-change: transform, box-shadow;
}

/* Card hover effect: lift & pop */
.cs-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 12px 24px rgba(0,0,0,0.5);
}

/* ---------- Full Background Image ---------- */
.cs-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: opacity 0.6s cubic-bezier(0.4,0,0.2,1);
  will-change: opacity;
}

/* Fade out image on hover */
.cs-card:hover img {
  opacity: 0;
  pointer-events: none;
}

/* Overlay */
.cs-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.85) 0%,
    rgba(0,0,0,0.45) 40%,
    rgba(0,0,0,0) 80%
  );
  z-index: 2;
  transition: background 0.4s cubic-bezier(0.4,0,0.2,1);
}

/* Optional: slightly dim overlay on hover */
.cs-card:hover::after {
  background: rgba(212, 205, 142, 0.6);
}

/* ---------- Card Content ---------- */
.cs-card-content {
  position: absolute;
  top: 22px;
  left: 22px;
  right: 22px;
  bottom: 22px; /* room for expand link at bottom */
  z-index: 3;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Subtitle */
.cs-card-subtitle {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ffffff;
  opacity: 0.9;
  margin-bottom: 12px;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}

/* Title */
.cs-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 16px 0;
  color: #ffffff;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}

/* ---------- Description ---------- */
.cs-card-desc {
  opacity: 0;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1), 
              opacity 0.5s cubic-bezier(0.4,0,0.2,1);
  font-size: 1rem;
  line-height: 1.8;
  margin-top: 18px;
  margin-bottom: 20px;
  color: #fff;
}

/* Slide description in on hover */
.cs-card:hover .cs-card-desc {
  opacity: 1;
  transform: translateX(0);
}

/* ---------- Expand link at bottom-right ---------- */
.cs-card-expand {
  position: absolute;
  bottom: 22px;
  right: 22px;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
  display: inline-block;
  text-decoration: none;
  opacity: 0;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1), 
              opacity 0.5s cubic-bezier(0.4,0,0.2,1);
}

/* Slide in expand link on card hover */
.cs-card:hover .cs-card-expand {
  opacity: 1;
  transform: translateX(0);
}

/* Underline using pseudo-element for smooth animation */
.cs-card-expand::after {
  content: '';
  display: block;
  height: 2px;          /* thickness of underline */
  background: #fff;     /* underline color */
  width: 0;             /* start hidden */
  transition: width 0.5s ease; /* adjust speed */
  margin-top: 4px;      /* spacing from text */
  pointer-events: none; /* ⭐ ADD THIS */
}

/* Animate underline on hover */
.cs-card-expand:hover::after {
  width: 100%;          /* full underline width */
}





/*Temporary case study*/
/* ---------- Container ---------- */
.carousel-container {
  position: relative;
  width: 100%;
  max-width: 1900px;
  margin: 0 auto;
  padding: 20px 0;
}

/* Wrapper */
.carousel-wrapper {
  width: 100%;
  padding-top: 30px;
  overflow: visible; /* allow rows */
}

/* Cards layout — GRID instead of flex scroll */
.cs-image-placeholders {
  display: flex;
  flex-wrap: wrap;   /* <-- enables new rows */
  gap: 30px;
}

/* ---------- Default: Large screens (≥1600px) ---------- */
/* SHOW 4 CARDS PER ROW */
/* .cs-image-placeholders .cs-card {
  width: calc((100% / 4) - 22.5px);
} */

/* ---------- Medium Screens (<1600px) ---------- */
/* SHOW 3 CARDS PER ROW */
/* @media (max-width: 1600px) {
  .cs-image-placeholders .cs-card {
    width: calc((100% / 3) - 22.5px);
  }
} */

/* ---------- Tablets & Mobile (<768px) ---------- */
/* Scrollable single row */
/* @media (max-width: 768px) {
  .cs-image-placeholders {
    flex-wrap: nowrap;  
    overflow-x: auto;
    gap: 16px;
    scrollbar-width: none;
  }

  .cs-image-placeholders::-webkit-scrollbar {
    display: none;
  }

  .cs-image-placeholders .cs-card {
    min-width: 260px;
    width: auto;
  }
} */
