/* fix remove text shadow from hero banner */
.page-template-default .chai-hero-banner-row .et_pb_text_0 h1 {
  text-shadow: unset;
}

/* Search and team buttons from header */

body.et_fixed_nav.et_secondary_nav_enabled #main-header {
  top: 40px;
}

@media (min-width: 981px) {
  .et-search-form input {
    left: 30px;
    padding: 0 30px;
  }
  
  .et-search-form input:focus, .et-search-form input:focus-visible {
    outline: 3px solid #1282a2;
    outline-offset: -15px;
  }

  span.et_close_search_field,
  button.et_close_search_field{
    right: 30px;
  }
  
  span.et_close_search_field::after,
  button.et_close_search_field {
    color: #999;
    transition: 0.3s all;
  }
  
  span.et_close_search_field:hover::after,
  button.et_close_search_field:hover::after {
    color: #1282a2;
  }
  
  .chai-menu-right .menu-item.join-chai a {
    transition: 0.3s all;
  }
  
  .chai-menu-right .menu-item.join-chai a:hover {
    color: #fff;
    background-color: #1282a2;
  }
}

@media (max-width: 980px) {
  .et-search-form input {
    font-size: 14px;
    width: 98%;
    margin-top: 1.5rem !important;
    height: 45px;
  }

  li.menu-item.back-menu {
    text-align: left;
    padding-left: 30px;
  }

  .mobile_menu_bar::before {
    color: #003e78;
    cursor: pointer;
    font-size: 40px !important;
    left: 0 !important;
    top: 0 !important;
    position: relative;
  }
  .opened .mobile_menu_bar::before {
    content: "\4d";
  }
  .closed .mobile_menu_bar::before {
    content: "\61";
  }
}

/* Back to top button */
.et_pb_scroll_top.et-pb-icon {
  background: #117996;
  border-radius: 50%;
  bottom: 25px;
  font-size: 40px;
  height: 60px;
  line-height: 47px;
  padding: 5px 8px 5px 4px;
  right: 15px;
  width: 60px;
}

.et_pb_scroll_top.et-pb-icon:focus-visible {
  outline: 5px solid #117996;
}
.et_pb_scroll_top.et-pb-icon:hover {
  background: #0d647d;
}

.et_pb_scroll_top.et-pb-icon:focus, .et_pb_scroll_top.et-pb-icon:focus-visible {
  outline: 3px solid #1282a2;
  outline-offset: 3px;
}

























#menu-item-3085:not(.current) > a::after {
  background-color: transparent !important;
}

.mapsvg-buttons.right {
  transform: none;
  -webkit-transform:  none;
}

.slick-initialized .post-box .post-content {
  height: auto;
}
.recent_posts .post-box .post-content .post-link > span,
.slick-initialized .post-box .post-content .post-link > span {
  display: inline-flex;
  width: fit-content;
  justify-content: flex-start;
  align-items: center;
  margin-top: auto !important;
}
.recent_posts .post-box .post-content .post-link > span::after,
.slick-initialized .post-box .post-content .post-link > span::after {
  margin: 0;
  display: flex;
  align-items: center;
  top: 4px;
  bottom: 0;
  right: -25px;
}



@media (max-width: 769px) {

  .single-post #main-content .container .featured-image {
    min-height: initial;
  }

}





.home-slide-content .subtitle {
  margin-top: 20px;
  color: #fff;
  font-size: 20px;
}













/* SVG map on home page height fixes */
.svg-maps__section .map-efe-container {
  display: flex;
  flex-direction: row;
}
#map-left ul {
  width: 100%;
}
.svg-maps__section #map-left,
.svg-maps__section #map-right {
  float: none;
  clear: both;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}
.svg-maps__section #map-left {
  width: 30%;
  position: relative;
}
.svg-maps__section #map-right {
  width: 70%;
}
.svg-maps__section #map-right .mapsvg-wrap-all,
.svg-maps__section #map-right .mapsvg-wrap-all .mapsvg-wrap {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}
.svg-maps__section #map-right .mapsvg-wrap-all .mapsvg-wrap .mapsvg-map-container > .mapsvg {
  display: flex;
  flex-direction: column;
  height: 100% !important;
}

@media (max-width: 1400px) {
  .svg-maps__section > .home-row {
    width: 100%;
    max-width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 1279px) {
  .svg-maps__section #map-left {
    width: 40% !important;
  }
  .svg-maps__section #map-right {
    width: 60% !important;
    display: flex !important;
  }
}

@media (max-width: 830px) {
  .svg-maps__section #map-left {
    width: 100% !important;
  }
  .svg-maps__section #map-right {
    display: none !important;
  }
}
/* @end SVG map on home page height fixes */













/* Post images grey background color */
.wp-caption,
.post-main-content .wp-caption {
  background-color: #fff;
  border-color: transparent;
  padding: 0;
  margin-bottom: 0;
}

.wp-caption .wp-caption-text,
.post-main-content .wp-caption .wp-caption-text {
  font-size: 14px !important;
  text-align: left !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  color: #516c86 !important;
}
.wp-caption .wp-caption-text a {
  font-size: 14px !important;
}
/* @End Post images grey background color */





/* TASK #6 taiga.userproduct.design/project/swarm-chai/us/6?kanban-status=31 */

