/*
Theme Name: General News
Theme URI:  https://afthemes.com/products/generalnews/
Author:     AF themes
Author URI: https://afthemes.com/
Description: General News is a practical, widgetized WordPress child theme built on MoreNews for newspapers and journals requiring a reliable, easy-to-configure architecture. It features 9+ custom widgets, multiple banner choices, and a header and footer builder for efficient layout management. The theme is compatible with the Block Editor and major page builders, focusing on search engine optimization and Core Web Vitals for maximum visibility. It is AMP-ready, WCAG-accessible, and multilingual, designed to help global publishers launch search-friendly, content-rich sites quickly. https://afthemes.com/products/generalnews/
Template: morenews
Version: 2.0.2
Requires at least: 4.0
Requires PHP: 5.0
Tested up to: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: general-news
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.

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

.exclusive-posts .exclusive-now,
.main-navigation .menu-description,
.af-cat-widget-carousel a.morenews-categories.category-color-1{
    background-color: #bb1919;
}
.main-navigation .menu-description:after{border-top: 5px solid #bb1919;}
a.morenews-categories.category-color-1{color: #bb1919;}
.af-cat-widget-carousel a.morenews-categories.category-color-2 {background-color: #0098fe;}
a.morenews-categories.category-color-2 {color: #0098fe;}
.af-cat-widget-carousel a.morenews-categories.category-color-3{background-color: #353535;}
a.morenews-categories.category-color-3 {color: #353535;}
.aft-default-mode .entry-content>.wp-block-heading a:not(.has-link-color) {border-color: #bb1919;}
.aft-default-mode .entry-content .wp-block-heading:not(.has-link-color):not(.wp-block-post-title) a,
.entry-content > p:not(.has-link-color) a, .entry-content > p:not(.has-link-color) a:visited{
    color: #bb1919;
}
.entry-content li [class^="wp-block-"] {margin-bottom: 5px;}
article.sticky .af-double-column.no-post-image .read-single > div.read-img::before{top: 0;}

/* new block css */
.wp-block-navigation .has-child .wp-block-navigation__submenu-container>.wp-block-navigation-item>.wp-block-navigation-item__content {
    color: inherit;
}

/* ==========================================================================
   AdSense & Anti-AdBlock Styling (Added by Antigravity AI)
   ========================================================================== */
.adsense-container {
    margin: 1.5rem auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.adsense-container::before {
    content: 'SPONSORED ADVERT';
    display: block;
    font-size: 0.65rem;
    color: #94a3b8;
    letter-spacing: 1.5px;
    margin-bottom: 0.5rem;
    text-align: center;
    font-weight: 700;
}

/* Ad Header Wrapper */
.ad-header-wrapper {
    max-width: 728px;
    min-height: 90px;
    background-color: #f1f5f9;
    border-radius: 8px;
    border: 1px dashed #e2e8f0;
}

/* In-Feed Ad Card */
.ad-infeed-wrapper {
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px dashed rgba(99, 102, 241, 0.3);
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

/* Sticky Sidebar Ad Container */
.ad-sidebar-sticky {
    position: sticky;
    top: 90px;
    z-index: 10;
    min-height: 600px;
    background-color: #f1f5f9;
    border-radius: 12px;
    border: 1px dashed #e2e8f0;
}

/* Ad In-Article Paragraph Wrapper */
.ad-article-wrapper {
    margin: 2rem 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 1.5rem 0;
    background-color: rgba(248, 250, 252, 0.4);
}

.dark-mode .ad-header-wrapper,
.dark-mode .ad-sidebar-sticky {
    background-color: #1e293b;
    border-color: #334155;
}

.dark-mode .ad-infeed-wrapper {
    background-color: #0f172a;
    border-color: rgba(129, 140, 248, 0.3);
}

.dark-mode .ad-article-wrapper {
    border-color: #334155;
    background-color: rgba(15, 23, 42, 0.4);
}

/* Placeholder for Simulated Ads when empty */
.ad-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    width: 100%;
    height: 100%;
    padding: 1.5rem;
}

/* AdBlock Warning Overlay UI */
.adblock-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.adblock-alert-box {
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    max-width: 500px;
    width: 100%;
    padding: 2.5rem;
    text-align: center;
    animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.dark-mode .adblock-alert-box {
    background-color: #0f172a;
    border-color: #1e293b;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
}

.adblock-icon {
    font-size: 3rem;
    color: #f43f5e;
    margin-bottom: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(244, 63, 94, 0.1);
    width: 80px;
    height: 80px;
    border-radius: 9999px;
}

.adblock-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #020617;
}

.dark-mode .adblock-title {
    color: #f8fafc;
}

.adblock-desc {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 1.75rem;
}

.dark-mode .adblock-desc {
    color: #94a3b8;
}

.adblock-btn {
    background-color: #6366f1;
    color: #ffffff;
    border: none;
    font-weight: 600;
    padding: 0.85rem 2rem;
    border-radius: 9999px;
    cursor: pointer;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: background-color 0.2s, transform 0.2s;
    width: 100%;
}

.adblock-btn:hover {
    background-color: #4f46e5;
    transform: translateY(-1px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}