.tab-select {
  position: relative;
  padding: 75px 0;
  color: #3b3b3b;
  z-index: 2;
}

.bg-texture-img {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  z-index: -2;
  opacity: 0.03;
}

.tab-select__top-content {
  padding-bottom: 25px;
}

.tab-nav h4 {
  margin: 0 0 10px 0;
  padding: 0;
  font-size: 22px;
  font-weight: 600;
  color: #003c71;
  text-align: center;
}

.tab {
  overflow: hidden;
  border: none;
  background: transparent;
  transition: all 3s;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
}

.tab button {
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 11px 46px;
  transition: 0.3s;
  font-size: 17px;
  line-height: 1.41em;
  font-weight: 600;
  color: #003c71;
  border-radius: 100px;
}

.tab button:hover {
  text-decoration: underline;
}

.tab button.active {
  background: #003e75;
  color: #ffffff;
  text-decoration: none;
}

.tabcontent {
  display: none;
  padding: 30px 0;
  border: none;
}

.is-hidden {
  display: none !important;
}

.is-desktop {
  display: flex;
}

.tab-select .container {
  position: relative;
  z-index: 6;
}

.post-tag {
  padding: 6px 10px 6px 10px;
  background-color: #ff6720;
  color: #fff;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1em;
  display: flex;
  width: max-content;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.post-tag a,
.post-tag a:hover {
  color: #fff;
  background: unset;
}

.post-tag + .post-tag {
  display: inline-flex;
}

.post-tag:has(+ .post-tag) {
  display: inline-flex;
}

.post-tag + .post-tag:has(+ a.story-card__title) {
  display: flex;
}

.story-cards .row {
  justify-content: center;
}

.fx-accordion + .tab-select {
  margin-top: 60px;
}

.tab-select + .text-content-slider.white {
  padding-top: 0;
}

@media (max-width: 768px) {
  .is-desktop {
    display: none !important;
  }
}

.is-mobile {
  display: none !important;
}

@media (max-width: 768px) {
  .is-mobile {
    display: block !important;
  }
}

.tab-select select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 100%;
  padding: 10px 50px 10px 30px;
  font-size: 17px;
  font-weight: 600;
  color: #789d4a;
  border: 1px solid #789d4a;
  height: 46px;
  border-radius: 100px;
  cursor: pointer;
  background: #ffffff;
}

.tab-select select option {
  color: #789d4a;
  padding: 10px 0;
  display: block;
}

select::-ms-expand {
  display: none;
}

.select {
  position: relative;
}

.select:after {
  content: "\e903";
  font-family: "chemtreat";
  position: absolute;
  top: 50%;
  transform: translateY(-50%) rotate(-180deg);
  right: 30px;
  pointer-events: none;
  font-size: 13px;
  color: #789d4a;
  font-weight: normal;
}

.select.active:after {
  transform: translateY(-50%) rotate(0deg);
}

.story-card {
  background: #ffffff;
  box-shadow: 5px 8px 22px rgba(0, 60, 113, 0.5);
  border-radius: 20px;
  overflow: hidden;
  display: block;
  border: none;
  height: 100%;
  position: relative;
  padding-bottom: 70px;
}

.story-card__image {
  width: 100%;
  height: 194px;
}

.story-card__description {
  padding: 25px 26px 0;
  color: #3b3b3b;
}

.post-date {
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.4em;
  color: #3b3b3b;
  font-weight: 400;
}

a.story-card__title {
  margin: 0 0 0;
  padding: 0;
  font-size: 22px;
  line-height: 1.09em;
  color: #3b3b3b;
  font-weight: 600;
}

