/*
Theme Name: QnA News Child
Theme URI: https://qnanews.com
Description: Custom news theme for QnA News - professional, fast, auto-updating
Author: QnA News Team
Author URI: https://qnanews.com
Template: generatepress
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: qnanews-child
*/

/* ══════════════════════════════════════════
   QNA NEWS CUSTOM THEME
   Professional News Website Styles
   ══════════════════════════════════════════ */

/* ── ROOT VARIABLES ── */
:root {
    --qna-red: #c41e3a;
    --qna-red-dark: #a01629;
    --qna-black: #1a1a1a;
    --qna-text: #2d2d2d;
    --qna-text-light: #666666;
    --qna-white: #ffffff;
    --qna-border: #d4d4d4;
    --qna-bg-light: #f9f9f9;
    
    --font-heading: 'Crimson Pro', Georgia, serif;
    --font-body: 'IBM Plex Sans', Arial, sans-serif;
}

/* ── GLOBAL STYLES ── */
body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.8;
    color: var(--qna-text);
    background: var(--qna-white);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--qna-black);
}

h1 { font-size: 48px; letter-spacing: -1px; }
h2 { font-size: 36px; letter-spacing: -0.5px; text-transform: uppercase; }
h3 { font-size: 22px; }
h4 { font-size: 20px; }

a {
    color: var(--qna-red);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--qna-red-dark);
}

/* ── BREAKING NEWS TICKER ── */
.breaking-ticker {
    background: var(--qna-red);
    color: var(--qna-white);
    padding: 12px 20px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    overflow: hidden;
    white-space: nowrap;
}

/* Marquee animation for mobile */
@media (max-width: 768px) {
    .breaking-ticker {
        animation: scroll-ticker 20s linear infinite;
    }
    
    @keyframes scroll-ticker {
        0% { text-indent: 100%; }
        100% { text-indent: -100%; }
    }
}

/* ── SITE HEADER ── */
.site-header {
    border-bottom: 4px double var(--qna-black);
    padding: 25px 0 20px;
    text-align: center;
}

.site-title {
    font-family: var(--font-heading);
    font-size: 64px;
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1;
    margin: 0;
}

.site-title a {
    color: var(--qna-black);
}

.site-description {
    font-family: var(--font-body);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--qna-text-light);
    margin-top: 8px;
    border-top: 1px solid var(--qna-border);
    padding-top: 6px;
}

/* ── NAVIGATION ── */
.main-navigation,
.qnanews-nav,
body .main-navigation,
body.home .main-navigation {
    background: var(--qna-black) !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.main-navigation ul,
.qnanews-menu,
body .main-navigation ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
}

.main-navigation li,
.qnanews-menu li,
body .main-navigation li {
    margin: 0 !important;
}

