@import url('https://fonts.googleapis.com/css2?family=Cabin:ital,wght@0,400..700;1,400..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,200..800&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

section.case-study-hero {
  padding-top: 36px;
}

.case-study-content {
  padding: 130px 0 0;
}

.case-study-slide {
  display: flex;
  gap: 18px;
}

.case-study-image img {
  width: 100%;
  height: 301px;
  border-radius: 27px;
  background: url(<path-to-image>) lightgray 50% / cover no-repeat;
  box-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.15);
}

.case-study-slider .slick-dots li button:before {
  font-family: 'slick';
  font-size: 13px;
  line-height: 20px;
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  content: '•';
  text-align: center;
  opacity: .25;
  color: #D9D9D9;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.case-study-slider .slick-dots li.slick-active button:before {
  opacity: .75;
  color: #F05D35;
}

.case-study-slider .slick-dots {
  bottom: -57px;
}

.project-title-cm {
  color: var(--white, #F6F6F6);
  font-family: "Cabinet Grotesk";
  font-size: 30px;
  font-style: normal;
  font-weight: 800;
  line-height: 48px;
  margin: 38px 0px 20px;
  letter-spacing: 0.60px;
}

/* Filter Styles */
.case-study-filters {
  margin-top: 40px;
}

/* Top Toggle Section */
.filter-toggle-section {
  text-align: center;
  margin-bottom: 30px;
}

.filter-toggles {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.toggle-btn {
  background: transparent;
  border: none;
  color: #F6F6F6;
  padding: 12px 24px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
  font-weight: 500;
}

.toggle-btn:hover {
  background: rgba(240, 93, 53, 0.1);
}

.toggle-btn.active {
  background: #F05D35;
  color: white;
}

.filter-sidebar {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-section {
  display: none;
}

.filter-section.active {
  display: block;
}

.filter-title {
  color: #F6F6F6;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
}

.filter-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #F6F6F6;
  font-size: 14px;
  position: relative;
}

.checkbox-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkmark {
  height: 18px;
  width: 18px;
  background-color: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  margin-right: 12px;
  position: relative;
  transition: all 0.3s ease;
}

.checkbox-item:hover .checkmark {
  border-color: #F05D35;
}

.checkbox-item input[type="checkbox"]:checked~.checkmark {
  background-color: #F05D35;
  border-color: #F05D35;
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-item input[type="checkbox"]:checked~.checkmark:after {
  display: block;
}

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

.project-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-card h5 {
  color: #F6F6F6;
  font-size: 18px;
  font-weight: 600;
  margin: 15px;
  margin-bottom: 10px;
}

.project-card p {
  color: rgba(246, 246, 246, 0.8);
  font-size: 14px;
  margin: 0 15px;
  margin-bottom: 15px;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.28px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 15px 15px;
}

.tag {
  background: rgba(240, 93, 53, 0.2);
  color: #F05D35;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

/* ── TOGGLE SWITCH & FILTER HEADER ── */
.cs-filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cs-toggle-wrap {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 50px;
}

.cs-mobile-filter-btn {
  display: none;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 6px 16px;
  color: #F6F6F6;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.cs-mobile-filter-btn .filter-chevron {
  transition: transform 0.3s ease;
}

.cs-mobile-filter-btn.active .filter-chevron {
  transform: rotate(180deg);
}

.cs-mobile-filter-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

.cs-toggle-label {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: rgba(246, 246, 246, 0.45);
  transition: color 0.3s ease;
  cursor: pointer;
}

.cs-toggle-label.active-label {
  color: #F6F6F6;
  font-weight: 600;
}

/* iOS-style pill switch */
.cs-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  cursor: pointer;
}

.cs-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cs-slider {
  position: absolute;
  inset: 0;
  background: #F05D35;
  border-radius: 999px;
  transition: background 0.3s ease;
}

.cs-slider::before {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.cs-switch input:checked~.cs-slider::before {
  transform: translateX(24px);
}

/* ── SIDEBAR ── */
.cs-sidebar {
  border-radius: 20px;
  border: 1px solid #333232;
  background: #0C0C0C;
  padding: 20px 16px;
  text-align: left;
  /* max-height: 780px; */
  overflow-y: auto;
}

/* ── SIDEBAR HEADER ── */
.cs-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 45px;
  background: rgba(0, 0, 0, 0.61);
}

/* All button — orange text, no bg in Figma */
.cs-all-btn {
  color: var(--Orange, #F05D35);
  font-family: Cabin;
  font-size: 22px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  background: transparent;
  padding: 0;
  border-radius: 0;
  cursor: pointer;
  transition: color 0.2s;
}

.cs-all-btn.active {
  color: #F05D35;
}

/* ── FILTER LIST ── */
.cs-filter-list {
  display: none;
  flex-direction: column;
  gap: 0;
}

.cs-filter-list.active {
  display: flex;
}

/* ── RADIO/CHECKBOX ITEMS ── */
.cs-radio-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px;
  cursor: pointer;
  color: var(--white, #F6F6F6);
  font-family: Lato;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 25.543px;
  /* 159.643% */
  letter-spacing: -0.096px;
  transition: background 0.2s, color 0.2s;
  user-select: none;
  background: rgba(0, 0, 0, 0.61);
  margin-bottom: 16px;
}

.cs-radio-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #F6F6F6;
}

.cs-radio-item input[type="checkbox"] {
  display: none;
}

/* Checkbox dot — rounded square */
.cs-radio-dot {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid rgba(255, 255, 255, 0.20);
  flex-shrink: 0;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
  background: transparent;
}

.cs-radio-dot::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.2s;
}

.cs-radio-item input[type="checkbox"]:checked~.cs-radio-dot {
  background: #F05D35;
  border-color: #F05D35;
}

.cs-radio-item input[type="checkbox"]:checked~.cs-radio-dot::after {
  opacity: 1;
}

.cs-radio-item:has(input:checked) {
  color: #F6F6F6;
  font-weight: 500;
}

/* ── PROJECT CARDS ── */
.cs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  text-align: left;
}

.cs-grid--2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 21px;
  text-align: left;
}