.story-card__btn {
  position: absolute;
  left: 26px;
  bottom: 25px;
  width: calc(100% - 52px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.story-card__description .story-link {
  margin: 0 0 0;
  padding: 0;
  font-size: 17px;
  line-height: 1.4em;
  color: #789d4a;
  font-weight: 600;
}

.story-card__description .story-download-btn {
  margin: 0 0 0;
  padding: 0;
  font-size: 17px;
  line-height: 1.4em;
  color: #003c71;
  font-weight: 600;
}

.story-card__description .story-download-btn img {
  position: relative;
  top: -2px;
  margin-left: 4px;
}

.story-card__description .story-link i {
  display: inline-block;
  vertical-align: middle;
  padding: 0 0 2px 2px;
  font-size: 13px;
}

.btn-library {
  background: #ffffff;
  border: 1px solid #ff6720;
  color: #ff6720;
}

.btn-resource {
  background: #ffffff;
  border: 1px solid #789d4a;
  color: #789d4a;
}

.btn-handbook {
  background: #ffffff;
  border: 1px solid #003c71;
  color: #003c71;
}

.tab-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.tab-btns .btn + .btn {
  margin: 0;
}

.inner-tab-select {
  padding: 0;
}

.text-content-slider.white:has(+ .tab-select) {
  margin-bottom: 0;
}

#wcchem.text-content-slider {
  padding-top: 65px;
}

.text-content-slider.white.light-blue-tile + .tab-select {
  padding-top: 0;
}

@media (min-width: 768px) {
  .tab-select {
    padding: 75px 0 90px;
  }

  .tab-select__top-content {
    padding-bottom: 30px;
  }

  .tab-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  .tab-nav h4 {
    margin: 0 0 0 0;
    width: 290px;
  }

  .select {
    width: calc(100% - 300px);
  }

  .tab-btns {
    max-width: 555px;
    margin: 0 auto;
  }

  .js-text-resources-slider.fx-slider .fx-slide {
    display: block;
    margin-bottom: 30px;
  }
}

@media (min-width: 1200px) {
  .tab-select {
    padding: 40px 0 58px;
  }

  .tab-select__top-content {
    padding-bottom: 30px;
  }

  .story-card {
    padding-bottom: 64px;
    transition: all ease-in-out 0.3s;
  }

  .story-card:hover {
    transition: all ease-in-out 0.3s;
    background: #ffffff;
    transform: translate3d(0, -10px, 0);
  }

  .tab-btns {
    padding-top: 5px;
  }

  .btn-library:hover {
    background: #ff6720;
    border: 1px solid #ff6720;
    color: #ffffff;
  }

  .btn-resource:hover {
    background: #789d4a;
    border: 1px solid #789d4a;
    color: #ffffff;
  }

  .btn-handbook:hover {
    background: #003c71;
    border: 1px solid #003c71;
    color: #ffffff;
  }

  .bg-texture-img {
    position: absolute;
    left: 0;
    bottom: -42px;
    width: 100%;
    z-index: 2;
  }

  .gradient-bottom-curve {
    position: absolute;
    width: 100%;
    height: auto;
    z-index: 1;
    left: 0;
    bottom: -42px;
  }

  .tab button {
    padding: 11px 42px;
  }

  .story-card:hover a.story-card__title {
    color: #003e75;
  }

  a.story-card__title:hover {
    color: #003e75;
    background: none;
  }

  .story-card__description .story-download-btn:hover,
  .story-card__description .story-link:hover {
    background: none;
    opacity: 0.8;
  }

  section.tab-select:has(+ section.image-cta.cta-curve) .bg-texture-img {
    z-index: 3;
  }

  section.tab-select + section.image-cta.cta-curve {
    z-index: 1;
  }
}

@media (min-width: 1400px) {
  .tab-select {
    padding: 40px 0 65px;
  }

  .bg-texture-img {
    bottom: -50px;
  }

  .gradient-bottom-curve {
    bottom: -50px;
  }
}

@media (min-width: 1600px) {
  .tab-select {
    padding: 40px 0 70px;
  }

  .bg-texture-img {
    bottom: -56px;
  }

  .gradient-bottom-curve {
    bottom: -56px;
  }
}

@media (min-width: 1800px) {
  .tab-select {
    padding: 40px 0 50px;
  }

  .bg-texture-img {
    bottom: -65px;
  }

  .gradient-bottom-curve {
    bottom: -65px;
  }
}

@media (min-width: 2200px) {
  .bg-texture-img {
    bottom: -83px;
  }

  .gradient-bottom-curve {
    bottom: -83px;
  }
}

@media (max-width: 1200px) {
  .story-cards__item {
    opacity: 1;
    transform: translateY(0px);
  }
}

@media (min-width: 600px) and (max-width: 768px) {
  .fx-slider.slick-initialized .story-cards__item.fx-slide {
    width: 500px !important;
  }

  .js-text-resources-slider .slick-slide {
    box-shadow: 5px 8px 22px rgba(0, 60, 113, 0.5);
    border-radius: 20px;
  }

  .story-card {
    box-shadow: none;
  }

  .js-text-resources-slider .slick-list.draggable {
    padding-bottom: 30px !important;
  }

  .js-text-resources-slider .slick-list .slick-track {
    display: flex;
    justify-content: center;
    gap: 80px;
  }

  .js-text-resources-slider ul.slick-dots {
    bottom: -10px;
  }

  .story-card__description .story-download-btn img {
    display: inline;
  }

  .tab-btns {
    margin-top: 10px;
  }
}

@media (max-width: 767px) {
  .story-card__image {
    height: auto;
  }
}

@media (max-width: 600px) {
  .fx-slider.slick-initialized .story-cards__item.fx-slide {
    width: 330px !important;
  }

  .js-text-resources-slider .slick-slide {
    box-shadow: 5px 8px 22px rgba(0, 60, 113, 0.5);
    border-radius: 20px;
  }

  .story-card {
    box-shadow: none;
  }

  .js-text-resources-slider .slick-list.draggable {
    padding-bottom: 30px !important;
  }

  .js-text-resources-slider .slick-list .slick-track {
    display: flex;
    justify-content: center;
    gap: 80px;
  }

  .js-text-resources-slider ul.slick-dots {
    bottom: -10px;
  }

  .story-card__description .story-download-btn img {
    display: inline;
  }

  .tab-btns {
    margin-top: 10px;
  }
}

@media (max-width: 376px) {
  .fx-slider.slick-initialized .story-cards__item.fx-slide {
    width: 310px !important;
  }
}

@media (max-width: 361px) {
  .fx-slider.slick-initialized .story-cards__item.fx-slide {
    width: 290px !important;
  }
}
