/*
Theme Name: Newsup Child
Template: newsup
Version: 1.11
*/

/* =============================================
   HIDE ORIGINAL NEWSUP ELEMENTS
   ============================================= */
.mg-headwidget,
.mg-head-detail,
.mg-nav-widget-area-back,
.mg-nav-widget-area,
.navbar-wp,
.mg-latest-news-sec,
.mg-latest-news,
.mg-view-type,
.mg-view-toggle,
.view-type-wrap,
.mg-posts-type-tabs,
ul.mg-posts-type,
.mg-sec-title,
.page-header,
.archive-header,
.cat-title,
h1.page-title,
.page-title,
#secondary,
.widget-area {
    display: none !important;
}

/* =============================================
   GLOBAL DARK MODE
   ============================================= */
   
body {
    background-color: #0f0f1a !important;
    color: #dddddd !important;
}

a { color: #cccccc; }

.mg-posts-sec-post,
.mg-blog-post,
article,
.hentry {
    background-color: #1a1a2e !important;
    border-color: #2a2a2a !important;
    color: #dddddd !important;
}

/* =============================================
   HEADER — Single bar, logo left, cats right
   ============================================= */
.aiqb-header {
    background-color: #1a1a2e;
    border-bottom: 3px solid #e84545;
    width: 100%;
}

.aiqb-header-inner {
    display: flex;
    align-items: stretch;
    width: 100%;
    padding: 0;
    margin: 0;
}

.aiqb-cat-nav {
    width: 100%;
}

.aiqb-cat-nav ul {
    display: flex;
    flex-wrap: nowrap;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 64px;
    align-items: stretch;
}

.aiqb-cat-nav ul li a {
    display: flex;
    align-items: center;
    padding: 0 15px;
    color: #aaaaaa;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
    transition: color 0.15s, background-color 0.15s;
}

.aiqb-cat-nav ul li a:hover {
    color: #ffffff;
    background-color: #e84545;
}

.aiqb-cat-nav ul li a.active {
    color: #ffffff;
    background-color: #e84545;
}

/* Logo — far left, pushes cats right */
.aiqb-cat-nav ul li:first-child {
    margin-right: auto;
}

.aiqb-cat-nav ul li a.aiqb-logo {
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.6px;
    padding: 0 28px;
    text-transform: uppercase;
}

.aiqb-cat-nav ul li a.aiqb-logo:hover,
.aiqb-cat-nav ul li a.aiqb-logo.active {
    background-color: transparent;
    color: #e84545;
}

/* =============================================
   PAGE LAYOUT
   ============================================= */
.aiqb-content-wrap {
    display: flex;
    align-items: flex-start;
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 24px 0;
    gap: 32px;
}

.aiqb-main {
    flex: 1;
    min-width: 0;
}

/* =============================================
   ARTICLE ROWS
   ============================================= */
.aiqb-article-row {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid #2a2a2a;
    align-items: flex-start;
}

.aiqb-article-thumb {
    flex-shrink: 0;
    width: 140px;
    height: 94px;
    overflow: hidden;
    border-radius: 3px;
    background: #1e1e2e;
}
.aiqb-article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.aiqb-article-content {
    flex: 1;
    min-width: 0;
}

.aiqb-article-cat a {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #e84545;
    text-decoration: none;
}

.aiqb-article-title {
    margin: 4px 0 6px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
}

.aiqb-article-title a {
    color: #ffffff;
    text-decoration: none;
}

.aiqb-article-title a:hover {
    color: #e84545;
}

.aiqb-article-excerpt {
    font-size: 13px;
    color: #999999;
    margin: 0 0 6px;
    line-height: 1.5;
}

.aiqb-article-meta {
    font-size: 11px;
    color: #555555;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* =============================================
   RIGHT SIDEBAR
   ============================================= */
.aiqb-right-sidebar {
    width: 300px;
    flex-shrink: 0;
}

.aiqb-featured-box {
    background-color: #1e1e2e;
    border: 1px solid #2a2a3a;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 24px;
}

.aiqb-featured-label {
    display: block;
    background-color: #e84545;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 12px;
}

.aiqb-featured-placeholder {
    padding: 36px 20px;
    text-align: center;
    border: 1px dashed #3a3a4a;
    margin: 12px;
    border-radius: 4px;
}

.aiqb-featured-placeholder p {
    color: #555577;
    font-size: 13px;
    margin: 0;
    line-height: 1.8;
}

.aiqb-featured-placeholder a {
    color: #e84545;
    text-decoration: none;
}

.aiqb-sidebar-recent {
    background: #1a1a2e;
    border: 1px solid #2a2a3a;
    border-radius: 4px;
    overflow: hidden;
}
.aiqb-sidebar-title {
    background: #111827;
    color: #e84545;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 16px;
    border-bottom: 1px solid #2a2a3a;
}

.aiqb-sidebar-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 16px;
    border-bottom: 1px solid #222233;
}

.aiqb-sidebar-item:last-child {
    border-bottom: none;
}

.aiqb-sidebar-num {
    color: #e84545;
    font-size: 14px;
    font-weight: 800;
    flex-shrink: 0;
    line-height: 1.4;
}
.aiqb-sidebar-item a {
    color: #cccccc;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
}

.aiqb-sidebar-item a:hover {
    color: #e84545;
}

/* =============================================
   PAGINATION
   ============================================= */
.nav-links {
    padding: 24px 0;
    display: flex;
    gap: 8px;
}

.page-numbers {
    color: #aaaaaa;
    padding: 6px 12px;
    border: 1px solid #333;
    border-radius: 3px;
    text-decoration: none;
    font-size: 13px;
}
.page-numbers.current {
    background: #e84545;
    color: #fff;
    border-color: #e84545;
}

/* Kill category title banner — all possible selectors */
.mg-archieve-title,
.mg-archive-title,
.archive-title,
.page-header,
.entry-header,
h1.page-title,
.page-title,
.cat-title,
.taxonomy-description,
.archive-description {
    display: none !important;
}

/* AI Quick Briefs — darker, bold, same hover/active behavior as categories */
.aiqb-cat-nav ul li a.aiqb-logo {
    color: #888888 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: 0.6px !important;
    padding: 0 28px !important;
    text-transform: uppercase !important;
    background-color: transparent !important;
}

.aiqb-cat-nav ul li a.aiqb-logo:hover {
    color: #ffffff !important;
    background-color: #e84545 !important;
}

.aiqb-cat-nav ul li a.aiqb-logo.active {
    color: #ffffff !important;
    background-color: #e84545 !important;
}

/* Sticky header */
.aiqb-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
}

