/*!
Theme Name: heros
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: heros
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

heros is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

.footer__soclink svg {
  width: 40px;
  height: 40px;
}

body.hidden-header-footer header,
body.hidden-header-footer footer {
  display: none;
}

body.hidden-header-footer main {
  padding: 0;
}

.cncilexp__next-page,
.cncilexp__next-page .talkbout__btn-inner {
  background: var(--color-white-30);
}

.wpcf7 form .wpcf7-response-output {
  margin: 1em 0em 0em;
  border-radius: 20px;
}

.wpcf7 form.sent .wpcf7-response-output {
  display: none;
}

.btn-play {
  border: none;
}

/* feed card states/video ui */
.feed-card {
  --feed-video-progress: 0;
}

.feed-card_loading .feed-card__img,
.feed-card_playing .feed-card__img,
.feed-card_paused .feed-card__img {
  opacity: 0;
  visibility: hidden;
}

.feed-card_loading .feed-card__video_duration,
.feed-card_playing .feed-card__video_duration,
.feed-card_paused .feed-card__video_duration {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%);
}

.feed-card_loading .feed-card__loader {
  opacity: 1;
  visibility: visible;
}

.feed-card_loading .feed-card__play {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.feed-card_playing .feed-card__video,
.feed-card_playing .feed-card__progress-ring {
  opacity: 1;
  visibility: visible;
}

.feed-card_playing .feed-card__play {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.feed-card_paused .feed-card__video,
.feed-card_paused .feed-card__progress-ring,
.feed-card_paused .feed-card__play {
  opacity: 1;
  visibility: visible;
}

.feed-card_paused .feed-card__play {
  pointer-events: auto;
}

.feed-card__media {
  position: relative;
  width: 100%;
  height: auto;
  border-radius: 35px;
  overflow: hidden;
  display: flex;
  aspect-ratio: 9 / 16;
}

.feed-card__img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.feed-card__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  object-fit: cover;
  opacity: 0;
  visibility: hidden;
  z-index: 1;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
  /* pointer-events: none; */
}

.feed-card__video_duration {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    transform 0.25s ease;
  pointer-events: none;

  align-items: center;
  backdrop-filter: blur(4px);
  background: rgba(0, 0, 0, 0.4);
  border-radius: 30px;
  bottom: 0;
  color: var(--color-white);
  display: flex;
  font-size: 12px;
  font-weight: 400;
  height: 40px;
  justify-content: center;
  left: 50%;
  letter-spacing: -1%;
  line-height: 120%;
  padding-inline: 20px;
  position: absolute;
  transform: translateX(-50%);
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  z-index: 10;
}

.feed-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.feed-card__loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  z-index: 6;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
}

.feed-card__loader-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--color-white-40);
  border-top-color: var(--color-white-alt);
  animation: feed-card-spin 0.8s linear infinite;
}

.feed-card__progress-ring {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
  padding: 6px;
  background: conic-gradient(
    var(--color-blue) calc(var(--feed-video-progress) * 1turn),
    rgba(33, 89, 255, 0.22) 0
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.project-card_playing .project-card__top_header {
  opacity: 0;
  pointer-events: none;
}

header.header_hide {
  top: calc(-1 * var(--header-height));
}

.ep-mass .cncilexp-card__post {
  display: none;
}

.upload-field__limit_attention {
  color: var(--color-red);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}

.upload-page-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 20px;
  color: var(--color-blue);
  background: rgba(253, 253, 253, 0.86);
  backdrop-filter: blur(10px);
}

.upload-page-loader__inner {
  width: min(100%, 460px);
  padding: 36px;
  border-radius: 28px;
  text-align: center;
  background: var(--color-white);
  box-shadow: 0 24px 80px rgba(33, 89, 255, 0.16);
}

.upload-page-loader__spinner {
  width: 54px;
  height: 54px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 4px solid rgba(33, 89, 255, 0.18);
  border-top-color: var(--color-blue);
  animation: upload-page-loader-spin 0.8s linear infinite;
}

.upload-page-loader__title {
  margin-bottom: 8px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
}

.upload-page-loader__text {
  color: var(--color-gray-2);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
}

@keyframes upload-page-loader-spin {
  to {
    transform: rotate(360deg);
  }
}

.btn span {
  text-align: center;
}

.upload-file__icon.upload-file__icon_has-preview {
  position: relative;
  padding: 0;
  overflow: hidden;
}

.upload-file__icon img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}

