/*
 Theme Name:   Easy Magazine Pro Child
 Theme URI:    https://1tv.od.ua/easy-magazine-pro-child
 Description:  Дочерняя тема для Easy Magazine Pro
 Author:       1tv.od.ua
 Author URI:   1tv
 Template:     easy-magazine-pro
 Version:      1.0.0
*/
html,
body {
    overflow-x: hidden;
}

.byline,
.comments-link,
.comment-form-url {
    display: none !important;
}

.front-section {
    padding: 50px 0 5px 0;
}

#recommended-posts {
    padding-bottom: 0px;
}

.body-section {
    padding: 20px 0 20px 0;
}

#page-site-header {
    padding: 180px 0;
}

#recommended-posts .featured-image {
    padding-bottom: 125px;
}

.blog-posts-wrapper .featured-image {
    padding-top: 100px;
    padding-bottom: 150px;
}

.blog .blog-posts-wrapper .featured-image {
    padding-top: 100px;
    padding-bottom: 190px;
}

.body-section .section-title a {
    color: #fff;
}

.body-section .section-title a:hover {
    color: #000;
}

#slider-posts article {
    margin-bottom: 20px;
}


#slider-posts .recommended-post-item {
    position: relative;
    background-color: #000;
    border-radius: 5px;
}

#slider-posts .featured-image-front {
    background-size: cover;
    background-position: 50%;
    padding: 100px 0;
    border-radius: 5px;
}

#slider-posts .entry-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(0deg, rgba(0, 0, 0, .8) 0, transparent);
}

#slider-posts .entry-title {
    font-size: 16px;
    margin: 0;
}

#slider-posts .entry-title a {
    color: #fff;
}

#slider-posts a {
    text-decoration: none;
}

#slider-posts .cat-links {
    margin-bottom: 10px;
    margin-right: 0;
    display: block;
}

#slider-posts .date a {
    color: #fff;
    font-size: 12px;
    line-height: 1;
}

#slider-posts .entry-title a:hover,
#slider-posts .entry-title a:focus,
#slider-posts .date a:hover,
#slider-posts .date a:focus {
    color: #fff;
    opacity: 0.8;
}

#page-site-header .page-title {
    display: none;
}

.wrapper-online {
    display: flex;
    width: 95%;
    max-width: 1500px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}

.video-section {
    padding: 10px;

}

.column {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 50%;
    overflow: hidden;
}

.column-page {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
}

#video-efir {
    border-radius: 5px;
}


.live-label {
    position: absolute;
    top: 5%;
    left: 30%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;

    font-size: 14px;
    font-weight: bold;
}

.live-label-page {
    position: absolute;
    top: 2.5%;
    left: 14.4%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;

    font-size: 14px;
    font-weight: bold;
}

.live-label-page .pulse-dot {
    width: 10px;
    height: 10px;
    background-color: #00aaff;
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse 1s infinite;
}

.live-label .pulse-dot {
    width: 10px;
    height: 10px;
    background-color: #00aaff;
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Стили для пункта меню */
#menu-item-21047 a {
    padding-right: 30px !important;
}


#menu-item-21048 a {
    padding-right: 30px !important;
}

.social-icons li a[href*="t.me"]::before {
    content: "\f2c6";
    /* Иконка для Телеграм */
}

.social-icons li a[href*="t.me"]:hover {
    background-color: #0088cc;
}


/* Пульсирующая точка */
.live-menu-item::before {
    content: "";
    position: absolute;
    top: 42%;
    left: 89%;
    transform: translateY(50%);
    width: 10px;
    height: 10px;
    background-color: #FF0000;
    /* Цвет точки */
    border-radius: 50%;
    animation: pulse 1s infinite;
}



/* Анимация пульсации */
@keyframes pulse {
    0% {
        transform: translateY(-50%) scale(1);
        opacity: 1;
    }

    50% {
        transform: translateY(-50%) scale(1.5);
        opacity: 0.5;
    }

    100% {
        transform: translateY(-50%) scale(1);
        opacity: 1;
    }
}


.last_news-label {
    position: absolute;
    top: 5%;
    left: 70%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;

    font-size: 14px;
    font-weight: bold;
}


.last_news-label .last_news-pulse-dot {
    width: 10px;
    height: 10px;
    background-color: #00aaff;
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.swiper-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 5px;
}

