/*
Theme Name: RZDTV25
Theme URI: http://rzdtv.ru
Template: covernews
Author: ithelp
Author URI: http://ithelp@rzdtv.ru
Description: RZD TV Corp Theme
Version: 2.3.0.1774552254
*/

@font-face {
    font-family: 'RussianRail G Pro';
    src: local('RussianRail G Pro'), local('RussianRailGPro-Reg'),
        url('fonts/RussianRailGPro-Reg.woff2') format('woff2'),
        url('fonts/RussianRailGPro-Reg.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'RussianRail G Pro';
    src: local('RussianRail G Pro Bold'), local('RussianRailGPro-Bold'),
        url('fonts/RussianRailGPro-Bold.woff2') format('woff2'),
        url('fonts/RussianRailGPro-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'FSRAILWAY';
    src: local('FSRAILWAY Bold'), local('FSRAILWAYBold'),
        url('fonts/FSRAILWAYBold.woff2') format('woff2'),
        url('fonts/FSRAILWAYBold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}


body, button, input, select, optgroup, textarea {
    font-family: 'FSRAILWAYBold', sans-serif !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'RussianRail G Pro', sans-serif !important;
}

.bs-exclusive-now, .blockspare-posts-block-post-category a, .blockspare-posts-block-post-grid-byline, .wp-block-search__label, .main-navigation a, .font-family-1, .site-description, .trending-posts-line, .exclusive-posts, .widget-title, .em-widget-subtitle, .entry-meta .item-metadata, .grid-item-metadata .item-metadata, .grid-item-metadata span.item-metadata.posts-author, .grid-item-metadata span.aft-comment-count, .grid-item-metadata span.aft-view-count, .af-navcontrols .slide-count, .figure-categories .cat-links, .aft-product-list-title h2, span.trending-no, .nav-links a {
    font-family: 'RussianRail G Pro', sans-serif !important;
}
.wp-block-cover {
    min-height: 100vh !important;
}

.top-masthead, .site-info {
    background: #464a53 !important;
}

nav.main-navigation {
    background: #a71218 !important;
    text-align: left;
    text-transform: uppercase;
}

span.menu-description {
    display: none;
    position: absolute;
}

.tab tab-popular {
    display: none;
    position: absolute;
}

.main-navigation .menu ul ul {
    background: #d22c33 !important;
}

.main-navigation .menu ul ul a:hover {
    background: #a71218;
}

.main-navigation .menu ul ul a {
    border-top: none !important;  
}
@media only screen and (max-width: 991px) {
    .main-navigation .toggle-menu a {
        height: 100%;
        width: 45px;
        padding-left: 11px;
    }
} 

.main-navigation .menu ul li a {
    font-family: 'FSRAILWAYBold', sans-serif !important;
    font-size: 15px;
    line-height: 1.6;  
}

.main-navigation .navigation-container ul>li>a:after {
    display: none;
}

.main-navigation .menu ul>li>a, .main-navigation .menu ul.menu-desktop>li>a{
    padding-left: 15px;
}

.main-navigation  .navigation-container a:hover {
    background: #d22c33;
}

.top-navigation ul  a {
    padding-left: 10px !important;
}

.top-navigation ul  a:hover {
    background: #767d89;
}

.cart-search{
    height: 55px;
}

@media screen and (max-width: 992em) {
    .main-navigation .menu .menu-mobile li .sub-menu li a {
			    margin-left: 0px;
}

/*
.main-navigation .menu ul li .sub-menu li a  {
    color: #000;
    background: #fff;
    font-weight: 300;
}

.sub-menu .menu-item-has-children a .fa-angle-down:before {
    content: "\f105";
    color: #000;	
}

.main-navigation .menu ul li .sub-menu li a:hover  {
    color: #a71218;
    background: #f4f4f4;
}

@media (max-width: 968px) {
.main-navigation .menu ul li .sub-menu li a  {
    color: #fff;
    background: #d22c33;
    font-weight: 300;
}

.sub-menu .menu-item-has-children a .fa-angle-down:before {
    content: "\f105";
    color: #fff;	
}

.main-navigation .menu ul li .sub-menu li a:hover  {
    color: #fff;
    background: #a71218;
}
}*/

a {
    text-decoration: none !important;
}

a:visited {
    outline: 0;
    text-decoration: none;	
}

a:hover {
    color: #d22c33;
}
  
*:focus {
    outline: none !important;
}

.empl,
.empl:visited {
    color: #a71218;
    text-decoration: none;
    font-weight: 700;
}

#scroll-up, #scroll-up:hover, #scroll-up:focus {
    background-color: #0c3957;
    border-color: #0c3957;
    width: 51px;
    height: 51px;
}

#scroll-up .fa-angle-up {
    line-height: 1.8;
}

#content .page ul li {
    list-style: none;
}

/*mark {
    background: #d22c33;
    color: #fff;
}*/

/* Основной контейнер формы */
.advanced-search-form {
    width: 100%;
    background-color: #fff;
    padding: 20px;
    margin: 0 10px 20px 10px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);;
}

/* Строки формы */
.search-row {
    display: flex;
    margin-bottom: 10px;
}

.search-row:last-child {
    margin-bottom: 0;
}

/* Первая строка - поиск */
.search-row-main {
    flex-wrap: wrap;
}

.search-input, .search-category {
    box-sizing: border-box;
    appearance: none;
    flex: 1;
    height: 45px;
    padding: 0 15px;
    border: 1px solid #ccc;
    border-radius: 0 !important;
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-category {
    min-width: 140px;
    max-width: 30%;
    height: 45px;
    background-color: #fff;
    cursor: pointer;
}

.search-button {
    height: 45px;
    padding: 0 35px;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

/* Вторая строка - фильтры */
.search-row-filters {
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 150px;
}

.filter-label {
    font-size: 13px;
    font-weight: 500;
    color: #555;
    margin: 0;
}

/* Стили для select и date input */
.date-input,
.order-select {
    height: 45px;
    padding: 0 10px;
    border: 1px solid #ccc;
    border-radius: 0 !important;
    font-size: 14px;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}


/* Адаптивность */
@media (max-width: 768px) {
    .advanced-search-form {
        padding: 15px;
        margin: 0 5px 15px 5px;
    }
    
    .search-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-group {
        width: 100%;
        min-width: auto;
    }
    
    .search-category,
    .date-input,
    .order-select,
    .search-button {
        width: 100%;
				max-width:100%;
    }
    
    .search-button {
        white-space: normal;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .search-row-filters {
        gap: 10px;
    }
    
    .filter-group {
        min-width: 120px;
    }
}

::selection {
    background: #0c3957;
    color: #fff;
    text-shadow: none;
}

::-moz-selection {
    background: #0c3957;
    color: #fff;
    text-shadow: none;
}

/* стили для страницы программа передач */

/* Навигация по табам */
.program-tab  .tabs-nav {
    display: flex;
    flex-wrap: wrap;
 /* Перенос вкладок на новую строку */
    list-style: none;
    padding: 0;
    margin: 0  !important;
    border-bottom: 2px solid #a71218;
 /* Линия под вкладками */
}

.program-tab  .tab {
    padding: 12px 16px;
    cursor: pointer;
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-bottom: none;
    transition: all 0.3s ease;
    flex: 1 0 150px;
 /* Минимальная ширина 150 px, растягивание включено */
    text-align: center;
    box-sizing: border-box;
}

.program-tab  .tab:hover {
    background: #e9e9e9;
    color: #333;
}

.program-tab  .tab.active {
    background: white;
    color: #a71218;
    font-weight: bold;
    border-color: #ddd;
    border-bottom: 2px solid white;
 /* Создаёт эффект «выбранной» вкладки */
    margin-bottom: -2px;
 /* Компенсирует отступ, чтобы контент прилегал вплотную */
}

/* Контент табов */
.program-tab  .tabs-content {
    border: 1px solid #ddd;
    border-top: none;
 /* Убираем верхнюю границу — она дублируется с линией навигации */
    padding: 20px;
    background: white;
}

.program-tab  .tab-pane {
    display: none;
 /* Скрываем все блоки контента */
}

.program-tab  .tab-pane.active {
    display: block;
 /* Показываем активный контент */
}

/* Стили для времени */
.program-tab  .tab-pane time {
    color: #39b8db;
    font-weight: bold;
    margin-left: 10px;
}

/* Стили для строки программы */
.program-tab ul li {
    padding: 10px;
	/*	border-bottom: 2px solid #eee;*/
    transition: all 0.3s ease;
 /* Плавные переходы */
}

/* Стили при наведении курсора */
.program-tab ul li:hover {
    background: #0c3957;
    color: #fff;
}

.wp-block-latest-posts__post-excerpt, .wp-block-latest-posts__post-full-content {
    padding: 0.1em 1em 1em 1em;
}

.wp-block-latest-posts__post-title {
    padding: 0.1em 1em 1em 1em;
    font-family: 'RussianRail G Pro', sans-serif;
}

.aft-container-default .covernews_posts_slider_widget .data-widget-slide, .aft-container-default .full-plus-list .spotlight-post:first-of-type .data-bg-categorised, .aft-container-default .single-column-posts .data-bg-categorised, .aft-container-default .af-main-banner-featured-posts .data-bg-featured, .aft-container-default.default-content-layout .af-main-banner-latest-posts .data-bg-categorised, body.aft-container-default.full-width-content .covernews_double_col_categorised_posts .data-bg-categorised, body.aft-container-default.full-width-content .full-plus-list .spotlight-post:first-of-type .data-bg-categorised, .aft-container-default.full-width-content .archive-layout-list .data-bg-categorised, .aft-container-default.full-width-content .aft-grid-double-column.has-post-image .data-bg-categorised, .aft-container-default .em-reated-posts .data-bg-categorised, .aft-container-default.default-content-layout .posts-carousel .data-bg-featured, .aft-container-default .col-md-4.latest-posts-grid .data-bg-categorised, .aft-container-default .covernews_double_col_categorised_posts .data-bg-categorised, .aft-container-default .archive-layout-list .data-bg-categorised, .aft-container-default .aft-grid-double-column.has-post-image .data-bg-categorised, .aft-container-full-width .covernews_posts_slider_widget .data-widget-slide, .aft-container-full-width .full-plus-list .spotlight-post:first-of-type .data-bg-categorised, .aft-container-full-width .single-column-posts .data-bg-categorised, .aft-container-full-width.default-content-layout .af-main-banner-latest-posts .data-bg-categorised, .aft-container-full-width .af-main-banner-featured-posts .data-bg-featured, body.aft-container-full-width.full-width-content .covernews_double_col_categorised_posts .data-bg-categorised, body.aft-container-full-width.full-width-content .full-plus-list .spotlight-post:first-of-type .data-bg-categorised, .aft-container-full-width.full-width-content .archive-layout-list .data-bg-categorised, .aft-container-full-width.full-width-content .aft-grid-double-column.has-post-image .data-bg-categorised, .aft-container-full-width .em-reated-posts .data-bg-categorised, .aft-container-full-width.default-content-layout .posts-carousel .data-bg-featured, .aft-container-full-width .col-md-4.latest-posts-grid .data-bg-categorised, .aft-container-full-width .covernews_double_col_categorised_posts .data-bg-categorised, .aft-container-full-width .archive-layout-list .data-bg-categorised, .aft-container-full-width .aft-grid-double-column.has-post-image .data-bg-categorised, .aft-container-wide .covernews_posts_slider_widget .data-widget-slide, .aft-container-wide .full-plus-list .spotlight-post:first-of-type .data-bg-categorised, .aft-container-wide .single-column-posts .data-bg-categorised, .aft-container-wide.default-content-layout .af-main-banner-latest-posts .data-bg-categorised, .aft-container-wide .af-main-banner-featured-posts .data-bg-featured, body.aft-container-wide.full-width-content .covernews_double_col_categorised_posts .data-bg-categorised, body.aft-container-wide.full-width-content .full-plus-list .spotlight-post:first-of-type .data-bg-categorised, .aft-container-wide.full-width-content .archive-layout-list .data-bg-categorised, .aft-container-wide.full-width-content .aft-grid-double-column.has-post-image .data-bg-categorised, .aft-container-wide .em-reated-posts .data-bg-categorised, .aft-container-wide.default-content-layout .posts-carousel .data-bg-featured, .aft-container-wide .col-md-4.latest-posts-grid .data-bg-categorised, .aft-container-wide .covernews_double_col_categorised_posts .data-bg-categorised, .aft-container-wide .archive-layout-list .data-bg-categorised, .aft-container-wide .aft-grid-double-column.has-post-image .data-bg-categorised {
    aspect-ratio: 16 / 9  !important;
}
  
.slick-item .grid-item-metadata {
    display: none !important;
}

.slick-item  h3 {
    font-family: 'RussianRail G Pro', sans-serif !important;
}

.slick-item .article-title {
    display: table;
    padding-bottom: 15px;
    font-size: 15px;
    position: relative;
}

.main-wdg {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);	
}

.main-wdg2 {
    height: 80%;
    display: flex;
    flex-direction: column;
}

.main-wdg a.wp-block-latest-posts__post-title {
    padding-bottom: 15px !important;
}

.main-wdg2 a:visited {
    color: #fff;
    text-decoration: none;
}

.main-wdg2 a:hover {
    color: #cf2e2e;
    text-decoration: none;
}

/* Дороги*/
.rail-cards-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 0 20px;
  max-width: 700px;
  margin: 0 auto;
	
}

.rail-content {
  display: flex;
  height: 100%;
  justify-content: center;
}	

.rail-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
  line-height: 0;
  width: 100%;
  max-width: 300px;
}

.rail-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.rail-card img {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: cover;
  flex-shrink: 0;
}

.rail-card-content {
  padding: 16px;
  text-align: center;
  flex: 1;
  line-height: 1.4;
  font-size: 16px;
}

.rail-title {
  margin: 0 0 8px 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #404040;
  line-height: 1.2;
}

.rail-description {
  margin: 0;
  font-size: 0.9rem;
  color: #404040;
  line-height: 1.4;
}

.rail-card:hover .rail-title,
.rail-card:hover .rail-description {
  color: #d22c33;
}

@media (max-width: 768px) {
  .rail-cards-container {
    grid-template-columns: 1fr; 
    gap: 15px;
  }
  
  .rail-card {
    max-width: 100%; 
  }
  
  .rail-content {
    justify-content: stretch; 
  }
}

@media (max-width: 480px) {
  .rail-cards-container {
    gap: 12px;
  }
  
  .rail-card-content {
    padding: 12px; 
  }
  
  .rail-title {
    font-size: 1rem;
  }
  
  .rail-description {
    font-size: 0.85rem;
  }
  
  .rail-card img {
    height: 100px;
  }
}

#menu-item-238344 {
    position: relative;
}