@media (max-width: 744.98px) {
  .feed-card__img {
    flex: 1;
    height: 100%;
  }
  .swiper-feed_static .swiper-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2px;
    transform: none !important;
    transition: none;
  }
  .swiper-feed_static .swiper-slide {
    width: 100% !important;
    max-width: none !important;
    margin-right: 0 !important;
    height: auto;
  }
  .swiper-feed_static .feed-card {
    max-height: var(--full-height);
  }
  .feed-card__media {
    flex: 1;
    height: 100%;
    min-height: 0;
  }
  section.feed .container {
    margin-inline: calc(-1 * var(--container-padding-x)) !important;
  }
  .swiper-arrow-btn {
    display: none !important;
  }
}

/* feed mobile static mode (no swiper movement) */
/* 
@media (width <= 744.98px) {
html.feed-page_snap {
scroll-snap-type: y mandatory;
scroll-padding-top: var(--header-height);
}

.swiper-feed_static .swiper-slide {
scroll-snap-align: start;
scroll-snap-stop: always;
scroll-margin-top: var(--header-height);
}
} */

@keyframes feed-card-spin {
  to {
    transform: rotate(360deg);
  }
}

/* hover/tap behavior for play button */
@media (any-hover: hover) {
  .feed-card:hover:not(.feed-card_loading):not(.feed-card_playing)
    .feed-card__play {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

@media (any-hover: none) {
  .feed-card:active:not(.feed-card_loading):not(.feed-card_playing)
    .feed-card__play {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

.upload-field .iti.upload-phone-intl,
.upload-field .iti {
  width: 100%;
}

.upload-field .iti input.upload-field__control {
  width: 100% !important;
}

.upload-field .iti--allow-dropdown input.upload-field__control,
.upload-field .iti--separate-dial-code input.upload-field__control {
  padding-left: 118px !important;
}

.upload-field .iti__selected-country,
.upload-field .iti__selected-flag {
  min-width: 96px;
  border-radius: 16px;
  background: rgba(33, 89, 255, 0.06);
  transition: background 0.2s ease;
}

.iti__selected-country-primary {
  border-radius: 16px;
}

.upload-field .iti__selected-country:hover,
.upload-field .iti__selected-flag:hover {
  background: rgba(33, 89, 255, 0.1);
}

.upload-field .iti__selected-dial-code {
  color: var(--color-blue);
  font-weight: 500;
  font-size: 16px;
}

.upload-field .iti__arrow {
  border-top-color: var(--color-blue);
}

.upload-field .iti__dropdown-content,
.upload-field .iti__country-list {
  z-index: 10001;
  overflow-x: hidden;
  overflow-y: auto;
  border-radius: 0 0 16px 16px;
  background: var(--color-white-alt);
  box-shadow: 0 20px 60px rgba(33, 89, 255, 0.16);
}

.iti__country-check-svg path {
  color: var(--color-blue);
}

.upload-field .iti__search-input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(33, 89, 255, 0.12);
  border-radius: 0;
  color: var(--color-black);
  outline: 0;
}

.upload-field .iti__country {
  color: var(--color-black);
}

.upload-field .iti__country.iti__highlight,
.upload-field .iti__country:hover {
  background: rgba(33, 89, 255, 0.08);
}

@media (max-width: 1024.98px) {
  .upload-field .iti__selected-dial-code,
  .upload-field .iti__search-input,
  .iti__country-name {
    font-size: 14px;
  }
}

@media (max-width: 650.98px) {
  .upload-field .iti--allow-dropdown input.upload-field__control,
  .upload-field .iti--separate-dial-code input.upload-field__control {
    padding-left: 108px !important;
  }

  .upload-field .iti__selected-country,
  .upload-field .iti__selected-flag {
    min-width: 88px;
  }
}

.project-card_vk.project-card_playing .project-card__play {
  opacity: 0 !important;
}

.mobile-br {
  display: none;
}

@media (max-width: 1405.98px) {
  .mobile-br {
    display: inline-block;
  }
}

.orgpartn__container .orgpartn__box {
  flex-wrap: wrap;
  height: fit-content;
}
.orgpartn__box .org-card {
  height: var(--cards-height);
}

.hero__cards.hasnt_video {
  grid-template-columns: 100%;
}

.herofeed-card__img img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.swiper-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(102, 102, 102, 0) 0%,
    rgba(0, 0, 0, 0.25) 100%
  );
}
