/*!
Theme Name: Tourcode
Author: школа aroken.ru
Version: 1.1.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: fast-vid
*/

.text-limit {
    display: -webkit-box!important; /* Устанавливает контейнер в режим блочной упаковки */
    -webkit-box-orient: vertical; /* Ориентация — вертикальная */
    overflow: hidden; /* Скрывает лишний текст */
    -webkit-line-clamp: 2; /* Ограничивает количество строк до 3 */
    text-overflow: ellipsis; /* Добавляет многоточие */
    line-height: 1.3em!important; /* Высота строки (настраивайте под ваш дизайн) */
    max-height: calc(1.3em * 2); /* Контролирует максимальную высоту */
}

.text-limit-list {
    display: -webkit-box!important; /* Устанавливает контейнер в режим блочной упаковки */
    -webkit-box-orient: vertical; /* Ориентация — вертикальная */
    overflow: hidden; /* Скрывает лишний текст */
    -webkit-line-clamp: 2; /* Ограничивает количество строк до 3 */
    text-overflow: ellipsis; /* Добавляет многоточие */
    line-height: 1.5em!important; /* Высота строки (настраивайте под ваш дизайн) */
    max-height: calc(1.5em * 2); /* Контролирует максимальную высоту */
}

.nav {
    list-style: none;
    padding: 0;
}

.nav .menu-item a {
    display: flex;
    align-items: center;
    transition: color .2s ease;
}

.nav .menu-item a:hover {
  color: var(--primary-color);
}

.main-nav .current-menu-item a {
    color: var(--primary-color);
    border-bottom: 1px solid var(--primary-color);
}

.current-page-ancestor a {
    color: var(--primary-color);
    border-bottom: 1px solid var(--primary-color);
}

.header-first__left .current-menu-item a {
    /* border-color: var(--primary-color); */
    color: var(--primary-color);
}

.header-first__left .current-menu-item a span {
    border-color: var(--primary-color);
}

.header-first__left .current-page-ancestor a {
    /* border-color: var(--primary-color); */
    color: var(--primary-color);
}

.header-first__left .current-page-ancestor a span {
    border-bottom: 1px solid var(--primary-color);
    border-color: var(--primary-color);
}

.blog-pagination__wrap {
    padding: 60px 0;
}

.blog-pagination {
    display: flex;
    align-content: center;
    justify-content: center;
    gap: .5rem;
    margin: 0 auto;
}

.blog-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    width: 28px;
    height: 28px;
    opacity: .5;
    border-radius: 50px;
}

.blog-pagination .page-numbers.current {
    opacity: 1;
    background-color: var(--bg-opacity-05);
}

.blog-pagination a.next, .blog-pagination a.prev {
    width: auto;
    height: auto;
    opacity: 1;
}

.slider-home {
    width: 100%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.slider-home .swiper-pagination-bullet {
  background: #fff;
  opacity: .3;
}

.slider-home .swiper-pagination-bullet-active {
  background: #fff;
  opacity: 1;
}

.home-slider__container {
    padding-top: 32px;
    padding-bottom: 100px;
    overflow: hidden;
}


.slider-tourizm__container {
    position: relative;
}

.section-slider .slider-tourizm {
    height: 580px;
    overflow: hidden;
}

.slider-tourizm__btns {
    position: relative;
    display: flex;
    align-items: center;
}

.section-slider__item {
    text-align: left;
}

.slider-tourizm .swiper-pagination {
    top: auto!important;
    bottom: 0;
    transform: translateX(-50%)!important;
    left: 50%!important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.articles__country {
    display: -ms-grid;
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 32px;
}

.articles-country{
    display: -ms-grid;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.bag-slider {
    positionL relative;
    overflow: hidden;
}

.bag-slider .swiper-slide {
    width: 290px;
}

.bag__container {
    position: relative;
    padding: 140px 0;
    overflow: hidden;
}

.bag-slider__bg {
    position: absolute;
    bottom: 37.8%;
    z-index: 0;
}

.bag-slider__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.bag-slider__img img {
    max-height: 100%;
    max-width: 100%;
    width: 100%;
}

.bag-slider__img {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 250px;
}

.bag-slider__title {
    font-family: var(--title-family), serif;
    font-weight: 600;
    text-align: center;
    margin-top: 50px;
    padding: 0 15px;
    color: var(--text-color);
    line-height: 1.2;
}


.home-preview {
    display: grid;
    grid-template-columns: 1fr 300px;
    grid-gap: 24px;
}

.home-preview__left {
    display: flex;
    flex-direction: column;
    gap: 24px;
    overflow-x: hidden;
}

.tourizm__container {
    background-color: #fafafa;
}




.ball__container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 96px 0;
    background: #2b2d7c;
}
.ball {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 600px;
    height: 600px;
    overflow: hidden;
    border-radius: 50%;
}

.ball-left {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ball-right {
    width: 50%;
}

.ball-left__title {
    font-family: var(--title-family), serif;
    font-weight: 700;
    font-size: 40px;
    line-height: 1.2;
    letter-spacing: .5px;
    text-align: center;
    color: var(--light-color);
    margin-bottom: 16px;
    position: relative;
    text-transform: uppercase;
}

.ball-right__video {
    width: 100%;
    height: 790px;
    position: relative;
}

.ball-right__video video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    margin-left: 0;
}
#randomPostButton {
    font-family: var(--title-family), serif;
    text-align: center;
    font-weight: 700;
    color: #2b2d7c;
    background-color: var(--light-color);
    border-radius: 50px;
    padding: 18px 24px;
    line-height: 1;
    border: none;
    cursor: pointer;
    transition: .5s;
}

#randomPostButton:hover {
    opacity: .8;
}