#section-careers .career-4-col .et_pb_column {
  margin-bottom: 70px;
}
#section-careers .career-4-col .et_pb_column .career-box,
#section-careers .career-4-col .et_pb_column .et_pb_module,
#section-careers .career-4-col .et_pb_column .career-content,
#section-careers .career-4-col .et_pb_column .et_pb_code_inner {
  height: 100%;
}
#section-careers .career-4-col .et_pb_column .career-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}
#section-careers .career-4-col .et_pb_column .career-content > a {
  margin-top: auto;
}
@media (max-width: 980px) {
  .career-content p {
    font-size: 16px;
  }
}

@media (max-width: 500px) {
  body.page-id-208 .slick-track {
    display: flex;
    flex-direction: row;
    align-items: stretch;
  }
  body.page-id-208 .slick-track .slick-slide {
    height: auto !important;
  }
  body.page-id-208 .post-item .post-content {
    height: 300px !important;
  }
  body.page-id-208 .post-item .subtitle {
    font-size: 14px;
  }

}


body.page-id-4701 .recent_posts .subtitle,
body.page-id-4701 .recent_posts_mobile .subtitle {
  display: none;
}

.search-result-posts {
  padding-bottom: 8%;
}
.search-result-posts .result-pagination {
  padding-top: 0;
}

/* FEATURED RESOURCE MODULE (SHORTCODES FOR HOMEPAGE FEB 2024) */
.shortcode-featured-resource {
  display: flex;
}

.shortcode-featured-resource-content {
  flex: 1;
  min-height: 450px;
  height: 520px;
  background-color: #117996;
  overflow: hidden;
  margin-right: 14px;
  transition: background-color 300ms ease 0ms;
}

.shortcode-featured-resource-link:focus, .shortcode-featured-resource-link:focus-visible  {
  outline: 3px solid #fff !important;
  outline-offset: -9px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.shortcode-featured-resource-content:hover {
  background-color: #0c5c72;
}

.shortcode-featured-resource-content:last-child {
  margin-right: 0;
} 

.shortcode-featured-resource-image {
  overflow: hidden;
  height: 60%;
}

.shortcode-featured-resource-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.shortcode-featured-resource-title {
  padding: 28px;
  height: 40%;
}

.shortcode-featured-resource-title h3 {
  font-family: LeMondeSansStd, "Open Sans", sans-serif;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.42px;
  line-height: 1.3;
}

.shortcode-featured-resource-category {
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.1rem;
  color: white;
  margin-bottom: 6px;
}

.shortcode-featured-resource-slider .shortcode-featured-resource-slider-arrow {
  -webkit-appearance: none;
  -moz-appearance:    none;
  appearance:         none;
  position: absolute;
  top: 50%;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  border-color: #fff;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10;
  transition: background-color 300ms ease 0ms;
}

.shortcode-featured-resource-slider .shortcode-featured-resource-slider-arrow:focus, 
.shortcode-featured-resource-slider .shortcode-featured-resource-slider-arrow:hover {
  outline: 3px solid #1282a2;
  outline-offset: 1px;
}

.shortcode-featured-resource-slider .shortcode-featured-resource-slider-prev {
  right: -40px;
}

.shortcode-featured-resource-slider .shortcode-featured-resource-slider-next {
  left: -55px;
}

.shortcode-featured-resource-slider .slick-dots {
  position: absolute;
  padding: 0 14px 0 0;
  bottom: -50px;
}

.shortcode-featured-resource-slider .slick-dots {
  > li {
      display: inline-block;
  }
  > li:only-child {
      display: none;
  }
}

/* LATEST UPDATES MODULE */
.shortcode-latest {
	display: grid;
  grid-template-columns: 60fr 40fr;
  gap: 28px;
}

@media screen and (max-width: 800px) {
  .shortcode-latest {
    grid-template-columns: 1fr;
    gap: 0px;
  }
}

.shortcode-latest-content {
  display: flex;
  flex-direction: column;
  padding: 0 !important;
  border: 0 !important;
}

.shortcode-latest-image {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 96%;
}

.shortcode-latest-image img {
  max-width: 100%;
  width: 100%;
  height: 96%;
  display: none;
}

@media screen and (max-width: 800px) {
  .shortcode-latest-image {
    background-image: none !important;
  }

  .shortcode-latest-image img {
    display: block;
  }
}

.shortcode-latest-posts {
  list-style: none !important;
  padding: 0 !important;
  margin: -7px 0 0 0 !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
  line-height: 26px;
}
@media(max-width: 960px) {
  .shortcode-latest {
    flex-direction: column;
  }
}
.shortcode-latest-posts li:last-child {
  padding: 22px 0 20px 0;
}

.shortcode-latest-posts li {
  border-top: 1px solid #c8c8c8;
  list-style: none;
  padding: 22px 0 14px 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.shortcode-latest-posts:first-of-type > li:first-child {
  font-weight: 700;
  font-size: 22px;
  padding-top: 0;
  border: 0 !important;
}

.shortcode-latest-content a {
  font-family: "LeMondeSansStd", "Open Sans", sans-serif;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
}

.shortcode-latest-content a:hover {
  text-decoration: underline;
}

.shortcode-latest-category {
  font-weight: 500;
  font-size: 18px;
  color: #117996;
  text-transform: capitalize;
  margin-bottom: 4px;
  letter-spacing: 0.1rem;
}
