/* Social Links */
.wp-block-social-links .wp-block-social-link > *::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  mask-image: url('../icons/social/linkedin.svg');
  background-color: var(--wp--preset--color--contrast);
  background-size: contain;
  background-repeat: no-repeat;
  transition: background-color .2s ease;
}

/* Social Icon Styles for Paragraphs */
.social-icon {
  position: relative;
  padding-left: 100px;
  margin-bottom: 10px;
}

.social-icon::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background-color: var(--wp--preset--color--contrast);
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}

.wp-block-social-links .wp-social-link-linkedin > *::before, .social-linkedin::before {
  mask-image: url('../icons/social/linkedin.svg');
}

.wp-block-social-links .wp-social-link-facebook > *::before, .social-facebook::before {
  mask-image: url('../icons/social/facebook.svg');
}

.wp-block-social-links .wp-social-link-instagram > *::before, .social-instagram::before {
  mask-image: url('../icons/social/instragram.svg');
}

.wp-block-social-links .wp-social-link-youtube > *::before, .social-youtube::before {
  mask-image: url('../icons/social/youtube.svg');
}

.wp-block-social-links .wp-social-link-tiktok > *::before, .social-tiktok::before {
  mask-image: url('../icons/social/tiktok.svg');
}

.wp-block-social-links .wp-social-link-threads > *::before, .social-threads::before {
  mask-image: url('../icons/social/threads.svg');
}

.wp-block-social-links .wp-social-link-telegram > *::before, .social-telegram::before {
  mask-image: url('../icons/social/telegram.svg');
}

.wp-block-social-links .wp-social-link svg {
  display: none !important;
}

/* Actions */
.wp-block-social-links .wp-block-social-link > *:hover::before {
  background-color: var(--wp--preset--color--primary);
}

/* Language Switcher */
.gender-lang-switcher {
  font-family: inherit;
  font-size: inherit;
  display: inline-block;
}

.gender-lang-switcher__link {
  padding: 0 6px;
  color: var(--active-link-color, #000);
  text-decoration: none;
  cursor: pointer;
  font-weight: 400;
  width: 50px;
  display: inline-block;
  /* TODO:  */
  height: 32px;
  text-align: center;
}

.gender-lang-switcher__link:hover {
  color: var(--link-color, #F05023);
  transition: color .2s ease;
}

.gender-lang-switcher__link.is-active {
  color: var(--link-color, #F05023);
  cursor: default;
  text-decoration: none;
}

body,
body.wp-admin :where(.editor-styles-wrapper) {
  color: var(--wp--preset--color--contrast);
}

.slider {
  animation: slide 20s linear infinite;
}

@keyframes slide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-200%); }
}

@media screen and (min-width: 768px) {
  .slider {
    animation: slide 30s linear infinite;
  }
}

@media screen and (min-width: 1024px) {
  .slider {
    animation: slide 40s linear infinite;
  }
}

/* header menu */
header .gender-xl-menu {
  min-height: 32px;
}

.pm-nav .wp-block-navigation__container{
  display:flex;
  flex-wrap:wrap;
  width:100%;
}

.pm-nav .wp-block-navigation-item > a {
  display:block;
  text-align:center;
  padding:12px 16px;
  text-decoration:none;
  color:#fff;
  transition:background-color .2s ease, background-image .2s ease;
}

.pm-nav .wp-block-navigation-item > a:hover {
  background:#f97316;
  background-image:none;
}

.pm-nav .wp-block-navigation-item.current-menu-item > a,
.pm-nav .wp-block-navigation-item.current-menu-ancestor > a,
.pm-nav .wp-block-navigation-item > a[aria-current="page"],
.pm-nav .wp-block-navigation-item.is-current > a {
  background-image:linear-gradient(to right,#ef4444,#f97316,#4f46e5);
  color:#fff;
}

/* TODO: should be moved to blocks/xx.css with new-article-section */
/* common */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

.main-button,
.main-button-link {
  padding: 0.75rem 2rem;
  border-radius: 30px;
  background-color: var(--wp--preset--color--secondary);
  color: var(--wp--preset--color--base);
  cursor: pointer;
  font-size: var(--wp--preset--font-size--large);
  line-height: 1.75rem;
  text-align: center;
  text-transform: uppercase;
  transition: background .3s ease-in-out;
}

.main-button:focus,
.main-button-link:focus {
  outline-color: var(--wp--preset--color--accent-4);
  outline-offset: 2px;
  outline-style: solid;
}

.main-button:hover,
.main-button-link:hover {
  background-color: var(--wp--preset--color--primary);
  border-color: transparent;
}

.main-button-link {
  display: block;
  text-decoration: none;
}

.link {
  text-decoration: none;
  transition: color .3s ease-in-out;
}

.link:hover {
  color: var(--wp--preset--color--primary);
  text-decoration: none;
}

.break-words {
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  white-space: normal;
}

.section-heading {
  font-size: 24px;
  line-height: 1.25;
  font-weight: 400;
  text-transform: uppercase;
}

.gradient-border-bottom {
  position: relative;
}

.gradient-border-bottom::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--wp--preset--color--primary), var(--wp--preset--color--secondary));
}

