/*
Theme Name: NewsDay
Theme URI:  https://afthemes.com/products/newsday/
Author:     AF themes
Author URI: https://afthemes.com/
Description: NewsDay is a mobile-first, visually striking WordPress child theme built on MoreNews for news sites, online magazines, entertainment blogs and lifestyle portals that prioritize visual storytelling and performance; it includes banner-ready templates and bold typography presets, flexible homepage and archive layouts, header & footer builder compatibility, and out-of-the-box support for Gutenberg, Elementor, Brizy, Beaver Builder, Visual Composer and Divi so editors can design editorial pages with drag-and-drop ease; NewsDay is built on clean, lightweight code, AMP-ready, SEO and Core Web Vitals optimized, GDPR and WCAG-friendly, and integrates with WooCommerce, Jetpack, Contact Form 7 and Yoast SEO for monetization and extended functionality; multilingual and RTL-ready demos include Spanish, French, German, Portuguese, Arabic, Japanese and more — pick NewsDay if you need a high-impact, mobile-optimized magazine/news theme tailored for lifestyle and entertainment verticals. https://afthemes.com/products/newsday/
Template: morenews
Version: 1.1.3
Requires at least: 5.0
Requires PHP: 5.0
Tested up to: 6.8
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: newsday
Tags: news, blog, entertainment, one-column, two-columns, three-columns, four-columns, grid-layout, block-patterns, block-styles, left-sidebar, right-sidebar, custom-header, flexible-header, custom-background, custom-logo, custom-menu, custom-colors, featured-images, full-width-template, post-formats, rtl-language-support, footer-widgets, translation-ready, theme-options, threaded-comments, wide-blocks

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.

NewsDay WordPress Theme, Copyright 2025 AF themes
NewsDay is distributed under the terms of the GNU GPL v2 or later.
*/

/* Системные шрифты для всего сайта */
body,
button,
input,
select,
optgroup,
textarea,
h1, h2, h3, h4, h5, h6,
.site-title,
.entry-title,
.widget-title,
.read-title,
.nav-links,
.entry-meta,
.entry-content {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", "Open Sans", Arial, sans-serif !important;
}

/* Системные шрифты для виджета exclusive-posts */
.exclusive-posts,
.exclusive-posts *,
.exclusive-posts .exclusive-now,
.exclusive-posts .exclusive-now span,
.exclusive-posts .marquee a,
.exclusive-posts .marquee a span {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", "Open Sans", Arial, sans-serif !important;
}

/* Увеличение высоты элементов в aft-featured-category-section для длинных заголовков */
.aft-featured-category-section .read-single.color-pad {
    min-height: 140px;
}

.aft-featured-category-section .read-single.color-pad .read-details {
    min-height: 90px;
    height: auto;
}

/* Для grid-design элементов в featured category section */
.aft-featured-category-section .grid-design-default .read-details {
    flex: 1;
    justify-content: flex-start;
}

body,
button,
input,
select,
optgroup,
textarea {
    line-height: 1.7;
}

div#main-navigation-bar {
    background: #111111;
}

/* .exclusive-posts .exclusive-now, */
.morenews-header.header-layout-centered .top-bar-right div.custom-menu-link>a,
.morenews-header.header-layout-compressed-full .top-bar-right div.custom-menu-link>a,
.morenews-header.header-layout-side .search-watch div.custom-menu-link>a {
    background: #F43776;
}

.exclusive-posts .exclusive-now {
    background: #111111;
}

.main-navigation .menu-description {
    background-color: #F43776;
}

.main-navigation .menu-description:after {
    border-top: 5px solid #F43776;
}


.af-cat-widget-carousel a.morenews-categories.category-color-1 {
    background-color: #F43776;

}


a.morenews-categories.category-color-1 {
    color: #F43776;

}

.af-cat-widget-carousel a.morenews-categories.category-color-2 {
    background-color: #111111;

}


a.morenews-categories.category-color-2 {
    color: #111111;
}

.af-cat-widget-carousel a.morenews-categories.category-color-3 {
    background-color: #9229F7;

}

a.morenews-categories.category-color-3 {
    color: #9229F7;
}

.aft-default-mode .entry-content>.wp-block-heading a:not(.has-link-color) {
    border-color: #F43776;
}

.morenews-header .top-header,
footer.site-footer {
    background-color: #111111;
}

.widget-title-border-center .wp-block-search__label,
.widget-title-border-center .morenews-widget .wp-block-heading,
.widget-title-border-bottom .wp-block-search__label,
.widget-title-border-bottom .morenews-widget .wp-block-heading,
.widget-title-border-none .wp-block-search__label,
.widget-title-border-none .morenews-widget .wp-block-heading,
.aft-posts-tabs-panel .nav-tabs>li>a,
h4.af-author-display-name,
body.widget-title-border-bottom .widget-title,
body.widget-title-border-center .widget-title,
body.widget-title-border-none .widget-title,
.header-after1,
.widget-title {
    font-size: 18px;
}