/* More breathing room — padding inside nav bar */
.aiqb-cat-nav ul li a {
    padding: 0 15px !important;
    height: 64px !important;
}

/* AI Quick Briefs — same font as cats, slightly darker, bold */
.aiqb-cat-nav ul li a.aiqb-logo {
    color: #888888 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: 0.6px !important;
    padding: 0 28px !important;
    background-color: transparent !important;
}
.aiqb-cat-nav ul li a.aiqb-logo:hover {
    color: #ffffff !important;
    background-color: #e84545 !important;
}
.aiqb-cat-nav ul li a.aiqb-logo.active {
    color: #ffffff !important;
    background-color: #e84545 !important;
}
/* Hide ALL category/archive title banners */
.mg-archieve-title, .mg-archive-title, .archive-title,
.page-header, .entry-header, h1.page-title, .page-title,
.cat-title, .taxonomy-description, .archive-description,
.mg-sec-title {
    display: none !important;
}

/* Hide any full-width Newsup featured sections */
.mg-featured-post, .mg-featured-slider, .mg-top-slider,
.mg-slider-section, .mg-banner, .mg-hero {
    display: none !important;
}
/* Load More button */
#aiqb-load-more-wrap {
    text-align: center;
    padding: 32px 0;
}

#aiqb-load-more {
    background-color: transparent;
    color: #aaaaaa;
    border: 1px solid #444;
    padding: 10px 32px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.15s;
}

#aiqb-load-more:hover {
    background-color: #e84545;
    color: #ffffff;
    border-color: #e84545;
}

#aiqb-load-more:disabled {
    opacity: 0.5;
    cursor: default;
}

/* Kill red featured bar above articles */
.aiqb-featured-sponsor,
.mg-featured-post,
.mg-featured-area,
.mg-featured-slider,
.mg-top-featured,
.mg-top-slider,
.mg-slider-section,
.mg-banner-section,
[class*="featured-wrap"],
[class*="slider-wrap"] {
    display: none !important;
}

