/*
Theme Name: Astra Child
Template: astra
Version: 1.0.0
*/

@import url("../astra/style.css"); /* не обязателен, Astra сама подключит */
.single-post .size-large,
.single-post .size-full {
  max-width: 880px !important;
  height: auto !important;
}

.no-visible {
  display: none;
}


/* === Header === */
.site-header.header-main-layout-1 {
  position: sticky;
  top: 0;
  z-index: 9999;
  background-color: #fff;
  border-bottom: 2px solid transparent;
  transition: border-bottom 0.3s ease, box-shadow 0.3s ease;
}
.footer-logo {
  max-width: 256px;
}
.socset {
  margin-top: 0!important;
}
.site-footer-above-section-2.site-footer-section.site-footer-section-2 {
  margin-top: -28px!important;
}
[data-section="section-fb-social-icons-1"] .footer-social-inner-wrap {
  text-align: left;
}
.site-header.header-main-layout-1 {
  border-bottom: 5px solid #5e3ff2; /* линия при скролле */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); /* легкая тень */
}

.archive-news-wrapper {
  padding-top: 15px;
}
/* === Footer === */
.site-footer {
  border-top: 2px solid #5e3ff2; /* линия при скролле */
}
/* Кнопки */
.foter-btn, .form-submit-button {
  background-color: #5E3FF2;
  color: #fff;
  border-radius: 20px;
}
.foter-btn:hover, .form-submit-button:hover {
	background-color: #DAE53F;
}
/*Погода*/
.izde-weather {
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 8px;
  max-width: 400px;
}
.izde-weather h3 {
  margin-top: 15px;
  font-size: 1.2em;
  color: #333;
}
.izde-weather div {
  background: #f9f9f9;
  margin-bottom: 10px;
  padding: 8px;
  border-radius: 4px;
}
a {
  color: #000;
}
a:hover {
  color: #5E3FF2;
}

/* === Глобальные блоки и элементы === */
#ast-scroll-top {
  background-color: #5e3ff2!important;
}
.d-none-desktop {
  display: none;
}
.grey-title {
  text-align: center;
  padding: 30px 0;
  color: #CDCDCD;
  font-weight: 700;
  text-transform: uppercase;
}
.lang-item {
  list-style: none;
  color: #000;
}
.lang-item a {
  color: #000;
}
.lang-item a:hover {
  color: #5e3ff2;
}



/*Блок погоды*/
.weather {
	margin: 15px 0;
}
.weather-tab-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-weight: normal;
    font-size: 16px;
    padding: 5px 10px;
    color: #000;
    transition: font-size 0.3s, font-weight 0.3s;
}

.weather-tab-btn:hover {
    color: #0073aa; /* цвет при наведении */
}

.weather-tab-btn.active {
    font-weight: bold;
    font-size: 18px;
    color: #000;
}
/*Блок погоды*/

/*прилипашка*/




/*прилипашка*/