body:not(.full-width-content) #primary .morenews_express_posts_grid_widget .af-express-grid-wrap .read-single:first-child .read-title h3,
.aft-banner-layout-7 .af-banner-carousel.af-carousel-3 .read-title h3,
.mailchimp-block .block-title,
.morenews_posts_slider_widget .read-single .read-details .read-title h3,
article.latest-posts-full .read-title h3,
.af-banner-carousel .read-title h3 {
    font-size: 42px;
}

body .reply a, 
div#respond input[type="submit"],
.btn-style1 a:visited,
.btn-style1 a,
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
    padding: 5px 10px;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 700;
}

.gt_float_switcher .gt_options a {
    background-color: #fff !important;
    color: #444 !important;
}

#gt_float_wrapper .gt_float_switcher .gt_options a {
    font-size: 15px;
    font-weight: 600;
    padding: 8px 10px;
}

@media only screen and (max-width: 479px) {

    .widget-title-border-center .wp-block-search__label,
    .widget-title-border-center .morenews-widget .wp-block-heading,
    .widget-title-border-bottom .wp-block-search__label,
    .widget-title-border-bottom .morenews-widget .wp-block-heading,
    .widget-title-border-none .wp-block-search__label,
    .widget-title-border-none .morenews-widget .wp-block-heading,
    .aft-posts-tabs-panel .nav-tabs>li>a,
    h4.af-author-display-name,
    body.widget-title-border-bottom .widget-title,
    body.widget-title-border-center .widget-title,
    body.widget-title-border-none .widget-title,
    .header-after1,
    .widget-title {
        font-size: 16px;
    }


    body:not(.full-width-content) #primary .morenews_express_posts_grid_widget .af-express-grid-wrap .read-single:first-child .read-title h3,
    .aft-banner-layout-7 .af-banner-carousel.af-carousel-3 .read-title h3,
    .mailchimp-block .block-title,
    .morenews_posts_slider_widget .read-single .read-details .read-title h3,
    article.latest-posts-full .read-title h3,
    .af-banner-carousel .read-title h3 {
        font-size: 22px;
    }

    .af-list-post .read-title h3,
    .aft-trending-posts.list-part .af-double-column.list-style .read-title h3,
    .aft-main-banner-wrapper .aft-trending-posts.list-part .af-double-column.list-style .read-title h3,
    .af-trending-posts .aft-trending-posts.list-part .af-double-column.list-style .read-title h3,
    .morenews_posts_double_columns_widget .af-widget-body .af-double-column.list-style .read-title h3,
    .morenews_popular_news_widget .banner-vertical-slider .af-double-column.list-style .read-title h3,
    .af-main-banner-categorized-posts.express-posts .af-sec-post.list-part .read-title h3 {
        font-size: 14px;
    }

}

/* Стандартизация основной картинки поста */
.single .read-img .post-thumbnail img {
    width: 100%;
    height: auto;
    max-width: 938px;
    object-fit: cover;
    display: block;
}

.single .read-img .post-thumbnail {
    max-width: 938px;
    margin: 0 auto;
    overflow: hidden;
}

.single .read-img .post-thumbnail.full-width-image {
    max-width: 100%;
}

.single .read-img .post-thumbnail.full-width-image img {
    max-width: 100%;
    width: 100%;
}

/* Стили для виджетов "Свежие записи" и "Горячее" */
.newsday-recent-posts-widget ul.recent-posts-list,
.newsday-random-posts-widget ul.random-posts-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.newsday-recent-posts-widget .recent-post-item,
.newsday-random-posts-widget .random-post-item {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e5e5;
}

.newsday-recent-posts-widget .recent-post-item:last-child,
.newsday-random-posts-widget .random-post-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.newsday-recent-posts-widget .recent-post-thumbnail,
.newsday-random-posts-widget .random-post-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    margin-right: 15px;
    overflow: hidden;
    border-radius: 4px;
}

.newsday-recent-posts-widget .recent-post-thumbnail a,
.newsday-random-posts-widget .random-post-thumbnail a {
    display: block;
    width: 100%;
    height: 100%;
}

.newsday-recent-posts-widget .recent-post-thumbnail img,
.newsday-random-posts-widget .random-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.newsday-recent-posts-widget .recent-post-thumbnail:hover img,
.newsday-random-posts-widget .random-post-thumbnail:hover img {
    transform: scale(1.1);
}

.newsday-recent-posts-widget .recent-post-item:not(:has(.recent-post-thumbnail)) .recent-post-details,
.newsday-random-posts-widget .random-post-item:not(:has(.random-post-thumbnail)) .random-post-details {
    width: 100%;
}

.newsday-recent-posts-widget .recent-post-details,
.newsday-random-posts-widget .random-post-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.newsday-recent-posts-widget .recent-post-title,
.newsday-random-posts-widget .random-post-title {
    margin: 0 0 8px 0;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
}

.newsday-recent-posts-widget .recent-post-title a,
.newsday-random-posts-widget .random-post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.newsday-recent-posts-widget .recent-post-title a:hover,
.newsday-random-posts-widget .random-post-title a:hover {
    color: #F43776;
}