.main-navigation a,
.qnanews-menu a,
body .main-navigation a {
    display: block !important;
    padding: 18px 28px !important;
    color: var(--qna-white) !important;
    font-family: var(--font-body) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    border-bottom: 3px solid transparent !important;
    transition: all 0.3s ease !important;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.qnanews-menu a:hover,
.qnanews-menu .current-menu-item > a,
body .main-navigation a:hover,
body .main-navigation .current-menu-item > a {
    color: var(--qna-red) !important;
    border-bottom-color: var(--qna-red) !important;
}

/* ── HERO SECTION ── */
.hero-section {
    padding: 30px 0 40px !important;
    border-bottom: 3px solid var(--qna-black);
}

.hero-section .container {
    display: grid;
    grid-template-columns: 65% 35%;
    gap: 30px;
}

.featured-article img {
    width: 100%;
    height: 500px;
    object-fit: contain;  /* Show full image */
    background: #f9f9f9;  /* Light gray background */
    padding: 15px;        /* Breathing room */
    border-radius: 4px;
    margin-bottom: 20px;
}

.trending-sidebar {
    background: #f9f9f9 !important;
    padding: 30px !important;
    border-radius: 8px !important;
    height: 100% !important;
}

.trending-sidebar h2 {
    font-size: 24px;
    margin-bottom: 25px;
}

.trending-item {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 15px;
    padding: 20px !important;
    margin-bottom: 20px !important;
    background: white !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
    border-bottom: none !important;
}

.trending-item:last-child {
    margin-bottom: 0 !important;
}

.trending-number {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 800;
    color: var(--qna-red);
    opacity: 0.3;
    line-height: 1;
}

.trending-item h3 {
    font-size: 18px;
    margin: 0 0 8px 0;
}

.trending-item h3 a {
    color: var(--qna-black);
}

.trending-item h3 a:hover {
    color: var(--qna-red);
}

.trending-meta {
    font-size: 12px;
    color: var(--qna-text-light);
}

/* ── CATEGORY SECTIONS ── */
.category-section {
    padding: 40px 0 0 !important;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 4px solid var(--qna-black);
    padding-bottom: 20px;
    margin-bottom: 25px !important;
}

.section-header h2 {
    margin: 0;
}

.view-all-link {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    color: var(--qna-red);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.view-all-link:hover {
    color: var(--qna-black);
    transform: translateX(5px);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    margin-bottom: 40px !important;
}

/* ── ARTICLE CARDS ── */
.article-card {
    background: var(--qna-white);
}

.article-card img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: contain !important;  /* Show full image - no cropping */
    background: #f9f9f9 !important;  /* Light gray background for letterboxing */
    padding: 10px !important;        /* Breathing room around image */
    border-radius: 4px;
    margin-bottom: 15px;
    transition: transform 0.5s ease;
}

.article-card:hover img {
    transform: scale(1.02);  /* Reduced from 1.05 for contain */
}

/* Force contain on all article images - override any parent theme */
.articles-grid .article-card img,
.article-grid .article-card img,
article.article-card img,
.content-card img {
    object-fit: contain !important;
    background: #f9f9f9 !important;
    padding: 10px !important;
}

.article-category-badge {
    display: inline-block;
    background: var(--qna-red);
    color: var(--qna-white);
    padding: 6px 14px;
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 3px;
    margin-bottom: 12px;
}

.article-card h3 {
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
}

.article-card h3 a {
    color: var(--qna-black);
}

.article-card h3 a:hover {
    color: var(--qna-red);
}

.article-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: var(--qna-text);
    margin-bottom: 12px;
}

.article-meta {
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--qna-text-light);
}

.article-meta span {
    margin-right: 10px;
}

/* ── NEWSLETTER SECTION ── */
.newsletter-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px;
    border-radius: 8px;
    margin: 60px auto;
    max-width: 1400px;
    text-align: center;
}

.newsletter-section h2 {
    color: var(--qna-white);
    font-size: 42px;
    margin-bottom: 15px;
}

.newsletter-section p {
    color: var(--qna-white);
    font-size: 18px;
    margin-bottom: 30px;
}