/* === Блок Breaking News === */
.breaking-news {
  background: #5E3FF2;
  width: 100%;
  height: 60px;
  color: #fff;
  padding: 0 10px;
  font-weight: bold;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.breaking-news-ticker {
  display: flex;
  white-space: nowrap;
  will-change: transform;
}

.breaking-news-ticker.scrolling {
  animation: scroll-left var(--ticker-duration, 30s) linear infinite;
}

.breaking-news-ticker:hover {
  animation-play-state: paused !important;
}

.ticker-content {
  display: inline-flex;
}

.breaking-news-ticker a {
  color: #DAE53F;
  text-decoration: none;
  margin-right: 30px;
  font-size: 16px;
  white-space: nowrap;
}

.breaking-news-ticker a:hover {
  text-decoration: underline;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
/* === Блок Breaking News === */



/* === Layout и структура === */
.ast-container {
  flex-direction: column;
  align-items: center;
}
.content-wrapper-top {
  background-color: #fff;
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  padding: 15px 100px;
  gap: 60px;
}
.content-wrapper-bottom {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 15px 100px;
}
.title-news-bottom {
  display: flex;
  width:100%;
  box-sizing: border-box;
  
  padding: 0 100px;
}
.title-news-bottom-video {
display: flex;
    width: 100%;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
}
.main-wrapper, .main-wrapper-sigle, .main-wrapper-category {
  display: flex;
  flex-direction: column;
  padding-top: 15px;
  flex: 1 1 auto;
  max-width: 880px;
 
}



/* === Sidebar === */
.sidebar-title {
  position: relative;
  width: 100%;
  text-align: left;
}
.sidebar-title-video {
  position: relative;
  width: 55%;
  text-align: left;
}
.sidebar-title::after, .sidebar-title-video:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: #5E3FF2;
}
.sidebar-title span, .sidebar-title a, .sidebar-title-video a {
  background-color: #5E3FF2;
  padding: 6px 8px;
  font-family: "Mulish", sans-serif;
  color: #DAE53F;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  display: inline-block;
  font-size: 12px;
}
/*Главная новость*/
.card-article-large {
  margin-top: 15px;
  padding: 25px 15px;
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
  max-width: 1018px;
  height: 477px;
  justify-content: space-between;
  position: relative; /* для наложения градиента */
  z-index: 0;
  color: #fff; /* обычный цвет текста */
  transition: color 0.3s ease, background-image 0.3s ease; /* плавный переход цвета и фона */
  cursor: pointer; /* чтобы показать, что элемент кликабельный */

  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  overflow: hidden;
}
.single-post .wp-block-image.size-full.large, .single-post .wp-block-image.size-full.hover-image {
    display: none;
}

.card-article-large::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0) 66.66%);
  z-index: 1;
  transition: opacity 0.3s ease;
  opacity: 1;
}

.card-article-large.no-overlay::before {
  display: none;
  opacity: 0;
}


.card-article-large:hover {
  color: #5E3FF2; /* цвет текста при наведении */
}

.card-article-large-title {
	font-size: 35px;
	line-height: 38px;
	font-weight: bolder;
  width: 50%;
  z-index: 2;
  position: relative;
}

.slag-data {
  display: flex;
	font-weight: bold;
  flex-direction: row;
	font-size: 20px;
  justify-content: space-between;
  position: relative;
  z-index: 2; /* выше, чем градиент ::before, но ниже, чем заголовок */
}
/*halftone-container*/
.halftone-container,
.halftone-container-small {
  position: relative;
  background-size: cover;
  background-position: center center;
  min-height: 300px; /* или высоту подгони под свою верстку */
  overflow: hidden;
}