#selectedPost {
    display: none;
    font-family: var(--title-family), serif;
    color: #fff;
    font-size: 32px;
    text-align: center;
    font-weight: 700;
    margin-bottom: 20px;
}

.search__container {
    background-color: #fafafa;
}

.search-form {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 32px;
}

.search-form label {
    width: 100%;
}

.search-form input {
    font-family: var(--title-family), serif;
    width: 100%;
    padding: 15px 20px;
    line-height: 1;
    border-radius: var(--card-border);
    border: 2px solid #f2f2f3;
    outline: none;
}

.search-form button {
    font-family: var(--title-family), serif;
    text-align: center;
    color: #FFFFFF;
    font-weight: 700;
    background: var(--primary-color);
    border-radius: var(--card-border);
    padding: 11px 32px;
    line-height: 1;
    display: table;
    border: none;
    cursor: pointer;
    transition: .5s;
    outline: none;
}

.search-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.search-result {
    display: flex;
    gap: 16px;
}

.search-result__aside a {
    flex: 1; 
}

.search-result__aside a img {
    border-radius: var(--btn-border);
}

.search-result__content {
    flex: 1;
    width: 100%;
}

.search-result__img {
    width: 120px;
    height: 82px;
}
.search-result__title a {
    font-family: var(--title-family), serif;
    color: #151515;
    font-weight: 700;
}

.search-result__url a {
    line-height: 1.2;
    margin-bottom: 0;
    color: var(--primary-color);
}

.newsletter-popup {
    display: none; /* Скрываем по умолчанию */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
  }
  
  .newsletter-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    width: 50%;
    border-radius: var(--card-border);
  }
    
  .newsletter-content h3 {
    font-size: 28px;
    font-family: var(--title-family), serif;
    margin-bottom: 12px;
  }

  .newsletter-content p {
    margin-bottom: 24px;
  }

  .newsletter-content form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
  }

  .newsletter-content form input {
    padding: 16px 20px;
    border: none;
    outline: none;
    background-color: var(--bg-opacity-05);
    border-radius: var(--card-border);
  }

  .newsletter-content form button {
    padding: 16px 20px;
    border: none;
    outline: none;
    background-color: var(--primary-color);
    color: var(--light-color);
    border-radius: var(--card-border);
    cursor: pointer;
  }
  
  .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: 500;
    cursor: pointer;
  }

  .post-aside {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .banner {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    border-radius: var(--card-border);
    overflow: hidden;
  }

  .banner img {
    width: 100%;
    height: 100%;
  }

  .post-body {
    font-family: var(--title-family), serif;
  }

  .post-body a {
    color: #3097d1;
  }

  .post-picture {
    margin-bottom: 24px;
  }

  .post-img {
    padding-top: 64.25%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: var(--card-border);
  }

  .post-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
  }

  .post-excerpt {
    font-size: 18px;
    line-height: 1.8;
    font-style: italic;
    font-weight: 600;
    margin-bottom: 32px;
  }

  .post-author__wrap {
    display: flex;
    align-items: center;
    margin-top: 2rem;
    padding: 1rem 0;
    border-top: 1px solid #f2f2f3;
  }

  .post-author {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .post-author__img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    overflow: hidden;
    border-radius: 50%;
  }

  .post-author__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .ball__video {
    width: 100%;
    height: 116.5%;
    object-fit: cover;
    transition: opacity 0.5s ease; /* Добавляем плавный переход для прозрачности */
    opacity: 1;
  }

  .maps-link {
    font-family: var(--title-family), serif;
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .maps-link__item {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .maps-link__link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    transition: color .2s ease;
  }

  .maps-link__link:hover {
    color: var(--primary-color);
  }

  .maps-link__link:hover svg > path {
    stroke: var(--primary-color);
  }

  .maps-link__link svg {
    width: 28px;
    height: 28px;
    transition: color .2s ease;
  }

  .flying__container {
    padding-bottom: 0!important;
  }

  .flying__head {
    display: flex;
    align-items: center;
    gap: 8px;
  }

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

  .widget-link {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 2;
    display: grid;
    grid-template-columns: auto auto;
    grid-gap: 8px;
    align-items: center;
    z-index: 9;
  }

  .widget-link__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    overflow: hidden;
    border-radius: 50%;
    filter: drop-shadow(0px 4px 15px #54a5dd);
  }

  .widget-link__text {
    position: relative;
    text-align: center;
    min-width: 1em;
    max-width: 21em;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding: 5px 15px;
    border-radius: 10px;
    background: var(--light-color);
    color: var(--primary-color);
    box-shadow: 0 1.93465px 7.73859px rgba(0, 0, 0, 0.15);
    font-size: 14px;
    line-height: 21px;
    /* filter: drop-shadow(0px 4px 15px #54a5dd); */
  }

  .widget-link__text:before {
    content: "";
    position: absolute;
    left: auto;
    right: calc(-0.4em - 5px);
    transform: translate(-0.5em, -50%);
    border: 5px solid transparent;
    z-index: 1001;
    top: 50%;
    border-right-width: 0;
    border-left-color: rgba(242, 242, 242, 1);
  }

  .widget-link__video {
    width: 100%;
    height: 116%;
    object-fit: cover;
  }

  .category-menu img {
    font-size: 20px;
    margin-right: 8px!important;
  }


  
  .wp-block-image {
    margin-bottom: 32px;
  }

  .wp-block-image img {
    border-radius: var(--btn-border);
  }

  .wp-block-image .wp-element-caption {
    font-size: 14px;
    opacity: .5;
  }

  .wp-block-quote {
    margin: 32px 0;
    padding: 12px 0 12px 25px;
    border-left: 3px solid var(--primary-color);
  }

  .wp-block-quote p {
    margin: 0;
  }

  .post__publication {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 16px;
  }

  .post__view {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--title-family), serif;
    font-weight: 500;
    font-size: 14px;
    opacity: .5;
  }

  .post__view svg {
    width: 18px;
    height: 18px; 
  }

  .section__head-author {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

.share a:hover {
  transition: background-color 0.3s ease;
}

.share__whatsapp:hover {
  background-color: #0ca785;
}

.share__twitter:hover {
  background-color: #000;
}

.share__telegram:hover {
  background-color: #54a8d8;
}

.share > a:hover svg > path {
  fill: #fff;
}

.fluentform {
    background: #f2f2f2;
    padding: 32px;
    border-radius: var(--card-border);
}

.post-list {
  display: none;
}

.post-list.active {
  display: block;
}

.footer__logo.logo {
  justify-content: flex-start;
  margin-bottom: 16px;
}

.footer-about {
  display: block;
  margin-bottom: 16px;
  opacity: .7;
}

.banner__link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
}

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