.arrow-list {
  display: grid;
  gap: 16px;
}

.arrow-list .list-item {
  padding: 4px 100px 4px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;

  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
}

.arrow-list .list-item .icon {
  transition: transform .2s ease-in-out;
}

.arrow-list .list-item:hover .icon {
  transform: rotate(-45deg);
}

.solid-border-bottom {
  position: relative;
}

.solid-border-bottom::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -16px;
  right: -16px;
  height: 2px;
}

.solid-border-bottom.color-white::after {
  background: var(--wp--preset--color--base);
}

.solid-border-bottom.color-black::after {
  background: var(--wp--preset--color--contrast);
}

.search {
  display: flex;
  align-items: stretch;
  border: 2px solid #000;
  border-radius: 100px;
  overflow: hidden;
}

.search input {
  flex: 1;
  padding: 8px 16px;
  border: none;
  font-size: 16px;
  line-height: 1;
}

.search button {
  background: none;
  border: none;
  font-size: 18px;
  padding: 0 14px;
  cursor: pointer;
}

.swiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

.swiper .swiper-controls .swiper-button {
  margin-top: unset;
  height: fit-content;
  position: initial;
  transition: transform .2s ease-in-out;
}

.swiper .swiper-controls .swiper-button::after {
  content: none;     /* kill default pseudo-element arrows */
}

.swiper .swiper-controls .swiper-button:hover {
  transform: scale(1.1);
}

.swiper .swiper-controls .swiper-pagination {
  width: max-content;
  display: flex;
  align-items: center;
  position: initial;
}

.swiper .swiper-controls .swiper-pagination-bullet {
  height: 8px;
  width: 8px;
  background-color: var(--wp--preset--color--contrast);
  opacity: 1;
}

@media (min-width: 768px) {
  .section-heading {
    font-size: 40px;
  }

  .arrow-list {
    grid-template-columns: 1fr 1fr;
    gap: 24px 16px;
  }

  .arrow-list .list-item {
    padding: 12px 0;
    font-size: 20px;
  }

  .solid-border-bottom::after {
    left: 0;
    right: 0;
  }

  .swiper-slide {
    padding: 0;
  }
}