.newsday-recent-posts-widget .recent-post-date,
.newsday-random-posts-widget .random-post-date {
    font-size: 12px;
    color: #888;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    vertical-align: middle;
}

.newsday-recent-posts-widget .recent-post-date i,
.newsday-random-posts-widget .random-post-date i {
    font-size: 11px;
    flex-shrink: 0;
}

/* Адаптивность для мобильных устройств */
@media only screen and (max-width: 479px) {
    .newsday-recent-posts-widget .recent-post-thumbnail,
    .newsday-random-posts-widget .random-post-thumbnail {
        width: 70px;
        height: 70px;
        margin-right: 12px;
    }

    .newsday-recent-posts-widget .recent-post-title,
    .newsday-random-posts-widget .random-post-title {
        font-size: 13px;
    }
}

/* Исправляем обрезку даты в featured-category-item при длинных заголовках */
.featured-category-item .af-double-column.list-style .read-details {
    max-height: 140px;
}

/* Исправляем отображение иконок и текста в табах виджетов на одной строке */
.af-tabs li a span {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.af-tabs li a span i {
    flex-shrink: 0;
    font-size: 14px;
}

/* Адаптивность для мобильных устройств */
@media only screen and (max-width: 479px) {
    .featured-category-item .af-double-column.list-style .read-details {
        max-height: 120px;
    }
}

/* Улучшаем стиль пагинации */
.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

/* Скрываем разделитель и упоминание темы в футере */
.site-info .sep {
    display: none;
}

/* Скрываем блок "Об авторе" и комментарии на странице поста */
.single-post .author-box-content,
.single-post #comments,
.single-post .comments-area {
    display: none !important;
}

/* Скрываем стандартную навигацию WordPress */
.single-post .post-navigation {
    display: none !important;
}

/* Красивая навигация между постами с миниатюрами */
.newsday-post-navigation {
    margin: 40px 0;
    padding: 0;
}

.newsday-post-navigation .nav-links-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 0;
}

.newsday-post-navigation .nav-previous,
.newsday-post-navigation .nav-next {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.newsday-post-navigation .nav-previous:hover,
.newsday-post-navigation .nav-next:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: #F43776;
}

.newsday-post-navigation .nav-previous a,
.newsday-post-navigation .nav-next a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    padding: 15px;
    gap: 15px;
    height: 100%;
    min-height: 120px;
}

.newsday-post-navigation .nav-next a {
    flex-direction: row-reverse;
}

.newsday-post-navigation .nav-post-thumb {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 6px;
    overflow: hidden;
}

.newsday-post-navigation .nav-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.newsday-post-navigation .nav-previous:hover .nav-post-thumb img,
.newsday-post-navigation .nav-next:hover .nav-post-thumb img {
    transform: scale(1.1);
}

.newsday-post-navigation .nav-post-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.newsday-post-navigation .nav-previous .nav-post-info {
    text-align: left;
}

.newsday-post-navigation .nav-next .nav-post-info {
    text-align: right;
}

.newsday-post-navigation .nav-subtitle {
    font-size: 12px;
    color: #F43776;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.newsday-post-navigation .nav-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.newsday-post-navigation .nav-previous:hover .nav-title,
.newsday-post-navigation .nav-next:hover .nav-title {
    color: #F43776;
}

/* Если только одна кнопка навигации */
.newsday-post-navigation .nav-links-wrapper:has(.nav-previous):not(:has(.nav-next)) {
    grid-template-columns: 1fr;
}

.newsday-post-navigation .nav-links-wrapper:has(.nav-next):not(:has(.nav-previous)) {
    grid-template-columns: 1fr;
}

.newsday-post-navigation .nav-links-wrapper:has(.nav-next):not(:has(.nav-previous)) .nav-next {
    grid-column: 2;
}

/* Адаптивность */
@media only screen and (max-width: 768px) {
    .newsday-post-navigation .nav-links-wrapper {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .newsday-post-navigation .nav-post-thumb {
        width: 80px;
        height: 80px;
    }
    
    .newsday-post-navigation .nav-title {
        font-size: 14px;
        -webkit-line-clamp: 2;
    }
    
    .newsday-post-navigation .nav-links-wrapper:has(.nav-next):not(:has(.nav-previous)) .nav-next {
        grid-column: 1;
    }
}

@media only screen and (max-width: 479px) {
    .newsday-post-navigation {
        margin: 30px 0;
    }
    
    .newsday-post-navigation .nav-previous a,
    .newsday-post-navigation .nav-next a {
        padding: 12px;
        gap: 12px;
        min-height: 100px;
    }
    
    .newsday-post-navigation .nav-post-thumb {
        width: 70px;
        height: 70px;
    }
    
    .newsday-post-navigation .nav-subtitle {
        font-size: 11px;
    }
    
    .newsday-post-navigation .nav-title {
        font-size: 13px;
    }
}