main {
  height: 100%;
}

.taxonomy-case-study header {
  position: relative;
  max-width: 1920px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 6rem 0;
  background-color: #fff;
}

.taxonomy-case-study .taxonomy-header .title {
  padding: 0;
  font-family: var(--font-family-secondary);
  font-size: 52px;
  line-height: normal;
  color: #11122a;
  width: 50%;
  padding: 0 8vw;
}
.taxonomy-case-study .taxonomy-header .title span {
  font-weight: 700;
  font-style: italic;
}

.taxonomy-case-study .taxonomy-header .description {
  padding: 0;
  font-size: 16px;
  color: #464646;
  width: 50%;
  padding: 0 8vw;
}

.taxonomy-case-study .case-study-tabs {
  background-color: #11122a;
  width: 100%;
  padding: 2rem 0;
}
.taxonomy-case-study .case-study-tabs .title {
  text-align: center;
  font-size: 20px;
  color: #fff;
  font-family: var(--font-family-secondary);
  margin-bottom: 2rem;
}
.taxonomy-case-study .case-study-tabs .tab-list {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 25px;
}
.taxonomy-case-study .case-study-tabs .tab-list li {
  list-style: none;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
}
.taxonomy-case-study .case-study-tabs .tab-list li a {
  transition: all 0.3s ease;
}

.taxonomy-case-study .case-study-tabs .tab-list li:hover a {
  color: var(--bg-active);
  cursor: pointer;
}

.taxonomy-case-study .case-study-tabs .tab-list li.active {
  color: var(--bg-active);
}

.taxonomy-case-study .case-study-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 1rem;
  padding: 0 5px;
}

.taxonomy-case-study .case-study-list .card-image {
  height: 100%;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.taxonomy-case-study .case-study-list .card-image:hover img {
  cursor: pointer;
  transform: scale(1.05);
}
.taxonomy-case-study .case-study-list .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
  min-height: 180px;
}
.taxonomy-case-study .case-study-list .card-image h2 {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 20%;
  width: 100%;
  padding: 10px 25px;
  line-height: 100%;
  background-image: linear-gradient(to top, rgba(17, 18, 42, 0.7), transparent);
  color: #fff;
  font-size: 24px;
  font-family: var(--font-family-secondary);
  transition: all 0.5s ease;
}
.taxonomy-case-study .case-study-list .card-image:hover h2 {
  height: 50%;
  font-weight: 700;
  font-size: 26px;
}

.taxonomy-case-study .pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2rem 0;
}
.taxonomy-case-study .pagination .page-numbers {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  background-color: #11122a;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
}
.taxonomy-case-study .pagination .page-numbers:hover {
  background-color: var(--bg-active);
  color: #fff;
}
.taxonomy-case-study .pagination .current {
  background-color: var(--bg-active);
  color: #fff;
  pointer-events: none;
}

@media screen and (max-width: 992px) {
  .taxonomy-case-study header {
    padding: 6rem 0 3rem;
    text-align: center;
  }

  .taxonomy-case-study .taxonomy-header .title {
    margin-bottom: 1rem;
    font-size: 28px;
  }

  .taxonomy-case-study .taxonomy-header .title,
  .taxonomy-case-study .taxonomy-header .description {
    width: 100%;
    padding: 0 2rem;
  }

  .taxonomy-case-study .case-study-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .taxonomy-case-study .case-study-list .card-image h2 {
    font-size: 20px;
  }
}

@media screen and (max-width: 480px) {
  .taxonomy-case-study .case-study-tabs .tab-list li {
    font-size: 14px;
  }

  .taxonomy-case-study .taxonomy-header .title,
  .taxonomy-case-study .taxonomy-header .description {
    width: 100%;
    padding: 0 1rem;
  }

  .taxonomy-case-study .case-study-list {
    grid-template-columns: 1fr;
  }

  .taxonomy-case-study .case-study-list .card-image h2 {
    font-size: 18px;
    padding: 10px;
  }
}