.cs-card {
  border-radius: 20px;
  border: 1px solid #333232;
  background: #0C0C0C;
  display: flex;
  padding: 10px 12px;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cs-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.cs-card.hidden {
  display: none;
}

.cs-card-img {
  width: 100%;
}

.cs-card-img img {
  border-radius: 7px;
  width: 100%;
  /* height: 258px; */
  object-fit: fill;
  display: block;
}

.cs-card-body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.cs-card-title {
  color: var(--white, #F6F6F6);
  font-family: Cabin;
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: 116%;
  /* 23.2px */
  margin: 0 0 8px;
}

.cs-card-desc {
  color: var(--white, #F6F6F6);
  font-family: Lato;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 147.5%;
  /* 20.65px */
  opacity: 0.8;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  letter-spacing: 0.50px;
}

/* Arrow button — orange fill in Figma */
.cs-card-arrow {
  width: 34px;
  height: 34px;
  border-radius: 34px;
  border: 1.5px solid var(--Orange, #F05D35);
  background: rgba(255, 255, 255, 0.13);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
}

.cs-card-arrow:hover {
  border-radius: 34px;
  border: 1.5px solid var(--Orange, #F05D35);
  background: var(--Orange, #F05D35);
}

.cs-card-arrow:hover svg path {
  fill: white;
}

.cm-card-header-text {
  display: flex;
  justify-content: space-between;
}

@media (max-width: 767px) {
  .cs-grid {
    grid-template-columns: 1fr;
  }

  .cs-filter-header {
    position: relative;
  }

  .cs-mobile-filter-btn {
    display: flex;
  }

  /* ── MOBILE FILTER BUTTON ── */
  .cs-filter-header {
    display: flex;
    justify-content: flex-end;
  }

  .cs-switch input:checked~.cs-slider::before {
    transform: translateX(12px);
  }

  .cs-mobile-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.20);
    padding: 3px 10px;
    color: #F6F6F6;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: 0.5rem 1rem 1rem rgb(0 0 0 / 40%), -1px -1px 0px rgb(179 179 179), 1px 1px 0px rgb(234 234 234);
  }


  .filter-chevron {
    transition: transform 0.3s ease;
  }

  .cs-mobile-filter-btn.active .filter-chevron {
    transform: rotate(180deg);
  }
}

/* ── MOBILE SIDEBAR DROPDOWN ── */
@media (max-width: 991px) {

  /* Hide sidebar by default on mobile */
  .cs-sidebar-col {
    display: none;
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    margin-bottom: 16px;
  }

  .cs-toggle-wrap {
    margin-bottom: 16px;
  }

  /* Show when active */
  .cs-sidebar-col.show {
    display: block;
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }

  .cs-sidebar {
    max-height: 400px;
    overflow-y: auto;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #111111;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  }

  /* Full width grid on mobile */
  .cs-grid {
    grid-template-columns: 1fr;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* project details page specific styles */

h1.display-heading-project {
  color: var(--white, #F6F6F6);
  font-family: "Cabinet Grotesk";
  font-size: 56px;
  font-style: normal;
  font-weight: 800;
  line-height: 116%;
  margin: 0;
  letter-spacing: 1.12px;
}

p.hero-desc-project {
  color: var(--white, #F6F6F6);
  font-family: Poppins;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  margin: 0;
  opacity: 0.8;
  letter-spacing: 0.32px;
}

.hero-center-project {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-img {
  margin: 57px 0;
}

.project-img img {
  border-radius: 40px;
  height: 614px;
  aspect-ratio: 140 / 67;
  object-fit: fill;
}

.project-meta span {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

p.job-meta-sub {
  color: var(--white, #F6F6F6);
  font-family: Poppins;
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: 150%;
  margin: 0;
  opacity: 1 !important;
  letter-spacing: 0.36px;
}

.project-meta {
  display: grid;
  align-items: stretch;
  gap: 0;
  margin-bottom: 0;
  opacity: 1;
  grid-auto-flow: column;
}

.project-meta span {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 40px;
  align-items: flex-start;
}

/* Remove left padding from first item */
.project-meta span:first-child {
  padding-left: 0;
}

/* Vertical divider between items */
.project-meta span+span {
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}


/* Override the old job-meta separator for project-meta only */
.project-meta span+span::before {
  display: none;
  content: none;
  margin: 0;
}

.project-specsfications {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.project-overview-heading {
  color: #F6F6F6;
  font-family: "Cabinet Grotesk";
  font-size: 42px;
  font-style: normal;
  font-weight: 700;
  line-height: 150%;
}

.project-overview-desc p {
  color: #F6F6F6;
  font-family: Poppins;
  font-size: 16px;
  font-style: normal;
  font-weight: 300;
  line-height: 150%;
  margin: 0;
  opacity: 0.7;
  letter-spacing: 0.32px;
}

.project-overview-desc h3 {
  color: #F6F6F6;
  font-family: "Cabinet Grotesk";
  font-size: 32px;
  font-style: normal;
  font-weight: 700;
  line-height: 150%;
  /* margin: 0; */
  letter-spacing: 0.64px;
}

.project-overview-desc h4 {
  color: #F6F6F6;
  font-family: Poppins;
  font-size: 22px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  /* 33px */
  opacity: 0.9;
  margin: 0;
  letter-spacing: 0.44px;
}

.project-overview-desc h5 {
  color: #F6F6F6;
  font-family: Poppins;
  font-size: 22px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  /* 33px */
  opacity: 0.9;
  margin: 0;
}

.project-overview-desc ul {
  color: rgba(246, 246, 246, 0.70);
  font-family: Poppins;
  font-size: 16px;
  font-style: normal;
  font-weight: 300;
  line-height: 150%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;

}

.project-overview-img {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-overview {
  display: flex;
  flex-direction: column;
  gap: 44px;
  padding: 104px 0 0;
}

.image-row {
  margin-top: 104px;
}

.project-image-section {
  border-radius: 20px;
  border: 1px solid #333232;
  background: #0C0C0C;
  padding: 17px;
  justify-content: center;
  align-items: center;
}

.project-image-section img {
  height: 429px;
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.hero-subtitle {
  color: var(--white, #F6F6F6);
  text-align: center;
  font-family: Poppins;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  opacity: 0.8;
  margin: 0;
}

.tz-dropdown {
  position: relative;
  width: 100%;
  max-width: 320px;
}

.tz-dropdown-toggle {
  width: 100%;
  border: none;
  background: #11111100;
  color: #FFF;
  font-family: Poppins;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  text-align: left;
  position: relative;
  cursor: pointer;
      display: flex;
    gap: 12px;
    align-content: center;
    align-items: center;
}

.tz-caret {
  /* position: absolute;
  right: 14px;
  top: 50%; */
  width: 10px;
  height: 10px;
  border-right: 2px solid #F6F6F6;
  border-bottom: 2px solid #F6F6F6;
  transform: translateY(-60%) rotate(45deg);
  transition: transform 0.2s ease;
  margin-top: 8px;
}

.tz-dropdown.open .tz-caret {
  transform: translateY(-40%) rotate(225deg);
}

.tz-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  z-index: 999;
  display: none;
  overflow: hidden;
  height: 350px;
}

.tz-dropdown.open .tz-dropdown-menu {
  display: block;
}

.tz-search-wrap {
  padding: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tz-search {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #1a1a1a;
  color: #fff;
  outline: none;
}

.tz-options {
  max-height: 320px;
  /* control open dropdown height here */
  overflow-y: auto;
  padding: 6px;
}

.tz-option {
  padding: 10px 12px;
  border-radius: 10px;
  color: #F6F6F6;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.4;
  transition: background 0.2s ease;
}

.tz-option:hover,
.tz-option.active {
  background: rgba(240, 93, 53, 0.16);
}

.tz-option.selected {
  background: #F05D35;
  color: #fff;
}

.info-meta-item {
  align-items: flex-start;
}

.job-meta-head {
  color: var(--white, #F6F6F6);
  font-family: Poppins;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  opacity: 0.8;
  margin: 0;
  letter-spacing: 0.36px;
}

.explore-services-portfolio {
  margin: 44px 0 30px;
  padding: 0;
}

.project-overview-desc ul span {
  color: #F6F6F6 !important;
  font-weight: 400 !important;
  margin-bottom: 7px;
}