#menu-item-238344:after {
    content: "реклама";
    position: absolute;
    top: 60%;
    left: 35px;
    text-align: center;
    font-size: 0.5em;
    color: #fff;
    margin-top: 1px;
    white-space: nowrap;
}

@media (max-width: 968px)  {
    #menu-item-238344:after {
        left: 50px;
    }
}

.moveimg {
    position: relative;
}

.moveimg::after {
    content: "Реклама";
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    text-align: left;
    font-size: 0.8em;
		color: #404040;	
    white-space: nowrap;
}

.tab.tab-popular[role="presentation"] {
    display: none !important;
}

.cat-links {
    display: none !important;
    position: absolute !important;
}

.col-xs-12.col-sm-12.col-md-8.device-center {
    width: 92% !important;
}

.is-style-wide {
    width: 100% !important;
    height: 3px !important;
    background: #bb1919 !important;
}

@media only screen and (min-width: 992px) {
    spotlight-post {
        min-height: 242px !important;
        overflow: hidden;
    }
}

.hdlnk {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    font-size: 18px;
}

/* .wp-block-latest-posts__featured-image img {
  height: 100% !important;
  max-width: 100% !important;
  width: 100% !important;
}*/

/* Force featured images to adapt to their container */
/* .wp-block-latest-posts__featured-image img {
    max-width: 100%;
    height: auto !important;	
    display: block !important;	
    width: 100% !important;	
}*/