.canvas-wrapper,
.canvas-wrapper-small {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  z-index: 2;
}
.canvas-wrapper canvas {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.card-article-small-5 .image-small {
  position: relative;
}
/*последние новости левый сайдбар*/
.latest-news {
  height: 100%;
  overflow-y: auto;
  padding-top: 15px;
  max-width: 300px;
  padding-right: 10px;
}

/*Последние новости*/
.left-sidebar-wrapper {
	max-width: 280px;
}
.date-separator {
	list-style: none;
	padding: 0;
	margin: 20px 0 10px 0;
	font-weight: bolder;
	color: black;
}
.news-date, .news-list, .news-item  {
	list-style: none;
	padding: 0;
	margin: 0;
	
}
.page-id-703 .entry-content > .wp-block-columns {
  padding: 0;
}

#news-list li 
 {
  line-height: 23px;
}
ol, ul {
	padding: 0;
	margin: 0;
}
.news-meta {
  margin-top: 15px;
  margin-bottom: 5px;
}
.news-time, div.news-meta a.news-category, .news-category {
	font-size: 16px!important;
	color: #D9D9D9;
	font-weight: bolder;
	
}
.news-item {
	padding-top: 20px;
}
div.news-meta a.news-category:hover, .news-title a:hover, .news-pick-title {
	color: #5e3ff2;
}
.news-title a, .news-pick-title {
	color: #000;
	
}
.news-item .news-title a, .news-pick-title {
    display: block;
    line-height: 23px !important;
}


.wp-block-list {
	margin: 0 0 1.5em 3em;
}


/*Маленькие карточки*/
.small-card-wrapper {
	display:flex;
	flex-direction: column;
	max-width: 1018px;
	 height: 338px;
	
}

 .small-card-news {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
  height: 310px;
}
 .small-card-news-article {
  display: flex;
  flex-direction: row;
  gap: 20px;
  height: 310px;
}
/*.card-article-small {
  flex: 1 1 300px;  минимальная ширина карточки 
  max-width: 100%;
}*/

.card-article-small {
  flex: 1 1 0;
  box-sizing: border-box;
}
.card-article-small {
	display: flex;
	flex-direction: column;
	justify-content: space-between; /* Распределяет верх и низ */
	height: 338px;
	padding: 20px; /* Можно задать отступы, если нужно */
	background-color: #ECECEC;
	color: #000;
}
.title-small {
	font-size: 20px;
	line-height: 23px;
	font-weight: bolder;
}
.card-article-small:hover, .card-article-small-5:hover {
	background-color: #dae53f;
	color: #5e3ff2;
}
.category-data {
	display: flex;
	justify-content: space-between;
}

.citation__hr {
  margin: 20px 4px;
  height: 1px;
  background: #000;
  position: relative;
}

.citation__hr::before {
  content: "";
  position: absolute;
  left: 43px;
  top: 0;
  border-left: 13px solid #000;
  border-bottom: 12px solid transparent;
}

.citation__hr::after {
  content: "";
  position: absolute;
  left: 44px;
  top: -2px;
  border-left: 13px solid #fff;
  border-bottom: 12px solid transparent;
}
.small-card-wrapper-5 {
  display: flex;
  flex-direction: row;
  
  gap: 20px;
  height: 450px;
}
.card-article-small-5 {
	display: flex;
	flex-direction: column;
	justify-content: space-between; /* Распределяет верх и низ */
	height: 450px;
	padding: 20px; /* Можно задать отступы, если нужно */
	background-color: #ECECEC;
	color: #000;
	
}
.card-article-small-wrapper {
  width: calc((100% - 60px) / 5);
  display: flex;
	flex-direction: column;
	gap: 10px;
	height: 450px;
}
.title-category-data {
	display:flex;
	flex-direction: column;
	justify-content: space-between;
	height: 100%	
}
.image-small {
  margin-bottom: 5px;
}
.video-flex {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 20px;
	margin-top: 40px;
}




/*Карусель мнений*/
.opinion-carousel {
    position: relative;
    overflow: hidden;
}
.opinion-wrapper {
    position: absolute;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s ease-in-out;
}
.opinion-wrapper.active {
    position: relative;
    opacity: 1;
    transform: translateX(0);
    transition: all 0.5s ease-in-out;
}

.opinion-wrapper .opinion-text  {
	font-size: 20px;
	color: #000;
	font-style: italic;	
	line-height: 20px
}
.opinion-wrapper {
	margin: 15px 0;
	padding: 15px;
}
.opinion-wrapper .opinion-text:hover {
	color: #5e3ff2;
}
.author-name {
	font-weight: bolder;
}
.name-biography, .author-name {
	display: flex;
	color: #000;
}
.author-name {
    display: flex;
    align-items: center; /* выравнивание по вертикали */
    gap: 12px; /* пространство между фото и биографией */
}
.biography-opinion{
	font-size: 12px;
}
.name-biography {
	flex-direction: column;
}
.card-article-small-mobile.mobile-only {
	display: none;
}
.author-img {
    background-size: cover;
  background-position: center;
  clip-path: circle(50%);
    border: 1px solid #5e3ff2;
    flex-shrink: 0; /* не сжимать даже при нехватке места */
}

.card-article-large-mobile.mobile-only {
	display: none;
}
.banner {
	width: 100%;
	background-color: #5E3FF2;
	margin-top: 15px;
	height: 325px;
}
.editor-news-pick ul {
	margin-top: 15px
}
.editor-news-pick ul li {
	list-style: none;	
	padding-bottom: 15px;
	
}

.left-sidebar-wrapper .editor-news-pick ul li a {
  display: block;
	color: #000!important;
	line-height: 20px!important;
	
}
.editor-news-pick ul li a:hover {
	color: #5e3ff2;
	
}
.editor-news-pick .news-separator {
    height: 1px;
    background-color: #ccc;
}
.title-category-data {
	display:flex;
	flex-direction: column;
	justify-content: space-between;
	height: 1640px;	
}
.video-news-section.container, .content-wrapper-video-menu {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}
.large-video .wp-block-embed {
	max-width: 100%;
	transform-origin: top;
}

.large-video .wp-block-embed iframe {
	width: 100%;
	margin: 20px 0;
	overflow: hidden; 
	position: absolute;
}

.video-grid {
    display: flex;
    flex: 1;
    gap: 20px;
    
	flex-wrap: nowrap;
    justify-content: space-between;
}
.video-card, .video-title a {
	/*max-width: 320px;*/
	flex: 1;
}

.category-videos {
	display: flex;
	background-color: #5E3FF2;
	justify-content: center;
	margin-bottom: 20px;
	flex-wrap: wrap;
	width: 100%;
	height: 60px;
	align-items: center;
}
.category-menu a {
	font-weight: bolder;
}
.category-videos ul {
	display: flex;
	gap: 40px;
	margin: 0;
	padding: 0;
}

.category-videos ul li {
	list-style: none;
}

.category-videos ul li a {
	color: #DAE53F;
	text-decoration: none;
	transition: color 0.3s ease;
}

.category-videos ul li a:hover {
	color: #fff;
}
.banner{
  display: flex;
  justify-content: center;
  align-items: center;
  color: #DAE53F;
  font-size: 30px;
}
/* Burger styles */
.burger-toggle {
	display: none;
	flex-direction: column;
	justify-content: space-between;
	width: 30px;
	height: 21px;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0;
	margin: 10px;
}

.burger-toggle span {
	display: block;
	height: 3px;
	background: #DAE53F;
	border-radius: 2px;
	transition: all 0.3s ease;
}

.category-menu {
	display: flex;
}
.video-card .thumb img {
  height: auto;
  display: block;
  object-fit: cover; /* если нужно обрезание/кадрирование */
  
}
.video-card .thumb {
  /*height: 180px;*/
  max-width: 375px;
  overflow: hidden;
}
.lang-switcher {
  list-style: none;
}
.lang-switcher li a {
  font-size: 10px;
}
.video-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mobile-video{
  display: none;
}
.main-wrapper-category{
    min-width: 885px;
  }
@media (max-width: 1367px) {
  .content-wrapper-top, .content-wrapper-bottom, .title-news-bottom {
    padding: 10px 15px;
    
  }
  .single-post .size-large,
.single-post .size-full, .main-wrapper-sigle {
  max-width: 700px !important;
  height: auto !important;
}
  .content-wrapper-top {
    gap: 20px;
  }
  .title-small {
    font-size: 20px;
    line-height: 23px;
  }
  .main-wrapper-category{
    min-width: 735px;
  }
  .left-sidebar-wrapper, .latest-news-wrapper {
    display: none;
  }
}

@media (max-width: 768px) {
	.category-videos {
		flex-direction: column;
		align-items: flex-start;
	}
	.mobile-video{
  display: block;
}
.main-wrapper-category{
    min-width: 885px;
    padding-top: 0;
  }
.card-article-large-mobile.mobile-only {
	display: block;
	
}
.category-title {
  margin-bottom: 5px;
}
.video-grid{
  display: none;
	}
.category-videos::after {
	content: "Смотреть категории";
	display: block;
	position: absolute;
	top: 12px;
	left: 60px;
	background-color: #5E3FF2;
	color: #DAE53F;
	font-size: 15px;
	font-weight: 600;
	padding: 2px 8px;
	border-radius: 4px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}
	.video-news-section.container {
		display: none!important;
	}

.category-videos {
	position: relative; /* добавим для позиционирования ::after */
	display: flex;
	background-color: #5E3FF2;
	justify-content: center;
	
	padding-top: 10px; /* пространство под заголовок */
}

	.burger-toggle {
		display: flex;
	}
.category-menu.open {
  position: relative;
  top: 190px;
  background-color: #5E3FF2;
  padding-left: 10px;
}
	.category-menu {
		display: none;
		width: 100%;
	}

	.category-menu.open {
		display: block;
	}

	.category-videos ul {
		flex-direction: column;
		gap: 20px;
		margin: 10px 0;
	}
	.video-grid {
		padding-left: 10px;
	}
}
 /* Подменю */
/* Общие стили подменю */
.main-header-menu .sub-menu,
#ast-hf-mobile-menu .sub-menu {
    background-color: #5e3ff2;
}