@media (min-width: 1280px) {
  .section-heading {
    font-size: 64px;
  }

  .arrow-list {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .arrow-list .list-item {
    font-size: 24px;
  }

  .solid-border-bottom.xl-border-right::after {
    right: -144px;
  }

  .solid-border-bottom.xl-border-left::after {
    left: -144px;
  }

  .search input {
    padding: 8px 24px;
    font-size: 20px;
  }

  .swiper-controls .swiper-pagination {
    gap: 40px;
  }
}

/* new-article-section */
.new-article-section {
  margin: 32px auto;
}

.new-article-section address {
  font-style: normal;
}

.new-article-section .article-card-with-image h3 {
  font-size: 1.25rem;
  line-height: 1.25;
  font-weight: 900;
}

.new-article-section .article-card-with-image figure {
  background-color: var(--wp--preset--color--highlight);
}

.new-article-section .article-card h4 {
  font-size: 1rem;
  font-weight: 900;
}

.new-article-section .article-card .chip {
  background-clip: text;
  background: linear-gradient(to right, var(--wp--preset--color--primary), var(--wp--preset--color--secondary));
  color: transparent;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (min-width: 768px) {
  .new-article-section .main-button-link {
    display: none;
  }
}

@media (min-width: 1280px) {
  .new-article-section {
    margin: 48px auto;
  }
  .article-card-with-image h3 {
    font-size: 1.5rem;
  }
  .article-card h4 {
    font-size: 1.25rem;
  }
  .link-list-with-border .gradient-border-bottom::after {
    right: -144px;
  }
}

/* four-cards-section */
.four-cards-section {
  margin: 32px auto;
  background-color: var(--wp--preset--color--base);
}

.four-cards-section .card-title {
  font-size: 32px;
  line-height: 1.25;
  font-weight: 400;
}

@media (min-width: 1280px) {
  .four-cards-section {
    margin: 48px auto;
  }
}

@media (min-width: 1024px) {
  .four-cards-section .card-title {
    font-size: 28px;
  }
}

/* quote-section */
.quote-section {
  margin: 32px auto;
}

@media (min-width: 1280px) {
  .quote-section {
    margin: 48px auto;
  }
}

/* top-ten-section */
.top-ten-section {
  margin: 32px auto;
}

.top-ten-section figure {
  margin-bottom: 0;
  height: 135px;
  background-color: var(--wp--preset--color--primary);
}

.top-ten-section .gradient-number {
  flex: 0 0 auto;
  background-clip: text;
  background: linear-gradient(to right, var(--wp--preset--color--primary), var(--wp--preset--color--secondary));
  color: transparent;
  font-size: 40px;
  line-height: 1;
  font-weight: 400;
  text-transform: uppercase;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (min-width: 768px) {
  .top-ten-section figure {
    height: 241px;
  }
  .top-ten-section .gradient-border-bottom::after {
    right: -32px;
  }
}

@media (min-width: 1280px) {
  .top-ten-section {
    margin: 48px auto;
  }

  .top-ten-section figure {
    height: 369px;
  }

  .top-ten-section .gradient-border-bottom::after {
    right: -144px;
  }
}

/* values-section */
.values-section {
  margin: 32px auto;
  background-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--base);
}

@media (min-width: 768px) {
  .values-section {
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-end;
    justify-content: space-between;
    gap: 122px;
  }
}

@media (min-width: 1280px) {
  .values-section {
    margin: 48px auto;
  }
}
/* research-section */
.research-section {
  margin: 32px auto;
  position: relative;
}

.research-section .decoration {
  width: 100%;
  position: absolute;
  right: 0;
  left: 0;
  z-index: -1;
}

.research-section .decoration-top {
  top: 0;
}

.research-section .decoration-bottom {
  bottom: 0;
}

.research-section .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.research-section .research-dates {
  padding: 4px 0 10px;
  width: 173px;
  position: relative;
  font-size: 16px;
  line-height: 1;
  text-transform: uppercase;
}

.research-section .research-dates::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -16px;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--wp--preset--color--primary), var(--wp--preset--color--secondary));
}

.research-section .research-item .title {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
}

.research-section .research-item .footer-text {
  font-size: 12px;
}

@media (min-width: 768px) {
  .research-section .research-dates {
    width: max-content;
    font-size: 24px;
  }

  .research-section .research-dates::after {
    left: -32px;
  }

  .research-section .grid {
    grid-template-columns: 156px 1fr;
    align-items: start;
    gap: 104px;
  }
}

@media (min-width: 1280px) {
  .research-section {
    margin: 48px auto;
  }

  .research-section .research-dates {
    padding: 4px 0 14px;
    font-size: 32px;
  }

  .research-section .research-dates::after {
    height: 10px;
    left: -144px;
  }

  .research-section .grid {
    grid-template-columns: 200px 1fr;
  }

  .research-section .research-item .title {
    font-size: 24px;
  }

  .research-section .research-item .footer-text {
    font-size: 20px;
  }
}

/* community-section */
.community-section {
  margin: 32px auto;
  background-color: var(--wp--preset--color--secondary);
  color: var(--wp--preset--color--base);
}

.community-section .section-heading {
  position: relative;
}

.community-section .section-heading-decoration {
  position: absolute;
  right: 0;
  left: 0;
  top: 0;
}

.community-section .image-with-bubble {
  margin-bottom: 0;
  padding-top: 144px;
  width: fit-content;
  position: relative;
}

.community-section .speech-bubble {
  margin-bottom: 40px;
  padding: 16px 16px 16px 24px;
  min-height: 104px;
  width: 267px;
  position: absolute;
  top: 0;
  right: 0;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;

  background-color: var(--wp--preset--color--highlight);
  color: var(--wp--preset--color--contrast);
}

.community-section .speech-bubble .text {
  font-size: 16px;
  line-height: 1.2;
  text-transform: uppercase;
}