.newsletter-form {
    display: flex;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-form input[type="email"] {
    flex: 1;
    min-width: 250px;
    padding: 16px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-family: var(--font-body);
}

.newsletter-form button {
    padding: 16px 40px;
    background: var(--qna-black);
    color: var(--qna-white);
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    font-family: var(--font-body);
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: #000000;
}

/* ── CATEGORY BROWSE CARDS ── */
.category-browse {
    padding: 60px 0 80px;
}

.category-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.category-card {
    background: var(--qna-bg-light);
    border: 2px solid var(--qna-border);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.category-card:hover {
    border-color: var(--qna-red);
    background: var(--qna-white);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.category-card i {
    font-size: 48px;
    color: var(--qna-red);
    margin-bottom: 20px;
    display: block;
}

.category-card h3 {
    font-size: 24px;
    margin: 0 0 10px 0;
}

.category-card p {
    font-size: 14px;
    color: var(--qna-text-light);
    line-height: 1.6;
}

.category-card a {
    color: var(--qna-black);
}

/* ── CATEGORY ARCHIVE PAGES ── */
/* Hide GeneratePress empty content container */
body.category .site-content > .content-area,
body.category .inside-article,
body.category .entry-content:empty {
    display: none !important;
}

.category-header {
    background: #ffffff !important;
    padding: 0 !important;
    margin: 0 !important;
}

.category-title-wrapper {
    text-align: center !important;
    padding: 0 !important;
    margin: 0 !important;
}

.category-title {
    color: #000000 !important;
    font-size: 48px !important;
    font-weight: 800 !important;
    margin: 0 0 15px 0 !important;
    letter-spacing: -1px !important;
    text-transform: uppercase !important;
    padding: 0 !important;
}

.category-description {
    color: #333333 !important;
    font-size: 18px !important;
    max-width: 600px !important;
    margin: 0 auto 40px !important;
    line-height: 1.6 !important;
    padding: 0 !important;
}

.category-archive {
    padding: 0 0 60px;
}

.category-archive .articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    margin-bottom: 60px;
}

/* Pagination */
.pagination-wrapper {
    text-align: center;
    padding: 40px 0;
    border-top: 2px solid var(--qna-border);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 12px 20px;
    background: var(--qna-white);
    border: 2px solid var(--qna-border);
    color: var(--qna-text);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--qna-red);
    border-color: var(--qna-red);
    color: var(--qna-white);
}

.pagination .prev,
.pagination .next {
    font-weight: 700;
}

/* No posts message */
.no-posts {
    text-align: center;
    padding: 80px 20px;
}

.no-posts h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.no-posts a {
    display: inline-block;
    padding: 15px 30px;
    background: var(--qna-red);
    color: var(--qna-white);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    margin-top: 20px;
}

.no-posts a:hover {
    background: var(--qna-red-dark);
}

/* ── SINGLE POST ── */
.qnanews-article {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.article-title {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.single-article-meta {
    border-top: 1px solid var(--qna-border);
    border-bottom: 1px solid var(--qna-border);
    padding: 15px 0;
    margin-bottom: 30px;
    font-size: 13px;
    color: var(--qna-text-light);
}

.single-article-meta span {
    margin-right: 20px;
}

.featured-image {
    margin-bottom: 30px;
}

.featured-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.key-takeaways {
    background: #e8f0eb;
    border-left: 4px solid var(--qna-red);
    padding: 20px 25px;
    margin: 30px 0;
    border-radius: 2px;
}

.key-takeaways h3 {
    margin-top: 0;
    color: var(--qna-red);
}

.article-content {
    font-size: 18px;
    line-height: 1.8;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 30px 0;
}

.author-bio {
    background: var(--qna-bg-light);
    padding: 30px;
    border-radius: 8px;
    margin: 40px 0;
}

.author-bio h4 {
    margin-top: 0;
}

.related-articles {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 3px solid var(--qna-black);
}

.related-articles h3 {
    font-size: 28px;
    margin-bottom: 30px;
}

/* ── FOOTER ── */
.site-footer {
    background: var(--qna-black);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 30px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-widget h3 {
    color: var(--qna-white);
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
}

.footer-widget a {
    color: rgba(255,255,255,0.8);
}

.footer-widget a:hover {
    color: var(--qna-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

/* ── MOBILE RESPONSIVE ── */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px !important;
    }
    
    .hero-section .container {
        grid-template-columns: 1fr;
    }
    
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px !important;
    }
    
    .category-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Container - Reduce padding on mobile */
    .container {
        padding: 0 15px !important;
        max-width: 100% !important;
    }
    
    /* Site Header - Compact */
    .site-header {
        padding: 20px 0 15px !important;
    }
    
    .site-title {
        font-size: 36px !important;
        margin-bottom: 5px !important;
    }
    
    .site-description {
        font-size: 10px !important;
    }
    
    /* Navigation - Hamburger menu styling */
    .main-navigation,
    .qnanews-nav {
        padding: 0 !important;
    }
    
    .main-navigation ul,
    .qnanews-menu {
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
    
    .main-navigation a,
    .qnanews-menu a {
        padding: 12px 15px !important;
        font-size: 12px !important;
    }
    
    /* Breaking Ticker - Scrolling */
    .breaking-ticker {
        padding: 10px 15px !important;
        font-size: 11px !important;
        text-align: left !important;
    }
    
    /* Hero Section - Stack layout */
    .hero-section {
        padding: 15px 0 20px !important;
    }
    
    .hero-section .container {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    /* Featured Article */
    .featured-article {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    
    .featured-article img {
        height: 250px !important;
        padding: 8px !important;
        margin-bottom: 12px !important;
    }
    
    .featured-article .article-category-badge {
        margin-bottom: 8px !important;
    }
    
    .featured-article h1 {
        font-size: 24px !important;
        line-height: 1.3 !important;
        margin-bottom: 10px !important;
    }
    
    .featured-article .article-excerpt {
        font-size: 15px !important;
        margin-bottom: 10px !important;
        line-height: 1.5 !important;
    }
    
    .featured-article .article-meta {
        font-size: 11px !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        margin: 0 !important;
        padding: 0 !important;
        min-height: 0 !important;
        height: auto !important;
    }
    
    .featured-article .article-meta span {
        margin: 0 !important;
        padding: 0 !important;
        display: inline-block !important;
    }
    
    /* Trending Sidebar - Remove excess padding */
    .trending-sidebar {
        padding: 15px !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
    
    .trending-sidebar h2 {
        font-size: 18px !important;
        margin-bottom: 12px !important;
    }
    
    .trending-item {
        padding: 12px !important;
        margin-bottom: 12px !important;
        grid-template-columns: 45px 1fr !important;
        gap: 10px !important;
    }
    
    .trending-number {
        font-size: 24px !important;
    }
    
    .trending-item h3 {
        font-size: 14px !important;
        line-height: 1.4 !important;
    }
    
    .trending-meta {
        font-size: 10px !important;
    }
    
    /* Category Sections - Compact spacing */
    .category-section {
        padding: 25px 0 0 !important;
    }
    
    .section-header {
        margin-bottom: 20px !important;
        padding-bottom: 15px !important;
    }
    
    .section-header h2 {
        font-size: 22px !important;
        gap: 10px !important;
    }
    
    .view-all-link {
        font-size: 12px !important;
    }
    
    /* Articles Grid - Single column */
    .articles-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        margin-bottom: 30px !important;
    }
    
    /* Article Cards - Compact */
    .article-card {
        margin-bottom: 0 !important;
    }
    
    .article-card img {
        height: 200px !important;
        padding: 8px !important;
    }
    
    .article-card h3 {
        font-size: 18px !important;
        line-height: 1.4 !important;
        margin-bottom: 10px !important;
    }
    
    .article-card .article-excerpt {
        font-size: 14px !important;
        line-height: 1.5 !important;
    }
    
    .article-category-badge {
        font-size: 9px !important;
        padding: 5px 12px !important;
        margin-bottom: 10px !important;
    }
    
    /* Category Header - Mobile */
    .category-header {
        padding: 20px 0 !important;
        margin-bottom: 25px !important;
    }
    
    .category-title {
        font-size: 32px !important;
        margin-bottom: 10px !important;
    }
    
    .category-description {
        font-size: 15px !important;
    }
    
    /* Category Archive */
    .category-archive {
        padding: 0 !important;
    }
    
    /* Newsletter Section */
    .newsletter-section {
        padding: 30px 15px !important;
        margin: 30px 0 !important;
    }
    
    .newsletter-section h2 {
        font-size: 26px !important;
    }
    
    .newsletter-section p {
        font-size: 14px !important;
    }
    
    .newsletter-form {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .newsletter-form input,
    .newsletter-form button {
        width: 100% !important;
        font-size: 14px !important;
    }
    
    /* Footer - Single column */
    .site-footer {
        padding: 40px 0 20px !important;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }
    
    .footer-bottom {
        padding-top: 20px !important;
        font-size: 12px !important;
    }
    
    /* Pagination */
    .pagination-wrapper {
        padding: 30px 0 !important;
    }
    
    .pagination .page-numbers {
        padding: 10px 15px !important;
        font-size: 14px !important;
    }
}

/* ── SINGLE POST ── */
/* Breadcrumbs */
.breadcrumbs {
    background: #f9f9f9;
    padding: 15px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--qna-border);
}

.breadcrumbs a {
    color: var(--qna-text);
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: var(--qna-red);
}

.breadcrumbs .separator {
    margin: 0 10px;
    color: var(--qna-text-light);
}

.breadcrumbs .current {
    color: var(--qna-text-light);
}

/* Container Narrow for Article */
.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Article Header */
.article-header {
    padding: 40px 0 30px;
    border-bottom: 1px solid var(--qna-border);
}

.article-header .article-category-badge {
    margin-bottom: 20px;
}

.article-title {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
    color: var(--qna-black);
}

/* Meta Bar */
.article-meta-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--qna-text-light);
}

.meta-label {
    color: var(--qna-text-light);
}

.meta-value {
    color: var(--qna-text);
    font-weight: 600;
}

.meta-separator {
    margin: 0 8px;
    color: var(--qna-text-light);
}

/* Featured Image */
.article-featured-image {
    padding: 40px 0;
    background: #f9f9f9;
}

.article-featured-image .featured-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    background: white;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.image-caption {
    font-size: 13px;
    color: var(--qna-text-light);
    font-style: italic;
    margin-top: 15px;
    text-align: center;
}

/* Article Content */
.article-content {
    padding: 50px 0;
}

/* Regular paragraphs */
.article-content p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 25px;
    color: var(--qna-text);
}

/* Main section headers (h2) */
.article-content h2 {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 800;
    color: var(--qna-black);
    margin: 60px 0 30px 0;
    padding-bottom: 15px;
    border-bottom: 4px solid var(--qna-red);
    line-height: 1.3;
}

/* Question headers (h3) - Enhanced by JavaScript */
.article-content h3 {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    color: var(--qna-black);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--qna-red);
    line-height: 1.4;
}

/* Question number badge (added by JavaScript) */
.qa-number {
    display: inline-block;
    background: var(--qna-red);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    text-align: center;
    line-height: 32px;
    font-weight: 700;
    font-size: 16px;
    margin-right: 12px;
    vertical-align: middle;
}

/* Lists */
.article-content ul,
.article-content ol {
    margin-bottom: 25px;
    padding-left: 0;
}

.article-content li {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 12px;
}

/* Custom bullet points */
.article-content ul {
    list-style: none;
}

.article-content ul li {
    position: relative;
    padding-left: 30px;
}

.article-content ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--qna-red);
    font-weight: 700;
    font-size: 20px;
}