.section-two.inspired__list {
  display: grid;
  gap: 16px;
}

.section-two .blog-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.section-two .blog-item__content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.section-two .blog__publ {
  margin-top: auto;
}


#confetti-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

/* styles.css */
.confetti {
  position: absolute;
  will-change: transform, opacity;
  opacity: 0; /* Начальная прозрачность */
  transform: rotate(0deg);
}

@keyframes fall {
  0% {
    opacity: 0; /* Невидимо */
    transform: translateY(0) rotate(0deg);
}
10% {
    opacity: 1; /* Плавное появление */
}
100% {
    opacity: 0; /* Исчезновение */
    transform: translateY(150vh) rotate(720deg);
}
}

.banner-header__container {
  background: #e8eefb;
}
.banner-header__container .banner__link {
  height: 200px;
  width: 100%;
}
.banner-header__container .banner__link img {
  height: 100%;
  object-fit: cover;
}

.banner-slider__container {
  width: 100%;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.banner__container {
  padding: 100px 0;
}

.banner__container a {
  background: #e8eefb;
}

.section-slider__more {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  margin-top: 24px;
  background: #e8eefb;
  font-size: 14px;
  border-radius: var(--card-border);
  color: var(--primary-color);
}

.wp-block-heading {
    margin-bottom: 12px;
}

.responsive-iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

.banner-wrapper .banner h2 {
	display: none;
}

.filter-nav {
   	margin: 20px 0;
}

.filter-news-nav {
	gap: 8px!important;
}

.filter-nav .menu-item a {
	padding: 8px 16px;
	color: var(--primary-color);
    border-radius: 10px;
    border: 2px solid #e8eefb;
	transition: background .2s ease;
}

.filter-nav .menu-item a:hover {
	background: #e8eefb;
}

.filter-nav .current-menu-item a {
	background: #e8eefb;
}

.touroperators-menu-link {
	display: flex;
	align-items: center;
	font-family: var(--title-family), serif;
    font-weight: 500;
    line-height: 24px;
	transition: color .2s ease;
	border-bottom: 1px solid transparent;
	margin-right: 4px;
}

.touroperators-menu-link img {
	display: inline-block;
    vertical-align: middle;
	width: 1em;
	font-size: 24px;
    margin-right: 8px !important;
}

.touroperators-menu-link:hover {
	color: var(--primary-color);
}