.custom-page-menu {
    display: none;
}

#masthead .main-navigation,
#masthead .nav-menu,
.site-header .main-navigation {
    display: block !important;
}
/*
Theme Name: GeneratePress Child
Template: generatepress
*/
/* ═══ КАРТОЧКИ СТАТЕЙ НА СТРАНИЦЕ БЛОГА ═══ */

/* Убираем ВСЁ лишнее из превью */
.blog .inside-article .entry-content,
.blog .inside-article .entry-summary,
.blog .inside-article footer.entry-meta,
.blog .inside-article .entry-header .entry-meta,
.blog .inside-article .cat-links,
.blog .inside-article .tags-links,
.blog .inside-article .comments-link,
.blog .inside-article .posted-on,
.blog .inside-article .byline {
    display: none !important;
}

/* Карточка статьи */
.blog .inside-article {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    padding: 0 !important;
    margin-bottom: 24px !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    border: 1px solid #f0dde5 !important;
    background: #fff !important;
    box-shadow: 0 2px 12px rgba(194,86,106,.06) !important;
    transition: all 0.2s;
    max-width: 700px;
}
.blog .inside-article:hover {
    box-shadow: 0 6px 24px rgba(194,86,106,.12) !important;
    transform: translateY(-2px);
}

/* Картинка слева */
.blog .inside-article .post-image,
.blog .inside-article .featured-image {
    flex: 0 0 250px !important;
    max-width: 250px !important;
    min-height: 180px;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}
.blog .inside-article .post-image a,
.blog .inside-article .featured-image a {
    display: block !important;
    height: 100% !important;
}
.blog .inside-article .post-image img,
.blog .inside-article .featured-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Заголовок справа */
.blog .inside-article .entry-header {
    display: flex !important;
    align-items: center !important;
    padding: 24px 28px !important;
    flex: 1 !important;
    margin: 0 !important;
}
.blog .inside-article .entry-header .entry-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #2e2e2e !important;
    line-height: 1.4 !important;
    margin: 0 !important;
}
.blog .inside-article .entry-header .entry-title a {
    color: #2e2e2e !important;
    text-decoration: none !important;
    transition: color 0.2s;
}
.blog .inside-article .entry-header .entry-title a:hover {
    color: #c2566a !important;
}

/* Убираем сайдбар на странице блога */
.blog #right-sidebar,
.blog #left-sidebar {
    display: none !important;
}
.blog .site-content .content-area {
    width: 100% !important;
    max-width: 800px !important;
    margin: 0 auto !important;
}

/* Мобильная версия */
@media (max-width: 768px) {
    .blog .inside-article {
        flex-direction: column !important;
    }
    .blog .inside-article .post-image,
    .blog .inside-article .featured-image {
        flex: none !important;
        max-width: 100% !important;
        height: 200px !important;
    }
    .blog .inside-article .entry-header {
        padding: 18px 20px !important;
    }
    .blog .inside-article .entry-header .entry-title {
        font-size: 16px !important;
    }
}
/* ═══ МЕНЮ НА СТРАНИЦЕ БЛОГА — ДЕСКТОП ═══ */
.blog .main-navigation {
    display: block !important;
    background: #faf6f2 !important;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 2px 12px rgba(194,86,106,.08);
    padding: 0 10px;
}
.blog .main-navigation .main-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}
.blog .main-navigation .main-nav li {
    margin: 0;
}
.blog .main-navigation .main-nav li a {
    display: block;
    padding: 12px 18px;
    color: #2e2e2e;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.2s;
}
.blog .main-navigation .main-nav li a:hover {
    background: #fdf0f3;
    color: #c2566a;
}
.blog .main-navigation .main-nav li.current-menu-item a,
.blog .main-navigation .main-nav li.current_page_item a {
    background: #c2566a;
    color: #fff;
    border-radius: 10px;
}
/* ═══ ВНУТРИ ЗАПИСИ — убираем заголовок, дату, автора ═══ */
.single-post .entry-header {
    display: none !important;
}

/* Убираем рубрику и метаданные внизу */
.single-post footer.entry-meta {
    display: none !important;
}

/* Убираем навигацию между записями */
.single-post .post-navigation {
    display: none !important;
}

/* Текст записи — красиво и читаемо */
.single-post .entry-content {
    max-width: 750px;
    margin: 0 auto;
    padding: 30px 20px;
    font-size: 16px;
    line-height: 1.8;
    color: #2e2e2e;
}

/* Убираем сайдбар внутри записи */
.single-post #right-sidebar,
.single-post #left-sidebar {
    display: none !important;
}
.single-post .site-content .content-area {
    width: 100% !important;
    max-width: 800px !important;
    margin: 0 auto !important;
}
/* ═══ ВИДЕО НА ГЛАВНОЙ ═══ */
.video-row {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.video-card {
    flex: 1;
    max-width: 260px;
    min-width: 200px;
    text-align: center;
}

.video-card h3 {
    color: #c2566a;
    font-size: 16px;
    margin-bottom: 12px;
    line-height: 1.4;
}

/* Превью-обложка */
.video-preview {
    position: relative;
    cursor: pointer;
    display: inline-block;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(194, 86, 106, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-preview:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 28px rgba(194, 86, 106, 0.25);
}

.video-preview img {
    width: 220px;
    display: block;
    border-radius: 16px;
}

/* Кнопка Play поверх обложки */
.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(194, 86, 106, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease;
}

.video-preview:hover .video-play-btn {
    background: rgba(194, 86, 106, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-play-btn::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 18px;
    border-color: transparent transparent transparent #fff;
    margin-left: 3px;
}

/* Модальное окно для видео */
.video-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.video-modal-overlay.active {
    display: flex;
}

.video-modal-content {
    position: relative;
    max-width: 400px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.video-modal-content video {
    width: 100%;
    border-radius: 16px;
    max-height: 80vh;
    object-fit: contain;
}

.video-modal-close {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    z-index: 100000;
}

.video-modal-close:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Мобилка — модалка */
@media (max-width: 768px) {
    .video-modal-overlay {
        padding: 10px;
    }

    .video-modal-content {
        max-width: 95vw;
    }

    .video-modal-content video {
        max-height: 75vh;
        border-radius: 12px;
    }

    .video-modal-close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
}