.article-content strong {
    font-weight: 700;
    color: var(--qna-black);
}

.article-content a {
    color: var(--qna-red);
    text-decoration: underline;
}

.article-content a:hover {
    color: #a31529;
}

.article-content blockquote {
    border-left: 4px solid var(--qna-red);
    padding-left: 25px;
    margin: 30px 0;
    font-style: italic;
    color: var(--qna-text-light);
}

/* Key Takeaway Boxes (auto-detected by JavaScript) */
.article-content .key-takeaway,
.article-content p.key-takeaway {
    background: #fff9f9 !important;
    border-left: 4px solid var(--qna-red);
    padding: 20px 25px !important;
    margin: 25px 0 !important;
    font-size: 17px;
    line-height: 1.7;
    color: var(--qna-text);
    border-radius: 4px;
}

.article-content .key-takeaway strong {
    color: var(--qna-red);
    font-weight: 700;
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #f0f0f0;
    z-index: 9999;
}

.reading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--qna-red), #ff6b8a);
    width: 0%;
    transition: width 0.1s ease;
}

/* ── QNA SECTION BLOCK (Frontend) ── */
.qna-section {
    margin: 40px 0;
}

.qna-block {
    padding: 35px 20px;
    margin: 0 -20px;
}

.qna-block.qna-odd {
    background: #ffffff;
}