.community-section .speech-bubble-arrow {
  height: 40px;
  width: 40px;
  position: absolute;
  bottom: -39px;
  left: 48px;

  aspect-ratio: 1;
  background-color: var(--wp--preset--color--highlight);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}

@media (min-width: 768px) {
  .community-section .speech-bubble {
    margin-bottom: 56px;
    padding-left: 62px;
    min-height: 148px;
    width: 418px;
    right: -100%;
  }

  .community-section .speech-bubble .text {
    font-size: 24px;
  }

  .community-section .image-with-bubble {
    padding-top: 60px;
  }

  .community-section .speech-bubble-arrow {
    height: 56px;
    width: 160px;
    left: 16px;
    bottom: -55px;
    clip-path: polygon(100% 0, 21% 0, 0 100%);
  }
}

@media (min-width: 1280px) {
  .community-section .speech-bubble {
    margin-bottom: 92px;
    padding: 20px 20px 20px 98px;
    min-height: 236px;
    width: 660px;
    top: -12%;
  }

  .community-section .speech-bubble .text {
    font-size: 40px;
  }

  .community-section .speech-bubble-arrow {
    height: 92px;
    width: 272px;
    left: 24px;
    bottom: -91px;
    clip-path: polygon(100% 0, 28% 0, 0 100%);
  }
}

/* consulting-section */
.consulting-section {
  margin: 32px auto;
}

.consulting-section .image-with-bubble {
  margin-bottom: 0;
  padding: 84px 0 66px;
  width: fit-content;
  position: relative;
}

.consulting-section .speech-bubble {
  padding: 16px 16px 16px 24px;
  min-height: 104px;
  width: 267px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: absolute;
}

.consulting-section .speech-bubble.top {
  margin-bottom: 40px;
  top: 0;
  left: 0;

  background-color: var(--wp--preset--color--highlight);
  color: var(--wp--preset--color--contrast);
}

.consulting-section .speech-bubble.bottom {
  margin-top: 40px;
  bottom: 0;
  left: 0;

  background-color: var(--wp--preset--color--base);
  color: var(--wp--preset--color--contrast);
  border: 2px solid var(--wp--preset--color--contrast);
}

.consulting-section .speech-bubble .text {
  font-size: 16px;
  line-height: 1.2;
  text-transform: uppercase;
}

.consulting-section .speech-bubble-arrow {
  position: absolute;
}

.consulting-section .speech-bubble.top .speech-bubble-arrow {
  height: 40px;
  width: 100px;
  bottom: -39px;
  right: 12px;
  background-color: var(--wp--preset--color--highlight);
  clip-path: polygon(80% 0, 0 0, 100% 100%);
}

.consulting-section .speech-bubble.bottom .speech-bubble-arrow {
  height: 40px;
  width: 100px;
  top: -39px;
  right: 2px;
  background-color: var(--wp--preset--color--base);
  clip-path: polygon(100% 0, 0 100%, 80% 100%);
}

.consulting-section .speech-bubble.bottom .speech-bubble-arrow-border {
  height: 40px;
  width: 102px;
  position: absolute;
  top: -41px;
  right: 0;

  background-color: var(--wp--preset--color--contrast);
  clip-path: polygon(100% 0, 0 100%, 82% 100%);
}

@media (min-width: 768px) {
  .consulting-section .image-with-bubble {
    padding: 0 0 40px;
  }

  .consulting-section .speech-bubble {
    padding-left: 36px;
    min-height: 122px;
    width: 332px;
  }

  .consulting-section .speech-bubble .text {
    font-size: 20px;
  }

  .consulting-section .speech-bubble.top {
    top: 6%;
    left: -85%;
  }

  .consulting-section .speech-bubble.bottom {
    left: -82%;
  }
}

@media (min-width: 1280px) {
  .consulting-section {
    margin: 48px auto;
  }

  .consulting-section .image-with-bubble {
    padding-bottom: 100px;
  }

  .consulting-section .speech-bubble {
    padding: 20px 20px 20px 40px;
    min-height: 140px;
    width: 465px;
  }

  .consulting-section .speech-bubble.top {
    top: 4%;
    left: -440px;
  }

  .consulting-section .speech-bubble.bottom {
    left: unset;
    right: 0;
  }

  .consulting-section .speech-bubble .text {
    font-size: 24px;
  }

  .consulting-section .speech-bubble.top .speech-bubble-arrow {
    height: 72px;
    width: 160px;
    bottom: -71px;
    right: 12px;
  }

  .consulting-section .speech-bubble.bottom .speech-bubble-arrow {
    height: 68px;
    width: 160px;
    top: -67px;
    left: 4px;
    clip-path: polygon(0% 0, 20% 100%, 100% 100%);
  }

  .consulting-section .speech-bubble.bottom .speech-bubble-arrow-border {
    height: 70px;
    width: 162px;
    position: absolute;
    top: -72px;
    left: 0;
    clip-path: polygon(0% 0, 19% 100%, 100% 100%);
  }
}