/* Kill white grid/card sections from Newsup homepage widgets */
.mg-posts-sec,
.mg-posts-sec-wrap,
.mg-posts-grid,
.mg-posts-list,
.mg-tab-content-wrap,
.mg-home-sec,
.mg-latest-posts,
.mg-trending-posts,
.mg-popular-posts,
.owl-carousel,
.owl-stage-outer {
    display: none !important;
}

/* === FOOTER === */
.aiqb-footer {
    background-color: #0d0d1a;
    border-top: 3px solid #e84545;
    margin-top: 48px;
}

.aiqb-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 24px 32px;
    gap: 48px;
}

.aiqb-footer-brand {
    flex: 1;
    max-width: 480px;
}

.aiqb-footer-logo {
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.aiqb-footer-desc {
    color: #888888;
    font-size: 13px;
    line-height: 1.7;
    margin: 0;
}

.aiqb-footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    flex-shrink: 0;
    padding-top: 4px;
}

.aiqb-footer-links a {
    color: #aaaaaa;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    text-decoration: none;
    transition: color 0.15s;
    white-space: nowrap;
}
.aiqb-footer-links a:hover {
    color: #e84545;
}

.aiqb-footer-bottom {
    border-top: 1px solid #1a1a2a;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.aiqb-footer-social {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
}

.aiqb-footer-social a {
    color: #666666;
    display: flex;
    align-items: center;
    transition: color 0.15s;
}