.slider-section {
    max-width: 100%;
    padding: 10px;
}

.swiper-container {
    width: 100%;
    height: 100%;
}

@media screen and (min-width: 1024px) {

    .nav-menu .sub-menu {

        position: absolute;

        transform: translateX(-75%);
        background-color: #ffffff;
        padding: 10px;
        width: 950px;
        box-sizing: border-box;
        z-index: 1000;
    }


    .nav-menu li.menu-item:hover>.sub-menu {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr);
        grid-gap: 15px;

    }

    .nav-menu .sub-menu li a {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-menu .sub-menu .menu-item {
        list-style: none;
    }

    .nav-menu .sub-menu li {
        width: 200px;
        /* height: 50px;  */
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .nav-menu .sub-menu .menu-item a {
        display: flex;
        align-items: center;

        color: #333;
        text-decoration: none;
        padding: 0 0;
    }

    .nav-menu .sub-menu .menu-item a:hover {
        color: #0073aa;
        /* Цвет при наведении */
    }

    /* 4. Обеспечиваем правильное позиционирование родительского элемента */
    .nav-menu li.menu-item {
        position: relative;
    }
}

/* Стили для слайдера */
.slider-section {
    /* Ваши стили для секции слайдера */
}

.swiper-container {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    position: relative;
    width: 100%;
    height: 400px;
    /* Настройте высоту слайдера */
    background-size: cover;
    background-position: center;
}

.slide-image {
    display: block;
    /* Добавляем display: block для ссылок */
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    text-decoration: none;
    /* Убираем подчеркивание текста */
}

.slide-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 10px;
    box-sizing: border-box;
    text-align: center;
}

.slide-title a {
    color: #fff;
    text-decoration: none;
}

.slide-title a:hover {
    text-decoration: underline;
}

.slide-image {
    cursor: pointer;
}

.featured-image-front {
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 200px;
    /* Установите желаемую высоту */
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.featured-image-front a.post-thumbnail-link {
    display: block;
    width: 100%;
    height: 100%;
}

.site-details-wrapper {
    background-image: url('https://1tv.od.ua/wp-content/uploads/2024/11/baner-copy.png');
    padding: 10px 0;
}

.section-title {
    font-size: 18px;
    color: #fff;
    font-weight: 500;
    text-transform: uppercase;
    padding: 10px 20px;
    background: linear-gradient(90deg, #4DB2EC 0%, #1A4A78 100%);
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.section-title::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.3) 1px, transparent 1px);
    background-size: 10px 10px;
    /* Больше точек в узоре */
    opacity: 0.7;
    transform: scale(1.5) translateX(60%);
    /* Сильнее сдвинуть к правому краю */
}

.main-navigation ul ul a {
    width: unset;
}

.footer-social {
    text-align: left;
    color: #fff;
    margin-top: 20px;
}

.footer-social p {
    font-size: 16px;
    margin-bottom: 10px;
}

.footer-social a {
    text-decoration: unset;
}

.social-icons {
    display: flex;
    justify-content: left;
    gap: 15px;
}

footer {
    margin-top: 20px;
}

footer p {
    font-size: 14px;
    line-height: 18px;
}

footer .widget-title {
    color: #04B2F2
}


@media screen and (min-width: 992px) {
    #colophon .social-icons {
        margin-left: 0px;
        margin-top: 25px;
    }


}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    transition: background-color 0.3s ease;
}

.social-icon.telegram {
    background-color: #0088cc;
}

.social-icon.facebook {
    background-color: #3b5998;
}

.social-icon.instagram {
    background-color: #e1306c;
}

.social-icon.youtube {
    background-color: #c4302b;
}

.social-icon:hover {
    opacity: 0.8;
}


/* Flex-контейнер для кнопки */
.button-container {
    display: flex;
    justify-content: flex-end;
    /* По умолчанию слева */
    align-items: center;
    margin-top: 20px;
    padding-right: 10px;
    position: relative;
    width: 100%;
}

/* Кнопка */
.view-all-btn {
    font-size: 14px;
    padding: 8px 12px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    background: linear-gradient(90deg, #4DB2EC 0%, #1A4A78 100%);
    overflow: hidden;
    transition: background-color 0.3s;
    display: inline-block;
}

/* Узор из точек на кнопке */
.view-all-btn::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.3) 1px, transparent 1px);
    background-size: 8px 8px;
    opacity: 0.7;
    transform: scale(2) translateX(70%);
    pointer-events: none;
    transition: transform 0.3s;
}

