

/*
 * Filters
 */

.case-study-filters {
  margin-bottom: 45px;
}

.case-study-filter__item {
  margin-top: 20px;
}

.filter-label {
  display: block;
  font-weight: bold;
  font-size: 16px;
  margin-right: 15px;
}

.case-study-lib-selections {
  padding-left: 15px;
  padding-right: 15px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.type-section {
  text-align: center;
}

.fx-search {
  width: 100%;
  padding-left: 15px;
  padding-right: 15px;
  padding-top: 7px;
  padding-bottom: 7px;
  border: 1px solid #D9DFE3;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.tabs-row {
  display: flex;
  flex-wrap: wrap;
  padding-top: 30px;
}

.below-tabs-row {
  z-index: 0;
  width: 100%;
  position: absolute;
  bottom: 0px;
  border-bottom: 5px solid lightgray;
}

.tabs-row-container {
  width: 100%;
  position: relative;
}

#featured_title {
  text-align: center;
}

.type-title {
  width: 100%;
  text-align: center;
  text-transform: uppercase;
  font-weight: bold;
  margin-bottom: 20px;
}

.tab {
  z-index: 1;
  width: 50%;
  text-align: center;
  cursor: pointer;
  padding-bottom: 10px;
  padding-top: 10px;
  border-bottom: 5px solid transparent;
}

@media only screen and (min-width: 768px) {
  .tab {
    width: 100px;
    margin-right: 20px;
    padding-top: 0px;
  }
}

.tab:hover {
  border-color: black;
}

.tab-selected {
  border-color: black;
}

.case-study-filter__item:first-child {
  margin-top: 0;
}

.case-study-filter__item input,
.case-study-filter__item select,
.case-study-filter__item .choices {
  flex-grow: 1;
  height: 49px;
}

@media (min-width: 768px) {
  .case-study-filters form {
    display: flex;
    align-items: center;
  }

  .case-study-filters form {
    flex-wrap: wrap;
  }

  .case-study-filter__item {
    float: left;
    margin-left: 2%;
    margin-top: 0;
   
  }

  .case-study-filter__item:first-child {
    margin-left: 0;
  }
}

/*
 * Results
 */

.case-study-listing {
  list-style: none;
  display: flex;
  justify-content: start;
  flex-wrap: wrap;
}

.case-study-listing__item {
  border-top: 1px solid #ddd;
  width: 100%;
}

.case-study-listing__item-dynamic {
  width: 100%;
  padding-left: 10px;
  padding-right: 10px;
  margin-bottom: 30px;
  text-align: center;
}

@media (min-width: 768px) {
  .case-study-listing__item-dynamic {
    width: 50%;
  }
}
@media (min-width: 1200px) {
  .case-study-listing__item-dynamic {
    width: 33.3333%;
   
  }
  .case-study-filter__item:first-child .choices{
    margin-bottom: 0 !important;
  }
}
@media (min-width: 1336px) {
  .case-study-listing__item-dynamic {
    width: 33.3333%;
    max-width: 420px;
  }
  .case-study-listing{
    gap: 32px;
  }
}

.case-study-listing__item:first-child {
  border-top: 0;
}

.case-study-listing__item:nth-child(4n + 4) {
  margin-right: 0;
}

.case-study-listing__item-name {
  color: #004B86;
  margin-top: 10px;
  padding-bottom: 10px;
}

.case-study-listing__item-link {
  display: flex;
  align-items: center;
  padding: 20px;
  width: 100%;
  text-decoration: none;
  position: relative;
}

.image-button {
  padding-left: 20px;
  padding-right: 20px;
  padding-top: 7px;
  padding-bottom: 7px;
  color: black;
}

.image-button:hover {
  background-color: gray;
  color: white;
}

.case-study-listing__item-link-dynamic {
  width: 100%;
  text-decoration: none;
  position: relative;
}

.case-study-listing__item--featured .case-study-listing__item-link {
  padding: 30px;
}

.case-study-listing__item--no-result {
  padding: 20px;
  width: 100%;
  text-align: center;
}

.case-study-listing__item--featured,
.case-study-listing__item--featured:first-child {
  border: 1px solid #ddd;
  margin-bottom: 30px;
}

.case-study-listing__featured-label {
  position: absolute;
  left: 0;
  top: 0;
  padding: 2px 5px;
  background-color: #ddd;
  font-size: 0.7em;
}

.case-study-listing__item-icon {
  color: #bbb;
  font-size: 20px;
  margin-right: 20px;
}

.case-study-listing__item-thumb {
  max-width: 70px;
  height: auto;
  display: block;
  margin-right: 20px;
}

.case-study-listing__item-thumb-dynamic {
  position: relative;
  height: 256px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #004B86;
  clip-path: polygon(0 0, 91% 0, 100% 11%, 100% 100%, 9% 100%, 0 90%);
  text-align: center;

}
.case-study-listing__item-link-dynamic {
  background: transparent;
}
.case-study-listing__item-dynamic:before{
  content: unset;
}
.case_study_thumb-wrapper{
  width: 226px;
  height: 208.47px;
}