.qna-block.qna-even {
    background: #fafafa;
}

.qna-question {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    color: var(--qna-black);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--qna-red);
    line-height: 1.4;
}

.qna-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--qna-red);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 32px;
    font-weight: 700;
    font-size: 16px;
    margin-right: 12px;
    vertical-align: middle;
}

.qna-answer {
    font-size: 18px;
    line-height: 1.8;
    color: var(--qna-text);
    margin-bottom: 20px;
}

.qna-answer strong {
    font-weight: 700;
    color: var(--qna-black);
}

.qna-bullets {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.qna-bullets li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    font-size: 18px;
    line-height: 1.8;
    color: var(--qna-text);
}

.qna-bullets li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--qna-red);
    font-weight: 700;
    font-size: 20px;
}

.qna-bullets li strong {
    font-weight: 700;
    color: var(--qna-black);
}

.qna-key-takeaway {
    background: #fff9f9;
    border-left: 4px solid var(--qna-red);
    padding: 20px 25px;
    margin: 25px 0;
    font-size: 17px;
    line-height: 1.7;
    color: var(--qna-text);
    border-radius: 4px;
}

.qna-key-takeaway strong {
    color: var(--qna-red);
    font-weight: 700;
}

/* Mobile Responsive for QnA Blocks */
@media (max-width: 768px) {
    .qna-block {
        padding: 25px 15px;
        margin: 0 -15px;
    }
    
    .qna-question {
        font-size: 22px;
    }
    
    .qna-answer,
    .qna-bullets li {
        font-size: 17px;
    }
    
    .qna-key-takeaway {
        font-size: 16px;
        padding: 15px 20px;
    }
}