/* Стили ссылок в подменю */
.main-header-menu .sub-menu li a,
#ast-hf-mobile-menu .sub-menu li a {
    color: #dae53f !important;
    font-weight: 400 !important;
}


.image-small {
  width: 100%;
  height: 200px; /* фиксированная высота */
  background-size: cover;
  background-position: center;
}
.card-article-small {
  flex: 1 1 calc(33.333% - 20px); /* 3 карточки в ряд с отступами */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%; /* чтобы занимали одинаковую высоту */
  padding: 20px;
  background-color: #ECECEC;
  color: #000;
  box-sizing: border-box;
}
.image-small {
    width: 100%;          /* или 400px, если нужно строго */
    height: 200px;        /* или 325px, если тебе нужно как у карточки */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0; /* Чтобы не сжимался в flex */
}

@media (max-width: 1366px) {
  /* Твой мобильный стиль здесь */
	.video-grid {
		justify-content: center;
	}
	.video-title a {
    max-width: 250px;
}
	.breaking-news, .left-sidebar-wrapper,  .latest-news, .small-card-wrapper, .grey-title {
		display: none;
	}
	.main-wrapper-category{
    min-width: 100%;
  }
	.data-large-article-mobile {
		font-size: 20px;
    color: #D9D9D9;
    font-weight: bolder;
	}

.card-article-large-mobile.mobile-only {
	display: block;
	
}
	.large-img-mobile a img {
		width: 100%;
		height: auto;
	}
	.card-article-large, .small-card-wrapper-5, .latest-news-wrapper {
		display: none;
	}
	.card-article-large-title-mobile a {
		font-size: 25px;
		line-height: 25px;
		color: #000;
		font-weight: bolder;
	}
	.card-article-large-category-mobile a {
		font-size: 20px;
    color: #000;
    font-weight: bolder;
	}
	.card-article-small-mobile.mobile-only {
	display:block;
		border-top: 1px solid #D9D9D9;
		margin-top: 10px
}
	.data-small-article-mobile {
		color: #D9D9D9;
    font-weight: bolder;
	}
	.card-small-large-title-mobile a {
		color: #000;
	}
	/* Сброс отступов у всего основного */
  body, html {
    padding: 0;
    margin: 0;
  }

	.content-wrapper-bottom, .main-wrapper {
		display: flex;
		flex-direction: column;
		
	}
	.content-wrapper-top, .content-wrapper-bottom, .title-news-bottom {
		padding: 20px
	}
	.small-card-news {
		flex-direction: column;
		padding: 0;
	}
  .site-content {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }
  footer {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }
	.d-none-desktop {
	display: block;
	} 
	.card-article-small {
		max-width: 100% !important;
	}
}

@media (max-width: 1366px) {
.video-grid {
		flex-wrap: wrap;
	}
}

/*новости предлож*/
.watch-also-wrapper {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #ddd;
}

.watch-also-title {
    font-size: 22px;
    margin-bottom: 25px;
}

/* Сетка не нужна, просто вертикальный список */
.watch-also-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.watch-also-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    text-decoration: none;
}

.watch-also-card a {
    display: flex;
    gap: 20px;
    text-decoration: none;
    color: inherit;
    flex: 1;
}

.watch-also-image {
    flex-shrink: 0;
    width: 160px;
    height: 100px;
    overflow: hidden;
    border-radius: 6px;
    background: #f5f5f5;
}

.watch-also-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.watch-also-heading {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    display: flex;
    align-items: center;
}

/* 📱 Мобильная версия: только заголовки */
@media (max-width: 768px) {
    .watch-also-card {
        display: block;
    }

    .watch-also-card a {
        display: block;
    }

    .watch-also-image {
        display: none;
    }

    .watch-also-heading {
        font-size: 18px;
        font-weight: 600;
        padding-left: 0;
    }
}