.aiqb-footer-social a:hover {
    color: #e84545 !important;
}
.aiqb-footer-social svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.aiqb-footer-bottom p {
    color: #555555;
    font-size: 11px;
    margin: 0;
    line-height: 1.6;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* =============================================
   MOBILE RESPONSIVE
   ============================================= */

@media (max-width: 768px) {

    body {
        background-color: #0f0f1a !important;
    }

    .aiqb-article-row {
        background-color: transparent !important;
    }
    .aiqb-article-title a {
        color: #ffffff !important;
    }

    .aiqb-article-cat a {
        color: #e84545 !important;
    }

    /* Header */
    .aiqb-header {
        overflow: hidden !important;
        position: relative !important;
    }
    .aiqb-header::before,
    .aiqb-header::after {
        display: none !important;
    }

    .aiqb-cat-nav {
        display: flex !important;
        overflow: hidden !important;
    }

    .aiqb-cat-nav ul {
        display: flex !important;
        flex-wrap: nowrap !important;
        height: 44px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .aiqb-cat-nav ul::-webkit-scrollbar {
        display: none;
    }

    /* Logo — sticky left */
    .aiqb-cat-nav ul li:first-child {
        position: sticky !important;
        left: 0 !important;
        z-index: 10 !important;
        background-color: #1a1a2e !important;
        flex-shrink: 0 !important;
        margin-right: 0 !important;
    }

    .aiqb-cat-nav ul li a {
        padding: 0 12px !important;
        font-size: 9px !important;
        white-space: nowrap !important;
        height: 44px !important;
        color: #aaaaaa !important;
    }

    .aiqb-cat-nav ul li a:hover,
    .aiqb-cat-nav ul li a.active {
        color: #ffffff !important;
        background-color: #e84545 !important;
    }

    .aiqb-cat-nav ul li a.aiqb-logo {
        font-size: 11px !important;
        font-weight: 800 !important;
        padding: 0 14px !important;
        color: #888888 !important;
        border-right: 1px solid #2a2a3a;
        flex-shrink: 0;
    }

    .aiqb-cat-nav ul li a.aiqb-logo:hover,
    .aiqb-cat-nav ul li a.aiqb-logo.active {
        color: #ffffff !important;
        background-color: #e84545 !important;
    }
    /* Scroll indicator — fixed left arrow */
    .aiqb-scroll-indicator {
        position: fixed !important;
        left: 0px !important;
        top: 0 !important;
        z-index: 1001 !important;
        background-color: transparent !important;
        padding: 0 6px !important;
        color: #e84545 !important;
        font-size: 12px !important;
        font-weight: 900 !important;
        pointer-events: none !important;
        height: 44px !important;
        line-height: 44px !important;
        white-space: nowrap !important;
        display: flex !important;
        align-items: center !important;
        flex-shrink: 0 !important;
    }

    /* Right fade/arrow hint */
    .aiqb-cat-nav::after {
        content: '›';
        position: sticky;
        right: 0;
        flex-shrink: 0;
        height: 44px;
        width: 20px;
        line-height: 44px;
        text-align: center;
        color: #e84545;
        font-size: 16px;
        font-weight: 900;
        pointer-events: none;
        background: linear-gradient(to left, #1a1a2e 60%, transparent);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Hide featured placeholder + sidebar on mobile */
    .aiqb-featured-box,
    .aiqb-right-sidebar {
        display: none !important;
    }

    .aiqb-content-wrap {
        flex-direction: column !important;
        padding: 0 !important;
        gap: 0 !important;
    }

    .aiqb-main {
        width: 100% !important;
    }

    .aiqb-article-row {
        flex-direction: column !important;
        gap: 0 !important;
        padding: 0 0 24px 0 !important;
        border-bottom: 1px solid #1a1a2a !important;
    }

    .aiqb-article-thumb {
        width: 100% !important;
        height: 220px !important;
        border-radius: 0 !important;
    }

    .aiqb-article-content {
        padding: 12px 16px 0 !important;
    }
    .aiqb-article-title {
        font-size: 20px !important;
        line-height: 1.25 !important;
        margin: 6px 0 8px !important;
    }

    .aiqb-article-excerpt {
        font-size: 14px !important;
        color: #888888 !important;
    }

    .aiqb-article-meta {
        font-size: 12px !important;
        color: #555555 !important;
        display: block;
        margin-top: 6px;
    }

    .aiqb-article-cat a {
        font-size: 11px !important;
        letter-spacing: 1px !important;
    }

    #aiqb-load-more-wrap {
        padding: 24px 16px !important;
    }

    .aiqb-footer-inner {
        flex-direction: column !important;
        gap: 28px !important;
        padding: 32px 16px 24px !important;
    }

    .aiqb-footer-desc {
        max-width: 100% !important;
        color: #888888 !important;
    }

    .aiqb-footer-bottom {
        padding: 16px !important;
    }

    .aiqb-footer-bottom p {
        color: #888888 !important;
    }
    .aiqb-footer-col ul li a {
        color: #888888 !important;
    }

    .aiqb-footer-col ul li a:hover {
        color: #e84545 !important;
    }
}

@media (max-width: 480px) {
    .aiqb-article-thumb {
        height: 180px !important;
    }
    .aiqb-article-title {
        font-size: 18px !important;
    }
}
	
/* Footer layout fix + background override */
.aiqb-footer {
    background-color: #12121f !important;
}

.aiqb-footer-inner {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
}
.aiqb-footer-brand {
    flex: 1 !important;
    max-width: 480px !important;
}

.aiqb-footer-links {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 12px !important;
    flex-shrink: 0 !important;
    padding-top: 4px !important;
}
.aiqb-footer-links a {
    color: #aaaaaa !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.4px !important;
    text-decoration: none !important;
    display: block !important;
    white-space: nowrap !important;
}

.aiqb-footer-links a:hover {
    color: #e84545 !important;
}

/* Hide author on all posts */
.mg-blog-author,
.auth,
.author-name,
.entry-author,
.byline,
.post-author {
    display: none !important;
}

/* Visited article links — dimmed so users know they've read it */
.aiqb-article-title a:visited {
    color: #888888;
}

.aiqb-sidebar-item a:visited {
    color: #666666;
}

/* Fallback placeholder for missing article images */
.aiqb-article-thumb img {
    background-image: url('https://aiquickbriefs.com/wp-content/uploads/2026/04/Post-No-Image-Placeholder.jpg');
    background-size: cover;
    background-position: center;
}

/* Static pages */
.aiqb-page-wrap {
    max-width: 860px !important;
    margin: 48px auto !important;
    padding: 0 24px 48px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.aiqb-page-content {
    background-color: #13131f !important;
    border: 1px solid #2a2a3a !important;
    border-radius: 4px !important;
    padding: 40px 48px !important;
}

.aiqb-page-title {
    color: #ffffff !important;
    font-size: 28px !important;
    font-weight: 800 !important;
    margin-bottom: 24px !important;
    padding-bottom: 16px !important;
    border-bottom: 2px solid #e84545 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}
.aiqb-page-body,
.aiqb-page-body p {
    color: #cccccc !important;
    font-size: 15px !important;
    line-height: 1.8 !important;
    margin-bottom: 16px !important;
}

.aiqb-page-body strong {
    color: #ffffff !important;
    font-weight: 700 !important;
}

.aiqb-page-body a {
    color: #e84545 !important;
    text-decoration: none !important;
}

.aiqb-page-body a:hover {
    text-decoration: underline !important;
}