/* Ensure the container holds the image properly */
/*wp-block-latest-posts__featured-image {
    width: 100%; /* Or your desired width */
    /*-width: 550px; /* Example: limit size of thumbnail */
/*}
}*/

/*.post-thumbnail img {
width: auto  !important;
}*/

.category-posts-shortcode.widget .spotlight-post {
    outline: 1px solid rgba(208, 211, 208, 0.5);
}

.view-more-container {
    text-align: center;
    width: 100%;
    margin-top: 1em;
}

.view-more-button {
    overflow: hidden;
    padding: 10px  20px;
    border: 1px solid #d0d3d0;
    cursor: pointer;
    background-color: white;
    transition: border-color 0.3s ease;
}

.view-more-button:hover {
    border: 1px solid #404040;
}

.view-more-button:visited,
.view-more-button:hover {
    color: #404040;
}

.button-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.card-button {
    display: block;
    width: calc(33.333% - 13.333px);
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.card-button:hover {
    transform: scale(1.02);
}

.card-image-container {
    position: relative;
 /* Ключевое свойство для позиционирования дочерних элементов */
    overflow: hidden;
}

.card-image-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.card-button:hover .card-image-container img {
    transform: scale(1.05);
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 15px;
    opacity: 0;
 /* Изначально скрыт */
    transition: opacity 0.3s ease;
    z-index: 1;
 /* Гарантирует, что текст будет поверх изображения */
}

.card-button:hover .card-content {
    opacity: 1;
 /* Появляется при наведении */
}

.card-content h2 {
    margin: 5px 0;
    font-size: 1.2em;
}

.card-content p {
    margin: 0;
    font-size: 0.95em;
}

/* Адаптивность */
@media (max-width: 768px) {
    .card-button {
        width: calc(50% - 10px);
    }
}

@media (max-width: 480px) {
    .card-button {
        width: 100%;
    }
}

/*.aft-container-default .covernews_tabbed_posts_widget .col-sm-4.col-image img, .aft-container-default .covernews_tabbed_posts_widget .col-sm-4.col-image {
	    aspect-ratio: 16 / 9  !important;
}	
*/

.latest-posts-widget {
    display: grid;
    grid-template-columns: 1fr 1fr;
 /* Две колонки равной ширины */
    gap: 1%;
    width: 100%;
    box-sizing: border-box;
    align-items: start;
 /* По умолчанию */
}

/* Большая карточка */
.big-post {
    background-color: #fff;
  /*   border: 1px solid #d0d3d0; */
    display: flex;
    flex-direction: column;
    height: 100%;
 /* Растягиваем на всю высоту грид-строки */
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.big-post a {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.big-post img {
    width: 100%;
    height: auto;
}

.latest-posts-widget p {
    margin-left: 5%;
    margin-right: 5%;
    font-size: 14px;
		color: #404040;		
}

.latest-posts-widget h3,
.latest-posts-widget h4 {
    margin: 5%;
    font-size: 16px;
		color: #404040;	
}

.latest-posts-widget h3:hover,
.latest-posts-widget h4:hover {
    color: #d22c33;
}

/* Единый стиль для всех ссылок в виджете */

.latest-posts-widget a:hover h3,
.latest-posts-widget a:hover h4 {
    color: #d22c33;
}

/* Контейнер маленьких карточек */
.small-posts-container {
    display: flex;
    flex-direction: column;
    gap: 2%;
    height: 100%;
 /* Растягиваем на всю высоту грид-строки */
}

/* Каждая маленькая карточка */
.small-post {
    background-color: #fff;
 /*     border: 1px solid #d0d3d0; */
    flex: 1;
 /* Равномерно распределяем высоту между 4 карточками */
    display: flex;
    min-height: 0;
    overflow: hidden;
 /* Важно для правильной работы */
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.small-post a {
    display: grid;
    grid-template-columns: 35% 1fr;
    gap: 10px;
    align-items: center;
    text-decoration: none;
    color: inherit;
    padding: 0px;
    width: 100%;
    flex: 1;
}

.small-post a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.small-post a h4 {
    margin: 0;
    padding: 0;
    font-size: 14px;
		color: #404040;	
    line-height: 1.3;
    word-break: break-word;
}

.small-post a:hover h4 {
    color: #d22c33;
}

/* Адаптация для планшетов и мобильных */
@media (max-width: 768px) {
    .latest-posts-widget {
        grid-template-columns: 1fr;
 /* Одна колонка */
        gap: 2%;
    }

    .small-posts-container {
        height: auto;
 /* Убираем принудительную высоту */
    }

    .small-post {
        flex: none;
		margin-bottom: 10px;
 /* Отключаем равномерное распределение */
    }
}

.small-posts-widget {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1%;
    width: 100%;
    box-sizing: border-box;
    align-items: start;
}

.small-posts-widget .small-posts-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

@media (max-width: 768px) {
    .small-posts-widget .small-posts-container {
        gap: 10px;
    }
}

.small-posts-widget .small-posts-container .small-post a h4 {
	font-size: 13px;
}

#menu-item-238337 {
    position: relative;
}

/*#menu-item-238337::after {
    content: "☰";
    position: absolute;
    top: 0;
    left: -11%;
    line-height: 2em;
    text-align: left;
    font-size: 1.5em;
    color: #fff;
    white-space: nowrap;
}

#menu-item-238337::before {
    content: '';
    position: absolute;
    top: -2px; 
    left: 0px; 
    right: 0px; 
    bottom: -2px; 
    box-shadow: inset 0 0 0 4px #a71218;
} */

.slider-figcaption .post-description {
    display: none;
}

#primary .covernews_posts_slider_widget .slider-figcaption .slide-title {
    text-decoration: none !important;
    font-size: 25px;
}

.breadcrumbs {
    background-color: #fff;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.em-breadcrumbs .breadcrumbs {
    padding: 10px 15px;
    margin-bottom: 8px;
}

.trail-breadcrumbs {
    list-style: none;
    margin: 0;
    padding: 0;
}

.trail-breadcrumbs .trail-item {
    display: inline;
    font-size: 14px;
    font-weight: 400;
}

.trail-breadcrumbs a {
    color: #404040;
    text-decoration: none;
}

.trail-breadcrumbs a:hover {
    color: #a71218;
}

.trail-breadcrumbs .breadcrumbs__separator {
    margin: 0;
}

.trail-end {
    color: #000;
}

.em-breadcrumbs ul  {
	font-family: 'FSRAILWAYBold', sans-serif;
}

.em-breadcrumbs ul li {
    text-transform: none;
}

.em-breadcrumbs ul .trail-item span[itemprop='name'] {
    padding: 0;
}

.em-breadcrumbs ul li span[itemprop='name']:before {
    display: none;
}

.figcaption {
    height: 100%  !important;
    display: flex  !important;
    flex-direction: column  !important;
}

.aft-readmore-wrapper {
    display: none;
}

.slick-item .article-title {
    height: 60px  !important;
}

@media only screen and (max-width: 480px) {
    .slick-item .article-title {
        height: 100%;
    }
}

.archive-description {
    background: #fff;
    padding: 15px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);	
}

.af-tabs.nav-tabs>li.tab-recent>a::before {
    content: "";
}

.wp-block-list li {
	border-bottom: 2px solid #eee;
	line-height: 3em;
}

.wp-block-list li  a{
  display: inline-block; 
  transition: all 0.3s ease 0s;
  text-decoration: none  !important;
}	

.wp-block-list li  a:hover {
  transform: translateX(10px);
}	

#secondary .widget ul.af-tabs {
	display: none;
}