.case-study-listing__item-link-dynamic  .btn {
  color : #F17503 ;
  background: transparent;
  font-size: 16px;
  clip-path: unset;
  padding: 0;
}
.case-study-listing__item-link-dynamic  .btn::after{
  right: -15px;
}
@media(min-width:768px) {
  .case-study-listing__item-name{
    font-size: 22px;
  }
}
@media(min-width:1200px) {
  .case_study_thumb-wrapper{
    width: 226px;
    height: 308.47px;
  }
  .case-study-listing__item-thumb-dynamic {
    height: 356px;
  }
}

.case-study-listing__item-image-dynamic {
  position: relative;
  height: 200px;
  background-size: cover;
  background-position: center center;
}

.case-study-listing__item-category-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: rgba(255, 255, 255, 0.7);
  padding-left: 10px;
  padding-right: 10px;
  padding-top: 5px;
  padding-bottom: 5px;
  font-weight: bold;
  color: black;
}

.case-study-listing__item-description {
  color: #585F65;
  text-align: center;
  font-weight: 500;
  padding-bottom: 0;
}

.case-study-listing__item--featured .case-study-listing__item-thumb {
  max-width: 100px;
}

.case-study-info h4 {
  margin-bottom: 10px;
  color: #fff;
}

.case-study-info p {
  margin-bottom: 0;
  color: #fff;
  font-size: 13px;
}

.case-study-info {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 15px;
  background: rgba(0, 0, 0, 0.85);
  opacity: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  transition: all 0.3s;
}

.case-study-info * {
  width: 100%;
  display: block;
}

.span.page-numbers.current {
  color: unset;
}

.case-studies-popup {
  background-color: #fff;
  padding: 30px;
  margin: 20px auto;
  position: relative;
  width: auto;
  text-align: center;
  max-width: 800px;
}

.case-studies-popup h2 {
  margin-top: 0;
}

.fx-overview {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.load-more {
  background-color: darkgrey;
  border: 2px solid black;
  padding-left: 15px;
  padding-right: 15px;
  padding-top: 5px;
  padding-bottom: 5px;
}

.load-more:hover {
  background-color: grey;
}

.load-more-container {
  width: 100%;
  display: flex;
  justify-content: center;
}

.gated-button {
  background-color: darkgrey;
  border: 2px solid black;
  padding-left: 15px;
  padding-right: 15px;
  padding-top: 5px;
  padding-bottom: 5px;
}

.gated-button:hover {
  background-color: grey;
}

.gated-button-container {
  width: 100%;
  display: flex;
  justify-content: center;
}

.page-numbers {
  margin-left: 15px;
  margin-right: 15px;
  border: 2px solid black !important;
  padding-left: 10px;
  padding-right: 10px;
  padding-top: 5px;
  padding-bottom: 5px;
}

.btn-close {
  color: black;
  font-size: 40px;
  text-decoration: none;
  position: absolute;
  right: 12px;
  top: -7px;
}
.btn-close:hover {
  color: #333;
}
.modal:before {
  content: "";
  display: none;
  background: rgba(0, 0, 0, 0.5);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
}
.opened:before {
  display: block;
}
.opened .modal-dialog {
  transform: translate(0, 0);
  top: 20%;
}
.modal-dialog {
  background: #fefefe;
  border: #333333 solid 0px;
  margin-left: -200px;
  text-align: center;
  position: fixed;
  left: 50%;
  top: -100%;
  z-index: 11;
  width: 450px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
  transform: translate(0, -500%);
  transition: transform 0.3s ease-out;
}
.modal-body {
  padding: 20px;
}
.modal-body input {
  width: 200px;
  padding: 8px;
  border: 1px solid #ddd;
  color: #888;
  outline: 0;
  font-size: 14px;
  font-weight: bold;
  margin-top: 10px;
}
.modal-header {
  padding-top: 30px;
  padding-bottom: 10px;
}
.modal-footer {
  padding: 10px 20px;
}
.modal-header {
  border-bottom: #eeeeee solid 1px;
}
.modal-header h2 {
  font-size: 20px;
}
.case-study-listing__item--no-result::before{
  content: unset;
}

.case-study-filter__item{
  width: 100%;
  margin-left: 0;
 
}
#submit{
  float: right;
  clip-path: unset;
  background: #1B78C1;
  width: 100%;
  margin-top: 20px;
}
#submit:hover{
  background: #004B86;
}
#submit:after{
  color : #fff;
}
.case-study-filter__item:first-child{
  margin-bottom: 29px;
}

@media(min-width:768px) {
  .case-study-filter__item{
    display: flex;
    align-items: center;
  }
  #submit{
    width: auto;
    margin-top: 0;
  }
}
.case-study-filters .choices__inner{
  height: 49px;
  background: #F3F3F5;
  border: 0;
  border-radius: 0;
}
.case-study-filters .choices__placeholder{
  opacity: 1;
}
.case-study-filters .choices[data-type*="select-one"]::after{
  border-left: 0;
}


.case-study-filters .choices.is-open::after{
  rotate: 180deg;
  transform: translate(0,50%);
}
@media(min-width:1200px) {
  .case-study-filter__item {
    width: calc(100% - 496px);
  }
  .case-study-filter__item:first-child{
    width: 476px;
    margin-bottom: 0;
    margin-right: 18px ;
  }
}