/* fem-column-section */
.fem-column-section {
  margin: 32px auto;
}

.fem-column-section .card {
  padding: 8px 12px 0;
  max-width: 361px;
  height: 100%;

  background-color: var(--wp--preset--color--base);
  border: 2px solid var(--wp--preset--color--contrast);
}

.fem-column-section .card-title {
  padding: 24px;
  font-size: 24px;
}

.fem-column-section .swiper-slide {
  padding: 0 16px;
  height: unset;
}

.fem-column-section .swiper-controls .swiper-pagination-bullet-active {
  background-color: var(--wp--preset--color--secondary);
}

@media (min-width: 768px) {
  .fem-column-section .card {
    max-width: 331px;
    border-width: 3px;
  }

  .fem-column-section .card-title {
    font-size: 20px;
  }
}

@media (min-width: 1280px) {
  .fem-column-section {
    margin: 48px auto;
  }

  .fem-column-section .card {
    max-width: 365px;
  }
}

/* editor-choice-section */
.editor-choice-section {
  margin: 32px auto;
}

.editor-choice-section .section-heading {
  color: var(--wp--preset--color--base);
}

.editor-choice-section .section-heading .link:hover {
  color: var(--wp--preset--color--contrast);
}

.editor-choice-section .section-heading::after {
  content: "";
  height: 472px;

  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: -1;

  /* TODO: investigate */
  /* On home page give orange background for header */
  /* background-color: var(--wp--preset--color--primary); */
}

.editor-choice-section .article-card-with-image-tall {
  max-width: 344px;
  height: 100%;

  background-color: var(--wp--preset--color--base);
  border: 3px solid var(--wp--preset--color--base);
}

.editor-choice-section .article-card-with-image-tall figure {
  margin-bottom: 0;
}

.editor-choice-section .article-card-with-image-tall .title {
  font-size: 16px;
  font-weight: 900;
  text-align: center;
}

.editor-choice-section .article-card-with-image-tall .author {
  font-size: 12px;
  font-weight: 500;
  font-style: normal;
  letter-spacing: 3.6px;
  text-transform: uppercase;
  text-align: center;
}

.editor-choice-section .swiper-controls .swiper-pagination-bullet-active {
  background-color: var(--wp--preset--color--primary);
}

@media (min-width: 768px) {
  .editor-choice-section .section-heading::after {
    height: 416px;
  }

  .editor-choice-section .article-card-with-image-tall {
    max-width: 506px;
  }

  .editor-choice-section .article-card-with-image-tall .title {
    text-align: left;
  }

  .editor-choice-section .article-card-with-image-tall .author {
    text-align: left;
  }
}

@media (min-width: 1280px) {
  .editor-choice-section {
    margin: 48px auto;
  }

  .editor-choice-section .section-heading::after {
    height: 680px;
  }

  .editor-choice-section .article-card-with-image-tall {
    max-width: 756px;
  }

  .editor-choice-section .article-card-with-image-tall .title {
    font-size: 24px;
  }

  .editor-choice-section .article-card-with-image-tall .author {
    font-size: 16px;
  }
}

/* partners-section */
.partners-section {
  margin: 32px auto;
}

.partners-section .section-header {
  height: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: var(--wp--preset--color--highlight);
}

.partners-section .heading {
  font-size: 20px;
  line-height: 1.25;
  font-weight: 400;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .partners-section .section-header {
    height: 64px;
  }
}

@media (min-width: 1280px) {
  .partners-section {
    margin: 48px auto;
  }

  .partners-section .section-header {
    height: 108px;
  }

  .partners-section .heading {
    font-size: 40px;
  }
}

/* media-section */
.media-section {
  margin: 32px auto;
}

@media (min-width: 1280px) {
  .media-section {
    margin: 48px auto;
  }
}