.site-main .post-navigation {
    display: none;
}

.covernews-pagination .nav-links .page-numbers.current, .covernews-pagination .nav-links .page-numbers {
    min-width: 54px;
    min-height: 54px;
	margin-bottom: 5px;
    line-height: 54px;
    font-size: 15px;
	background-color: #fff;
	 border-color: transparent;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);	
}

.navigation.pagination .current {
	color: #fff; 
	background-color: #a71218  !important;
	border-color: transparent;
}

.navigation.pagination a:hover {
	color: #fff; 
	background-color: #0c3957  !important;
	border-color: transparent;
}

.page-numbers.dots {
    background: none  !important;
    box-shadow: none  !important;
}

.entry-content, .spotlight-post {
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

@media only screen and (max-width: 480px) {
.latest-posts-grid, .covernews-ad-archive-between.float-l.col-1.pad {
    width: 100%;
		}
}

.af-search-form {
	top: 120%  !important;
	width: 370px;
	padding: 10px;
}

@media only screen and (max-width: 480px) {
.af-search-form {
	top: 130%  !important;
}
}

section.error-404.not-found {
    width: 70%;
    margin-left: auto; 
    min-height: 60vh;
    padding:  0px;
    position: relative;
    float: right; 
}


section.error-404.not-found .error-wrap {
    background-color: #fff;
    padding: 0 15px 30px 15px;
}	

.error-wrap .page-content ul {
    text-align: left;
    padding-left: 20px;
}

@media only screen and (max-width: 991px) {
section.error-404.not-found {
        width: 100%;
		margin-bottom: 30px;
    }
}

.covernews_posts_carousel_widget.grid-layout h3.article-title a {
   padding-bottom: 0px;
	text-transform: uppercase;
}

/**
 * Ultimate Posts Carousel Widget Styles
 */

.ultimate-posts-carousel-widget {
    margin-bottom: 25px;
}

.ultimate-carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.ultimate-carousel-title-wrapper {
    flex: 1;
}

.ultimate-carousel-title-wrapper .widget-title {
    margin: 0;
    padding: 0;
    font-size: 20px;
    font-weight: 600;
    position: relative;
}

.ultimate-carousel-nav {
    display: flex;
    /*gap: 5px;*/
    flex-shrink: 0;
}

.ultimate-slide-prev,
.ultimate-slide-next {
    display: block;
    width: 35px;
    height: 35px;
    line-height: 33px;
    text-align: center;
    background: #fff;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.ultimate-slide-prev:hover,
.ultimate-slide-next:hover {
    background: #0c3957;
    color: #fff;
}

.ultimate-posts-carousel {
    margin: 0 -10px;
}

.ultimate-posts-carousel .slick-track {
    display: flex;
    align-items: stretch;
}

.ultimate-posts-carousel .slick-slide {
    height: auto;
    margin: 0 10px;
}

.ultimate-posts-carousel .slick-slide > div {
    height: 100%;
}

.carousel-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Изображения 16:9 */
.carousel-image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    overflow: hidden;
    background: #f0f0f0;
    flex-shrink: 0;
}

.carousel-image-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Контент (только заголовок) */
.carousel-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 15px;
}