.view-all-btn:hover::before {
    transform: scale(2.2) translateX(60%);
}

.view-all-btn:hover {
    background-color: #0056b3;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    /* Расположение по вертикали */
    gap: 10px;
    /* Расстояние между элементами */
    padding-top: 20px;
    color: #fff;
}

.contact-item {
    display: flex;
    align-items: center;
    font-size: 16px;
    color: #fff;
}

.contact-item i {
    margin-right: 10px;
    font-size: 18px;
    /* Размер иконок */
    color: #4DB2EC;
    /* Цвет иконок */
}


.blog .blog-posts-wrapper {
    /* Ваши стили */
    margin: 10px 150px;

}


.nav-menu::before {
    content: "";
    position: absolute;
    top: 0;
    left: -50%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-30deg);
    animation: slide 5s linear infinite;
}

@keyframes slide {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

@media screen and (min-width: 1024px) {
    .main-navigation ul ul li {
        border-bottom: none;
    }
}

/* Адаптивное центрирование на мобильных устройствах */
@media (max-width: 768px) {

    .blog-posts-wrapper .featured-image {
        padding-top: 100px;
        padding-bottom: 90px;
    }

    .blog .blog-posts-wrapper .featured-image {
        padding-top: 100px;
        padding-bottom: 90px;
    }

    .blog .blog-posts-wrapper {
        margin: 10px 10px;
    }

    #recommended-posts .featured-image {
        padding: 100px 0;
    }

    .featured-image-front {
        height: unset;
    }

    #colophon .widget-title {
        font-size: 20px;
    }

    #colophon a,
    #colophon p {
        font-size: 14px;
    }

    .button-container {
        justify-content: center;
    }

    .social-icons {
        justify-content: center;
    }

    .nav-menu {
        flex-direction: column;
    }

    .nav-menu .sub-menu {
        position: static;
        width: 100%;
        display: none;
        grid-template-columns: none;
        grid-gap: 0;
        transform: none;
    }

    .nav-menu .sub-menu .menu-item {
        width: 100%;
    }

    #breaking-news,
    .page-section {
        padding: 10px 0;
    }

    .wrapper-online {
        flex-direction: column;
        align-items: center;
    }

    .video-section,
    .slider-section {
        width: 100%;
        /* Занимает всю ширину на мобильных */
        max-width: 100%;
        /* Ограничивает ширину, если нужно */
    }

    .video-section {
        margin-bottom: 20px;
        /* Отступ между блоками на мобильных */
    }

    .swiper-container {
        width: 100%;
        /* Полная ширина для слайдера */
    }


    .video-section {
        position: relative;
        padding-top: 56.25%;
        /* Соотношение 16:9 */
        background-color: black;
        overflow: hidden;
    }

    .video-section video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .live-label {
        position: absolute;
        transform: none;
        top: 10px;
        right: 10px;
        display: flex;
        align-items: center;
        background-color: rgba(4, 178, 242, 0.5);
        color: white;
        padding: 5px 10px;

        font-size: 14px;
        font-weight: bold;
        z-index: 10;
    }

    .live-label .pulse-dot {
        width: 10px;
        height: 10px;
        background-color: #FF0000;
        border-radius: 50%;
        margin-right: 8px;
        animation: pulse 1s infinite;
    }

    @keyframes pulse {
        0% {
            transform: scale(1);
            opacity: 1;
        }

        50% {
            transform: scale(1.5);
            opacity: 0.5;
        }

        100% {
            transform: scale(1);
            opacity: 1;
        }
    }



    .slider-section {
        width: 100%;

    }

    .swiper-container {
        width: 100%;
        height: 100%;
    }

    .swiper-slide img {
        width: 100%;
        height: auto;
        object-fit: cover;
        border-radius: 5px;
    }

    .last_news-label {
        top: 57%;
        left: 61%;
        z-index: 1;
        width: 231px;
        background-color: rgba(4, 178, 242, 0.5);
    }
}

@media screen and (min-width: 768px) and (max-width: 1585px) {

    #page-site-header {
        padding: 120px 0;
        background-repeat: no-repeat;
        background-position: center;
    }
}

@media screen and (max-width: 768px) {
    #page-site-header {
        padding: 40px 0;
    }


}