/* Article Footer */
.article-footer {
    padding: 40px 0 50px;
    border-top: 1px solid var(--qna-border);
}

/* Tags */
.article-tags {
    margin-bottom: 30px;
    font-size: 14px;
}

.tags-label {
    font-weight: 700;
    margin-right: 10px;
    color: var(--qna-text);
}

.article-tags a {
    display: inline-block;
    background: #f0f0f0;
    padding: 6px 14px;
    margin-right: 8px;
    margin-bottom: 8px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--qna-text);
    transition: all 0.3s ease;
}

.article-tags a:hover {
    background: var(--qna-red);
    color: white;
}

/* Share Buttons */
.article-share {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.share-label {
    font-weight: 700;
    color: var(--qna-text);
    margin-right: 5px;
}

.share-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
}

.share-twitter {
    background: #1DA1F2;
}

.share-twitter:hover {
    background: #0d8bd9;
}

.share-facebook {
    background: #1877F2;
}

.share-facebook:hover {
    background: #0c63d4;
}

.share-linkedin {
    background: #0A66C2;
}

.share-linkedin:hover {
    background: #084d92;
}

/* Related Articles */
.related-articles {
    background: #f9f9f9;
    padding: 60px 0;
}

.related-title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 35px;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Mobile Responsive for Single Post */
@media (max-width: 768px) {
    .container-narrow {
        padding: 0 15px;
    }
    
    .article-header {
        padding: 25px 0 20px;
    }
    
    .article-title {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .article-meta-bar {
        font-size: 12px;
    }
    
    .article-featured-image {
        padding: 25px 0;
    }
    
    .article-featured-image .featured-img {
        padding: 10px;
    }
    
    .article-content {
        padding: 30px 0;
    }
    
    .article-content p {
        font-size: 16px;
        line-height: 1.7;
    }
    
    .article-content h2 {
        font-size: 24px;
        margin-top: 30px;
    }
    
    .article-content h3 {
        font-size: 20px;
    }
    
    .article-content li {
        font-size: 16px;
    }
    
    .related-title {
        font-size: 28px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .article-share {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .share-btn {
        width: 100%;
        text-align: center;
    }
}

/* ── UTILITIES ── */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-30 { margin-top: 30px; }
.mb-30 { margin-bottom: 30px; }

/* ── SMOOTH SCROLLING ── */
html {
    scroll-behavior: smooth;
}

/* ── FOCUS STATES ── */
a:focus,
button:focus,
input:focus {
    outline: 2px solid var(--qna-red);
    outline-offset: 2px;
}