.carousel-title {
    margin: 0;
    font-size: 16px;
    line-height: 1.3;
	text-transform: uppercase;
}

.carousel-title a {
    color: #404040;
    text-decoration: none;
    overflow: hidden;
}

.carousel-title a:hover {
    color: #a71218;
}

/* Адаптивность */
@media (max-width: 768px) {
    .ultimate-carousel-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .ultimate-carousel-nav {
        align-self: flex-end;
        margin-top: -60px;
				margin-bottom: 10px;
    }
	
	.ultimate-slide-prev,
.ultimate-slide-next {;
    line-height: 30px;
}
    
    .carousel-title {
        font-size: 16px;
    }
    
    .carousel-content {
        padding: 12px;
    }
}

.aft-container-default .covernews_tabbed_posts_widget .col-sm-4.col-image img, .aft-container-default .covernews_tabbed_posts_widget .col-sm-4.col-image {
    aspect-ratio: 16 / 9;
    object-fit: cover;	
}

.covernews_tabbed_posts_widget .col-sm-4.col-image {
	width: 40%;
}

.covernews_tabbed_posts_widget .full-item-details.col-details.col-sm-8 {
		width: 60%;
}

.covernews_trending_posts_carousel_widget h3.article-title, .col-sm-15 h3.article-title, .list h3.article-title, .article-tabbed-list h3.article-title, .full-plus-list h3.article-title {
	font-size: 13px;
}

@media only screen and (max-width: 480px) {
    .int1, .int2 {
        height: 0px !important;
    }
}

#secondary .widget ul.article-tabbed-list .row-sm.align-items-center {
    overflow: hidden;;
}

.entry-content .post-item-metadata {
    padding: 0;
}
  
/* Основные стили кнопки */
.custom-image-text-button {
    display: flex;
    align-items: center;
    text-decoration: none;
    border: 1px solid #eee;
    border-radius: 0;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    max-width: 100%;
}

/* Контейнер для изображения */
.custom-image-text-button .button-image {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    line-height: 0;
}

.custom-image-text-button .button-image img {
    display: block;
    width: auto;
    height: 70px;
    object-fit: cover;
}

/* Контейнер для текста */
.custom-image-text-button .button-text {
    flex: 1;
    padding: 12px 16px;
    color: #404040;
    font-weight: 700;
    text-align: center;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.3;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
}

/* Эффекты при наведении */
.custom-image-text-button:hover {
    border-color: #e0e0e0;
}

.custom-image-text-button:hover .button-text {
    color: #a71218;
}
  
.btncl .widget:not(.covernews-widget) {
    margin: 0;
}