/* ============================================
   TalkGrove Blog - Paramag Magazine Theme
   Inspired by TemplatesYard Paramag
   ============================================ */

:root {
    --primary: #1877f2;
    --primary-dark: #0d5dbf;
    --primary-light: #e7f0fd;
    --bg: #f5f6f8;
    --bg-card: #ffffff;
    --bg-elevated: #f0f2f5;
    --text: #222222;
    --text-muted: #666666;
    --text-light: #999999;
    --border: #e5e5e5;
    --border-dark: #d0d0d0;
    --accent: #1877f2;
    --accent-warm: #f39c12;
    --danger: #e74c3c;
    --success: #27ae60;
    --link: #1877f2;
    --header-bg: #ffffff;
    --footer-bg: #ffffff;
    --nav-bg: #1877f2;
    --radius: 4px;
    --radius-sm: 3px;
    --btn-radius: 4px;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.12);
    --card-shadow: 0 2px 8px rgba(0,0,0,0.08);
    --card-image-ratio: 16/10;
    --font: 'Roboto', Arial, sans-serif;
    --font-display: 'Roboto Slab', Georgia, serif;
    --fs-base: 14px;
    --heading-scale: 1;
    --container: 1170px;
    --nav-height: 48px;
    --promo-bg: #0f172a;
    --promo-text: #ffffff;
}

[data-theme="dark"] {
    --bg: #1a1a2e;
    --bg-card: #22223a;
    --bg-elevated: #2a2a45;
    --text: #e8e8e8;
    --text-muted: #aaa;
    --text-light: #888;
    --border: #3a3a55;
    --border-dark: #4a4a65;
    --primary-light: #1a2a4a;
    /* ThemeHelper injects light --header-bg/--footer-bg on :root; override so bars match dark surfaces */
    --header-bg: #22223a;
    --footer-bg: #22223a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    width: 100%;
    overflow-x: clip;
}
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: var(--fs-base, 14px);
    width: 100%;
    min-width: 0;
    overflow-x: clip;
}
a { color: inherit; text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary); }
.post-content a, .article-body a, .entry-content a, .static-page a, .review-content a { color: var(--link); }
.post-content a:hover, .article-body a:hover, .entry-content a:hover, .static-page a:hover, .review-content a:hover { color: var(--primary-dark); }
img { max-width: 100%; display: block; height: auto; }

/*
 * Centered Paramag column.
 * Use max-width + auto side margins (not only width:100%) so the shell
 * always sits in the middle of wide viewports.
 */
#main-content {
    display: block;
    width: 100%;
    min-width: 0;
}
.container,
.main-wrapper,
.topbar-inner,
.header-middle-inner,
.main-nav-inner,
.breaking-inner,
.footer-widgets,
.footer-bar-inner,
.footer-ad-wrap,
.footer-brand-block,
.home-footer-ad {
    width: 100%;
    max-width: var(--container, 1170px);
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
}
.container {
    padding: 0 15px;
}
.footer-brand-block {
    max-width: 640px;
}

/* ===== TOP BAR ===== */
.topbar { background: var(--header-bg, var(--bg-card)); border-bottom: 1px solid var(--border); font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 36px; }
.topbar-menu { display: flex; gap: 20px; }
.topbar-menu a { color: var(--text-muted); }
.topbar-menu a:hover { color: var(--primary); }
.topbar-social { display: flex; gap: 12px; }
.topbar-social a { color: var(--text-muted); font-size: 12px; font-weight: 600; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--bg-elevated); }
.topbar-social a:hover { background: var(--primary); color: #fff; }

/* ===== HEADER MIDDLE ===== */
.header-middle { background: var(--header-bg, var(--bg-card)); padding: 20px 0; border-bottom: 1px solid var(--border); }
.header-middle-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo--talkgrove { display: flex; align-items: center; flex-shrink: 0; }
.logo, .logo--talkgrove, .footer-logo-link { background: transparent !important; box-shadow: none !important; }
.logo { display: flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.logo-text { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; line-height: 1; }
.logo-img { height: 64px; width: auto; max-width: 340px; object-fit: contain; object-position: left center; display: block; }
.logo-img, .nav-home-icon, .footer-logo-icon { background: transparent !important; border: none !important; box-shadow: none !important; }
.logo-theme-dark { display: none !important; }
[data-theme="dark"] .logo-theme-light { display: none !important; }
[data-theme="dark"] .logo-theme-dark { display: block !important; }
[data-theme="dark"] .logo-text { color: #fff; }
@media (max-width: 768px) { .logo-img { height: 48px; max-width: 260px; } .logo-text { font-size: 22px; } }
.header-ad-slot { flex: 1; max-width: 728px; min-width: 0; height: 90px; background: var(--bg-elevated); border: 1px dashed var(--border-dark); display: flex; align-items: center; justify-content: center; color: var(--text-light); font-size: 13px; margin-left: auto; overflow: hidden; }
.header-ad-slot:has(.ad-slot-filled),
.header-ad-slot:has(.header-ad-item.ad-slot-filled) { background: transparent; border-color: transparent; }
.header-ad-item, .header-ad-slot.ad-ph-header { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }

/* ===== MAIN NAV ===== */
.main-nav-bar { background: var(--nav-bg, var(--primary)); position: sticky; top: 0; z-index: 200; box-shadow: 0 2px 6px rgba(0,0,0,0.15); }
.main-nav-inner { display: flex; align-items: center; height: var(--nav-height); gap: 0; }
.nav-home { color: #fff; padding: 0; width: 52px; height: var(--nav-height); display: inline-flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.1); flex-shrink: 0; line-height: 0; }
.nav-home-icon { width: 24px; height: 24px; max-width: 24px; max-height: 24px; object-fit: contain; object-position: center center; display: block; margin: 0; flex-shrink: 0; transform: translateY(0.5px); }
.nav-home-text { font-size: 18px; line-height: 1; color: #fff; }
.nav-home:hover { background: rgba(0,0,0,0.2); color: #fff; }
.nav { display: flex; align-items: center; flex: 1; }
.nav > a, .nav-item > a { color: #fff; padding: 0 16px; height: var(--nav-height); display: flex; align-items: center; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; white-space: nowrap; }
.nav > a:hover, .nav-item > a:hover, .nav-item:hover > a { background: rgba(0,0,0,0.15); color: #fff; }
.header-actions { display: flex; align-items: center; margin-left: auto; }
.search-toggle, .theme-toggle, .mobile-toggle { background: none; border: none; color: #fff; cursor: pointer; padding: 0 12px; height: var(--nav-height); display: flex; align-items: center; }
.search-toggle:hover, .theme-toggle:hover { background: rgba(0,0,0,0.15); }
.nav-user-btn { color: #fff; padding: 0 14px; height: var(--nav-height); display: flex; align-items: center; font-size: 13px; font-weight: 600; }
.nav-user-btn:hover { background: rgba(0,0,0,0.15); color: #fff; }
.nav-cta-btn {
    display: inline-flex;
    align-items: center;
    height: 32px;
    margin: 0 8px;
    padding: 0 14px;
    border-radius: 4px;
    background: #fff;
    color: var(--nav-bg, var(--primary));
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}
.nav-cta-btn:hover { background: #f0f4ff; color: var(--nav-bg, var(--primary)); }
.nav-custom-link,
.nav-header-text {
    color: #fff;
    padding: 0 12px;
    height: var(--nav-height);
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
.nav-custom-link:hover { background: rgba(0,0,0,0.15); color: #fff; }
.header-spacer {
    flex: 1 1 12px;
    min-width: 12px;
    display: inline-block;
}
.nav-header-html,
.header-middle-html,
.topbar-html,
.header-below-html {
    font-size: 13px;
    line-height: 1.4;
}
.topbar-custom-link,
.header-middle-link { font-size: 13px; }
.footer-spacer { width: 100%; }
.footer-widget--custom-link { display: flex; align-items: flex-start; }
.footer-widget--html,
.footer-text-body { font-size: 13px; line-height: 1.55; color: var(--text-muted); }
.home-layout-spacer { width: 100%; }
.home-layout-divider {
    border: 0;
    border-top: 1px solid var(--border, #e5e7eb);
    margin: 18px 0;
}
.mobile-toggle { display: none; flex-direction: column; gap: 4px; }
.mobile-toggle span { display: block; width: 20px; height: 2px; background: #fff; }

/* Mega Menu */
.nav-item { position: relative; }
.nav-item.has-mega > a::after { content: ' ▾'; font-size: 10px; }
.mega-menu { position: absolute; top: 100%; left: 0; background: var(--bg-card); border: 1px solid var(--border); box-shadow: var(--shadow-lg); display: none; grid-template-columns: repeat(3, 200px); gap: 0; z-index: 300; min-width: 600px; }
.mega-menu--wide { min-width: 700px; }
.nav-item.has-mega:hover .mega-menu { display: grid; }
.mega-col { padding: 16px 20px; border-right: 1px solid var(--border); }
.mega-col:last-child { border-right: none; }
.mega-col h4 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-light); margin-bottom: 10px; font-weight: 700; }
.mega-col a { display: block; padding: 5px 0; color: var(--text); font-size: 13px; text-transform: none; font-weight: 400; height: auto; }
.mega-col a:hover { color: var(--primary); background: none; }
.mega-col a span { color: var(--text-light); font-size: 11px; }

/* Search Overlay */
.search-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 500; display: flex; align-items: flex-start; justify-content: center; padding-top: 100px; }
.search-overlay[hidden] { display: none; }
.search-box { background: var(--bg-card); border-radius: var(--radius); padding: 24px; width: 90%; max-width: 560px; box-shadow: var(--shadow-lg); }
.search-box form { display: flex; gap: 10px; }
.search-box input { flex: 1; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 15px; background: var(--bg); color: var(--text); }
.search-suggestion-item { display: block; padding: 10px 0; border-bottom: 1px solid var(--border); color: var(--text); font-size: 14px; }
.search-suggestion-item span { color: var(--text-light); font-size: 12px; margin-left: 8px; }

/* Breaking Bar */
.breaking-bar { background: var(--danger); color: #fff; }
.breaking-inner { display: flex; align-items: center; gap: 12px; padding: 8px 0; font-size: 13px; overflow: hidden; }
.breaking-label { background: #fff; color: var(--danger); padding: 2px 10px; border-radius: 2px; font-weight: 700; font-size: 11px; text-transform: uppercase; flex-shrink: 0; }
.breaking-bar a { color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.breaking-bar a:hover { color: #ffe; }

/* Reading Progress */
.reading-progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--primary); z-index: 999; width: 0; }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; border-radius: var(--btn-radius, var(--radius)); font-weight: 600; font-size: 13px; border: none; cursor: pointer; transition: all 0.2s; font-family: var(--font); }
.btn-primary { background: var(--primary); color: #fff; border: 2px solid transparent; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
body.btn-style-outline .btn-primary,
body.btn-style-outline .read-more-btn,
body.btn-style-outline .nav-cta-btn {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
body.btn-style-outline .btn-primary:hover,
body.btn-style-outline .read-more-btn:hover {
    background: var(--primary);
    color: #fff;
}
body.btn-style-outline .nav-cta-btn {
    color: #fff;
    border-color: #fff;
    background: transparent;
}
body.btn-style-outline .nav-cta-btn:hover {
    background: #fff;
    color: var(--nav-bg, var(--primary));
}
.btn-secondary { background: var(--bg-elevated); color: var(--text); border: 1px solid var(--border); }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }

/* ===== HOT WIDGET / FEATURED GRID ===== */
.hot-widget { padding: 20px 0; background: var(--bg-card); }
.home-brand-intro { text-align: center; max-width: 820px; margin: 0 auto 18px; padding: 4px 12px 8px; }
.home-brand-h1 { font-family: var(--font-display); font-size: clamp(calc(1.35rem * var(--heading-scale, 1)), calc(2.4vw * var(--heading-scale, 1)), calc(1.85rem * var(--heading-scale, 1))); line-height: 1.25; margin: 0 0 8px; color: var(--text); font-weight: 700; }
.home-brand-dek { margin: 0; color: var(--text-muted); font-size: 0.98rem; line-height: 1.55; }
.featured-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 4px; min-height: 420px; }
.featured-main { min-height: 420px; }
.featured-side { display: flex; flex-direction: column; gap: 4px; }
.featured-side-top { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; flex: 1; }
.featured-side-top[data-count="1"] { grid-template-columns: 1fr; }
.featured-side-bottom { flex: 1; }

/* Overlay Cards */
.overlay-card { position: relative; overflow: hidden; border-radius: var(--radius); height: 100%; background: #1a2332; }
.overlay-card-link { display: block; position: relative; height: 100%; min-height: 200px; }
.overlay-card img { width: 100%; height: 100%; object-fit: cover; object-position: center; min-height: 200px; transition: transform 0.4s; display: block; }
.overlay-card:hover img { transform: scale(1.05); }
.overlay-card-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px; background: linear-gradient(transparent, rgba(0,0,0,0.85)); color: #fff; }
.overlay-card--large .overlay-card-link { min-height: 420px; }
.overlay-card--large .overlay-card-content { padding: 28px; }
.overlay-card--large h2 { font-size: calc(22px * var(--heading-scale, 1)); font-family: var(--font-display); line-height: 1.3; margin: 8px 0; }
.overlay-card--small .overlay-card-link { min-height: 200px; }
.overlay-card--small h2 { font-size: 14px; line-height: 1.3; margin: 6px 0 0; }
.overlay-card--wide .overlay-card-link { min-height: 200px; }
.overlay-card--wide h2 { font-size: 15px; line-height: 1.3; margin: 6px 0 0; }
.overlay-card--medium .overlay-card-link { min-height: 240px; }
.overlay-card--medium h2 { font-size: 16px; }
.overlay-excerpt { font-size: 13px; opacity: 0.85; margin: 6px 0; line-height: 1.5; }
.overlay-meta { font-size: 12px; opacity: 0.75; display: flex; gap: 12px; margin-top: 6px; }

/* Category Badge */
.category { display: inline-block; background: var(--primary); color: #fff; padding: 2px 8px; border-radius: 2px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; }
.overlay-card .category { background: var(--primary); }

/* Ad Banners */
.content-ad-banner, .content-ad-inline, .ad-ph-banner { background: var(--bg-elevated); border: 1px dashed var(--border-dark); display: flex; align-items: center; justify-content: center; color: var(--text-light); font-size: 13px; margin: 20px 0; width: 100%; }
.content-ad-banner, .content-ad-inline, .ad-ph-banner { height: 90px; min-height: 90px; max-height: 90px; }
.ad-ph-header { height: 90px; min-height: 90px; max-height: 90px; margin: 0; background: transparent; border: none; }
.ad-ph-sidebar, .widget-ad .ad-placeholder { background: var(--bg-elevated); border: 1px dashed var(--border-dark); display: flex; align-items: center; justify-content: center; color: var(--text-light); font-size: 13px; height: 250px; width: 100%; margin: 0; }
.ad-placeholder { background: var(--bg-elevated); border: 1px dashed var(--border-dark); display: flex; align-items: center; justify-content: center; color: var(--text-light); font-size: 13px; }

/* ===== MAIN WRAPPER ===== */
.main-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    padding: 24px 15px;
    align-items: start;
}
.main-content { min-width: 0; }
body.sidebar-left .main-wrapper { grid-template-columns: 300px 1fr; }
body.sidebar-left .paramag-sidebar { order: -1; }
body.sidebar-none .main-wrapper { grid-template-columns: 1fr; }
body.sidebar-none .paramag-sidebar { display: none; }

/* Section Headers */
.paramag-section-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--primary); padding-bottom: 8px; margin-bottom: 16px; }
.section-title { font-size: calc(16px * var(--heading-scale, 1)); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text); font-family: var(--font); }
.section-link { font-size: 12px; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: 0.3px; white-space: nowrap; }
.content-block { margin-bottom: 32px; }

/* Mini Carousel */
.mini-carousel { display: grid; grid-template-columns: repeat(var(--mini-cols, 4), 1fr); gap: 12px; }
.mini-post-item { display: block; }
.mini-post-item img { width: 100%; aspect-ratio: var(--card-image-ratio, 16/10); object-fit: cover; border-radius: var(--radius); margin-bottom: 8px; }
.mini-post-item h4 { font-size: 13px; line-height: 1.4; font-weight: 500; color: var(--text); }
.mini-post-item:hover h4 { color: var(--primary); }

/* Category Block — 1 featured (span 2 rows) + up to 4 mini cards */
.category-block-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; grid-template-rows: auto auto; gap: 12px; }
.category-block-grid .overlay-card--medium { grid-row: span 2; }
.category-block-grid .mini-post-item img { aspect-ratio: 16/11; }
/* Fewer posts than slots: collapse so no empty white cell */
.category-block-grid[data-count="1"] { grid-template-columns: 1fr; }
.category-block-grid[data-count="1"] .overlay-card--medium { grid-row: auto; }
.category-block-grid[data-count="2"] { grid-template-columns: 1.5fr 1fr; }
.category-block-grid[data-count="2"] .overlay-card--medium { grid-row: auto; }
.category-block-grid[data-count="3"] { grid-template-columns: 1.5fr 1fr 1fr; }
.category-block-grid[data-count="3"] .overlay-card--medium { grid-row: auto; }
.category-block-grid[data-count="4"] .mini-post-item:last-child { grid-column: span 2; }

/* Trending List */
.trending-list { display: flex; flex-direction: column; gap: 0; }
.trending-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.trending-row:last-child { border-bottom: none; }
.trend-num { font-size: 24px; font-weight: 700; color: var(--border-dark); min-width: 32px; font-family: var(--font-display); }
.trend-thumb { width: 80px; height: 60px; flex-shrink: 0; border-radius: var(--radius); overflow: hidden; }
.trend-thumb img { width: 100%; height: 100%; object-fit: cover; }
.trend-info h3 { font-size: 14px; font-weight: 600; line-height: 1.4; margin: 4px 0; }
.trend-meta { font-size: 12px; color: var(--text-light); }

/* Blog List */
.blog-list { display: flex; flex-direction: column; gap: 0; }
.blog-list-item { display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.blog-list-item:last-child { border-bottom: none; }
.blog-list-thumb { width: 240px; flex-shrink: 0; border-radius: var(--radius); overflow: hidden; }
.blog-list-thumb img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform 0.3s; }
.blog-list-item:hover .blog-list-thumb img { transform: scale(1.03); }
.blog-list-body { flex: 1; }
.blog-list-body h3 { font-size: calc(18px * var(--heading-scale, 1)); font-family: var(--font-display); margin: 6px 0 8px; line-height: 1.3; }
.blog-list-body h3 a:hover { color: var(--primary); }
.blog-list-body p { color: var(--text-muted); font-size: 13px; line-height: 1.6; margin-bottom: 10px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--text-light); margin-bottom: 10px; }
.read-more-btn { display: inline-block; background: var(--primary); color: #fff; padding: 6px 16px; border-radius: var(--btn-radius, var(--radius)); font-size: 12px; font-weight: 600; text-transform: uppercase; border: 2px solid transparent; }
.read-more-btn:hover { background: var(--primary-dark); color: #fff; }

/* Post Cards Grid */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.post-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow 0.2s; box-shadow: var(--card-shadow, var(--shadow)); }
.post-card img { aspect-ratio: var(--card-image-ratio, 16/10); object-fit: cover; width: 100%; }
.post-card:hover { box-shadow: var(--shadow-lg); }
.post-image { aspect-ratio: 16/10; overflow: hidden; }
.post-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.post-card:hover .post-image img { transform: scale(1.04); }
.post-body { padding: 14px; }
.post-body h3 { font-size: 14px; font-weight: 600; line-height: 1.4; margin: 6px 0; }
.post-body p { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Deals & Products */
.deals-row, .products-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.deal-card-paramag, .product-card-paramag { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; position: relative; box-shadow: var(--card-shadow, var(--shadow)); }
.deal-tag { position: absolute; top: 10px; right: 10px; background: var(--danger); color: #fff; padding: 2px 8px; border-radius: 2px; font-size: 10px; font-weight: 700; }
.deal-card-paramag h4, .product-card-paramag h4 { font-size: 14px; margin-bottom: 8px; }
.deal-prices, .product-price { margin: 10px 0; }
.deal-prices strong, .product-price strong { font-size: 18px; color: var(--primary); }
.deal-prices s, .product-price s { color: var(--text-light); margin-left: 6px; }
.product-rating { color: var(--accent-warm); font-size: 14px; margin: 4px 0; }

/* Categories Row */
.categories-row { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-pill { display: flex; align-items: center; gap: 8px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 16px; transition: border-color 0.2s; }
.cat-pill:hover { border-color: var(--primary); }
.cat-pill strong { font-size: 13px; }
.cat-pill em { font-size: 11px; color: var(--text-light); font-style: normal; }

/* Testimonials */
.testimonials-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.testimonial-paramag { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.testimonial-stars { color: var(--accent-warm); margin-bottom: 10px; }
.testimonial-paramag p { font-size: 13px; color: var(--text-muted); font-style: italic; margin-bottom: 12px; line-height: 1.6; }
.testimonial-paramag strong { display: block; font-size: 14px; }
.testimonial-paramag span { font-size: 12px; color: var(--text-light); }

/* Newsletter */
.newsletter-paramag { background: var(--primary); color: #fff; text-align: center; padding: 40px 24px; border-radius: var(--radius); margin: 32px 0; }
.newsletter-paramag h2 { font-size: 22px; font-family: var(--font-display); margin-bottom: 8px; }
.newsletter-paramag p { opacity: 0.85; margin-bottom: 20px; font-size: 14px; }
.newsletter-form-inline { display: flex; gap: 10px; max-width: 480px; margin: 0 auto; }
.newsletter-form-inline input { flex: 1; padding: 12px 16px; border: none; border-radius: var(--radius); font-size: 14px; }
.pagination-center { text-align: center; margin-top: 24px; }

/* ===== SIDEBAR ===== */
.paramag-sidebar { display: flex; flex-direction: column; gap: 0; }
.widget { background: var(--bg-card); border: 1px solid var(--border); margin-bottom: 24px; }
.widget-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 12px 16px; border-bottom: 2px solid var(--primary); color: var(--text); }
.widget > p { padding: 0 16px; font-size: 13px; color: var(--text-muted); margin-top: 12px; }

/* Social Plugin */
.social-plugin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 12px; }
.social-plugin-grid a { padding: 8px 10px; color: #fff; font-size: 12px; font-weight: 600; border-radius: var(--radius-sm); text-align: center; }
.sp-facebook { background: #3b5998; }
.sp-twitter { background: #1da1f2; }
.sp-rss { background: #f26522; }
.sp-pinterest { background: #bd081c; }
.sp-instagram { background: #e1306c; }
.sp-youtube { background: #ff0000; }
.sp-linkedin { background: #0077b5; }
.sp-snapchat { background: #fffc00; color: #333 !important; }
.sp-whatsapp { background: #25D366; }
.sp-telegram { background: #0088cc; }
.sp-tiktok { background: #111; }
.sp-custom { background: #64748b; }
.footer-ad-banner, .footer-ad-wrap .content-ad-banner { margin: 0 auto 16px; }
.header-ad-item img, .content-ad-banner img, .content-ad-inline img, .ad-image { max-width: 100%; max-height: 100%; object-fit: contain; }
.ad-image-link { display: inline-flex; align-items: center; justify-content: center; max-width: 100%; max-height: 100%; }
.widget-ad .ad-ph-sidebar,
.widget-ad .ad-slot-filled { width: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.widget-ad .ad-slot-filled { min-height: 0; background: transparent; border: none; }
.widget-ad .ad-image { max-width: 100%; height: auto; }
.sidebar-ad { margin-top: 16px; display: flex; justify-content: center; overflow: hidden; }
.sidebar-ad img, .sidebar-ad .ad-image { max-width: 100%; height: auto; }
.footer-ad-banner .ad-image, .content-ad-banner .ad-image, .content-ad-inline .ad-image { max-height: 90px; }

/* Sidebar Newsletter */
.sidebar-newsletter-form { padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.sidebar-newsletter-form input { padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 13px; background: var(--bg); color: var(--text); }

/* Popular List */
.popular-list { padding: 8px 0; }
.list-post-item { display: flex; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--border); align-items: flex-start; }
.list-post-item:last-child { border-bottom: none; }
.list-post-thumb { width: 70px; height: 55px; flex-shrink: 0; border-radius: var(--radius-sm); overflow: hidden; }
.list-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.list-post-info h4 { font-size: 13px; font-weight: 500; line-height: 1.4; margin-bottom: 4px; }
.list-post-info span { font-size: 11px; color: var(--text-light); }
.list-post-item:hover h4 { color: var(--primary); }

/* Labels */
.label-list { list-style: none; padding: 8px 0; }
.label-list li a { display: flex; justify-content: space-between; padding: 7px 16px; font-size: 13px; color: var(--text); border-bottom: 1px solid var(--border); }
.label-list li:last-child a { border-bottom: none; }
.label-list li a:hover { color: var(--primary); background: var(--primary-light); }
.label-list li a span { color: var(--text-light); font-size: 12px; }

/* Sidebar Deals */
.sidebar-deal-item { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.sidebar-deal-item:last-child { border-bottom: none; }
.sidebar-deal-item strong { display: block; font-size: 13px; margin-bottom: 4px; }
.deal-price-sm { color: var(--primary); font-weight: 700; font-size: 15px; display: block; margin-bottom: 8px; }

/* ===== FOOTER ===== */
.paramag-footer { background: var(--footer-bg, var(--bg-card)); border-top: 3px solid var(--primary); margin-top: 32px; }
.footer-widgets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 32px 15px; }
.footer-widget .widget-title { border-bottom: 2px solid var(--primary); padding-bottom: 8px; margin-bottom: 14px; font-size: 13px; text-transform: uppercase; font-weight: 700; }
.footer-menu { list-style: none; }
.footer-menu li a { display: block; padding: 5px 0; font-size: 13px; color: var(--text-muted); }
.footer-menu li a:hover { color: var(--primary); }
.footer-brand-block { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 8px 15px 36px; max-width: 640px; margin: 0 auto; width: 100%; }
.footer-logo-link { display: inline-flex; align-items: center; justify-content: center; align-self: center; line-height: 0; margin: 0 auto 16px; text-decoration: none; padding-bottom: 14px; border-bottom: 2px solid var(--primary); }
.footer-logo-icon { width: auto; max-width: 300px; height: 88px; object-fit: contain; object-position: center; margin: 0 auto; display: block; }
.footer-logo-text { font-family: var(--font-display); font-size: 32px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); line-height: 1.2; }
[data-theme="dark"] .footer-logo-icon.logo-theme-dark { display: block !important; }
[data-theme="dark"] .footer-logo-text { color: #fff; }
.footer-tagline { font-size: 12px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--text-light); margin: 0 0 12px; }
.footer-about-text { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin: 0 0 18px; max-width: 480px; }
.footer-social { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.footer-social a { width: 32px; height: 32px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.footer-bar { background: var(--bg-elevated); border-top: 1px solid var(--border); }
.footer-bar-inner { display: flex; justify-content: space-between; align-items: center; padding: 14px 15px; font-size: 13px; color: var(--text-muted); }
.footer-bar-inner a { color: var(--primary); }
.footer-bar-links { display: flex; gap: 16px; }
.footer-bar-links a { color: var(--text-muted); font-size: 12px; }
.disclosure-bar { background: var(--bg-elevated); padding: 8px; text-align: center; font-size: 11px; color: var(--text-light); border-top: 1px solid var(--border); }

/* ===== SINGLE POST ===== */
.breadcrumb { margin: 16px 0; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; font-size: 12px; color: var(--text-light); }
.breadcrumb li:not(:last-child)::after { content: '›'; margin-left: 6px; }
.breadcrumb a { color: var(--primary); }
.single-post { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin: 16px 0 32px; }
.post-header h1 { font-size: 28px; font-family: var(--font-display); line-height: 1.3; margin: 10px 0; }
.post-hero-image { border-radius: var(--radius); overflow: hidden; margin: 16px 0; }
.social-share { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0; padding: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.share-btn { padding: 6px 12px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; font-size: 12px; color: var(--text); }
.post-layout { display: grid; grid-template-columns: 1fr 260px; gap: 24px; }
.post-content { font-size: 15px; line-height: 1.8; color: var(--text); }
.post-content h2 { font-size: 20px; font-family: var(--font-display); margin: 24px 0 12px; color: var(--text); }
.post-content h3 { font-size: 17px; margin: 20px 0 10px; }
.post-content p { margin-bottom: 16px; }
.post-content ul, .post-content ol { margin: 12px 0 16px 24px; }
.post-content li { margin-bottom: 6px; }
.post-sidebar { position: sticky; top: 60px; align-self: start; }
.toc-box { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.toc-box h4 { font-size: 12px; text-transform: uppercase; font-weight: 700; margin-bottom: 10px; color: var(--text-muted); }
#tocNav a { display: block; padding: 4px 0 4px 10px; font-size: 13px; color: var(--text-muted); border-left: 2px solid var(--border); }
#tocNav a:hover { color: var(--primary); border-left-color: var(--primary); }
.toc-h3 { padding-left: 20px !important; }
.disclosure-box { background: #fffbea; border: 1px solid #f0d080; border-radius: var(--radius); padding: 14px; margin: 16px 0; font-size: 13px; }
.cta-box { background: var(--primary-light); border: 1px solid var(--primary); border-radius: var(--radius); padding: 24px; text-align: center; margin: 24px 0; }
.cta-box h3 { margin-bottom: 8px; font-family: var(--font-display); }
.cta-disclosure { font-size: 13px; line-height: 1.5; color: var(--text-muted); margin: 0 0 12px; }
.buy-box .cta-disclosure { text-align: left; }
.related-posts { margin: 28px 0 12px; }
.related-posts h3 { font-family: var(--font-display); margin-bottom: 14px; }
.post-tags { margin: 16px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tag-pill { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 100px; font-size: 12px; }
.tag-pill:hover { border-color: var(--primary); color: var(--primary); }
.post-nav { display: flex; justify-content: space-between; gap: 16px; margin: 24px 0; padding-top: 16px; border-top: 1px solid var(--border); }
.post-nav a { font-size: 13px; color: var(--text-muted); max-width: 45%; }
.related-posts { margin-top: 32px; }
.related-posts h3 { font-size: 16px; text-transform: uppercase; font-weight: 700; margin-bottom: 16px; border-bottom: 2px solid var(--primary); padding-bottom: 8px; }
.related-posts-grid { margin-top: 8px; }
.related-posts .post-card h3 { font-size: 1rem; text-transform: none; border: 0; padding: 0; margin: 0 0 6px; }

/* Review / Guide / Comparison Pages */
.review-page, .guide-page, .comparison-page { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin: 16px 0 32px; }
.review-header h1, .guide-page h1, .comparison-page h1 { font-size: 26px; font-family: var(--font-display); margin-bottom: 12px; }
.review-rating-overall { display: flex; align-items: center; gap: 12px; margin: 12px 0; }
.rating-score { font-size: 36px; font-weight: 700; color: var(--accent-warm); }
.rating-stars { color: var(--accent-warm); font-size: 18px; }
.trust-badge { background: var(--success); color: #fff; padding: 3px 10px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 600; }
.review-summary-box, .buy-box, .verdict-box, .winner-box, .expert-opinion { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin: 20px 0; }
.pros-cons-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0; }
.callout-box { padding: 16px; border-radius: var(--radius); border-left: 4px solid var(--primary); background: var(--bg-elevated); margin: 16px 0; }
.callout-success { border-left-color: var(--success); }
.callout-danger { border-left-color: var(--danger); }
.specs-table table, .comparison-table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 13px; }
.specs-table td, .comparison-table td, .comparison-table th { padding: 10px 14px; border: 1px solid var(--border); }
.comparison-table th { background: var(--primary); color: #fff; font-weight: 600; }
.winner-badge { background: var(--accent-warm); color: #333; padding: 3px 10px; border-radius: var(--radius-sm); font-weight: 700; font-size: 12px; }
.picks-grid, .compare-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin: 16px 0; }
.pick-card, .compare-product-card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; text-align: center; }
.pick-badge { background: var(--primary); color: #fff; padding: 2px 8px; border-radius: 2px; font-size: 11px; }
.comparison-table-wrap { overflow-x: auto; margin: 16px 0; }

/* FAQ */
.faq-accordion { display: flex; flex-direction: column; gap: 4px; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.faq-item summary { padding: 14px 16px; cursor: pointer; font-weight: 600; font-size: 14px; list-style: none; }
.faq-item summary::after { content: '+'; float: right; color: var(--primary); font-size: 18px; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 0 16px 14px; color: var(--text-muted); font-size: 13px; line-height: 1.6; }

/* Comments */
.comments-section { margin-top: 32px; padding-top: 24px; border-top: 2px solid var(--border); }
.comments-section h3 { font-size: 16px; font-weight: 700; text-transform: uppercase; margin-bottom: 16px; }
.comment-form textarea, .comment-form input { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); font-family: var(--font); font-size: 13px; margin-bottom: 10px; background: var(--bg); color: var(--text); }
.comment-item { padding: 12px 0; border-bottom: 1px solid var(--border); }
.comment-date { color: var(--text-light); font-size: 11px; margin-left: 8px; }

/* Auth Pages */
.auth-page { display: flex; justify-content: center; padding: 48px 15px; }
.auth-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; width: 100%; max-width: 400px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 22px; font-family: var(--font-display); margin-bottom: 20px; text-align: center; }
.auth-footer { text-align: center; margin-top: 16px; font-size: 13px; color: var(--text-muted); }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; margin-bottom: 5px; font-size: 13px; font-weight: 500; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; background: var(--bg); color: var(--text); font-family: var(--font); }
.form-group textarea { min-height: 100px; resize: vertical; }
.form-group textarea.content-editor { min-height: 280px; font-family: monospace; font-size: 13px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.alert { padding: 10px 14px; border-radius: var(--radius); margin-bottom: 14px; font-size: 13px; }
.alert-success { background: #eafaf1; border: 1px solid var(--success); color: var(--success); }
.alert-error { background: #fdf0ef; border: 1px solid var(--danger); color: var(--danger); }

/* Page Header */
.page-header { padding: 24px 0 16px; border-bottom: 2px solid var(--primary); margin-bottom: 20px; }
.page-header h1 { font-size: 24px; font-family: var(--font-display); }
.page-header p { color: var(--text-muted); margin-top: 6px; font-size: 14px; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 4px; margin: 24px 0; flex-wrap: wrap; }
.page-btn { padding: 6px 12px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-size: 13px; }
.page-btn.active, .page-btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Search Page */
.search-form-large { display: flex; gap: 10px; margin-bottom: 20px; }
.search-form-large input { flex: 1; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 15px; background: var(--bg-card); color: var(--text); }
.search-results-count { color: var(--text-muted); margin-bottom: 16px; font-size: 14px; }
.empty-state { text-align: center; padding: 48px; color: var(--text-muted); }

/* Coupons */
.coupons-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.coupon-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.coupon-store { font-size: 11px; text-transform: uppercase; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.coupon-code { display: flex; align-items: center; justify-content: space-between; background: var(--bg-elevated); border: 2px dashed var(--primary); border-radius: var(--radius); padding: 10px 14px; margin: 12px 0; font-weight: 700; font-family: monospace; font-size: 15px; }
.copy-coupon-btn { background: var(--primary); color: #fff; border: none; padding: 4px 12px; border-radius: var(--radius-sm); cursor: pointer; font-size: 12px; }

/* Dashboard */
.dashboard-page h1 { font-size: 22px; margin-bottom: 20px; }
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.dash-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.dash-card h3 { font-size: 14px; text-transform: uppercase; font-weight: 700; margin-bottom: 12px; border-bottom: 2px solid var(--primary); padding-bottom: 8px; }
.dash-card a { display: block; padding: 6px 0; color: var(--primary); font-size: 13px; }

/* Static Page */
.static-page { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; margin: 16px 0 32px; max-width: 800px; }
.static-page h1 { font-size: 24px; font-family: var(--font-display); margin-bottom: 16px; }
.static-content p { color: var(--text-muted); line-height: 1.8; margin-bottom: 12px; font-size: 14px; }

/* Error Page */
.error-page { text-align: center; padding: 80px 20px; }
.error-page h1 { font-size: 80px; color: var(--primary); font-weight: 700; }
.error-page h2 { font-size: 22px; margin: 12px 0; }

/* Author Profile / Archive */
.author-archive { padding-bottom: 48px; }
.author-profile {
    text-align: center;
    padding: 40px 28px 32px;
    background:
        radial-gradient(600px 200px at 50% 0%, rgba(24, 119, 242, 0.10), transparent 70%),
        var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 28px;
}
.author-avatar-lg {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 36px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    object-fit: cover;
}
.author-avatar-lg--photo { display: block; border: 3px solid rgba(24, 119, 242, 0.2); }
.author-kicker {
    margin: 0 0 6px;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted, #64748b);
    font-weight: 600;
}
.author-profile h1 { margin: 0 0 12px; font-size: clamp(1.6rem, 3vw, 2rem); }
.author-bio {
    max-width: 640px;
    margin: 0 auto 16px;
    color: var(--text-muted, #475569);
    line-height: 1.6;
}
.author-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 14px;
}
.author-social a {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}
.author-social a:hover { text-decoration: underline; }
.author-count {
    display: inline-block;
    font-size: 13px;
    color: var(--text-muted, #64748b);
    font-weight: 600;
}
.author-empty { text-align: center; color: var(--text-muted, #64748b); padding: 24px 0; }

/* Back to Top */
.back-to-top { position: fixed; bottom: 20px; right: 20px; width: 40px; height: 40px; border-radius: var(--radius); background: var(--primary); color: #fff; border: none; cursor: pointer; opacity: 0; visibility: hidden; transition: all 0.3s; z-index: 99; font-size: 16px; box-shadow: var(--shadow); }
.back-to-top.visible { opacity: 1; visibility: visible; }

/* Live chat floating buttons (Theme → Live Chat) */
.tg-livechat {
    position: fixed;
    bottom: 72px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: var(--tg-livechat-z, 9990);
    pointer-events: none;
}
.tg-livechat--right { right: 20px; align-items: flex-end; }
.tg-livechat--left { left: 20px; align-items: flex-start; }
.tg-livechat-btn {
    pointer-events: auto;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}
.tg-livechat-btn:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
    color: #fff;
}
.tg-livechat-wa { background: #25D366; }
.tg-livechat-tg { background: #229ED9; }
@media (max-width: 768px) {
    .tg-livechat--hide-mobile { display: none !important; }
    .tg-livechat { bottom: 64px; }
    .tg-livechat-btn { width: 48px; height: 48px; }
}

/* Newsletter Popup */
.newsletter-popup { position: fixed; inset: 0; z-index: 600; display: flex; align-items: center; justify-content: center; }
.newsletter-popup[hidden] { display: none; }
.popup-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.popup-content { position: relative; background: var(--bg-card); border-radius: var(--radius); padding: 32px; max-width: 400px; text-align: center; z-index: 1; box-shadow: var(--shadow-lg); }
.popup-close { position: absolute; top: 10px; right: 14px; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--text-muted); }

/* Syntax Highlight */
.syntax-highlight { background: #f4f4f4; border-radius: var(--radius); padding: 16px; overflow-x: auto; margin: 14px 0; font-size: 13px; }
[data-theme="dark"] .syntax-highlight { background: #2a2a45; }

/* Image Loading */
img:not(.loaded) { background: var(--bg-elevated); }

/* Theme Toggle Icons */
.theme-icon-light, [data-theme="light"] .theme-icon-dark { display: none; }
[data-theme="light"] .theme-icon-light, [data-theme="dark"] .theme-icon-dark { display: inline; }

/* Offer Timer */
.offer-timer { font-size: 12px; color: var(--danger); font-weight: 600; margin-top: 6px; }

/* Admin overrides kept minimal */
html.admin-html {
    scroll-behavior: auto;
    overflow-x: visible;
}
.admin-body { background: var(--bg); overflow-x: visible; }
.admin-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th, .admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; }
.admin-table th { background: var(--bg-elevated); font-size: 11px; text-transform: uppercase; font-weight: 700; color: var(--text-muted); }
.table-actions { display: flex; gap: 6px; }
.table-actions a { padding: 4px 10px; font-size: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-elevated); }
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg); }
.login-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; max-width: 380px; width: 100%; box-shadow: var(--shadow); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .main-wrapper { grid-template-columns: 1fr; }
    .paramag-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    .paramag-sidebar .widget { margin-bottom: 0; }
    .featured-grid { grid-template-columns: 1fr; min-height: auto; }
    .featured-main, .overlay-card--large .overlay-card-link { min-height: 300px; }
    .footer-widgets { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .topbar-menu { display: none; }
    .header-ad-slot { display: none; }
    .nav { display: none; position: absolute; top: var(--nav-height); left: 0; right: 0; background: var(--primary-dark); flex-direction: column; z-index: 300; }
    .nav.open { display: flex; }
    .nav > a, .nav-item > a { height: auto; padding: 12px 16px; width: 100%; }
    .mega-menu { position: static; display: none !important; min-width: auto; grid-template-columns: 1fr; box-shadow: none; border: none; background: rgba(0,0,0,0.2); }
    .nav-item.has-mega:hover .mega-menu { display: none !important; }
    .mobile-toggle { display: flex; }
    .mini-carousel { grid-template-columns: 1fr 1fr; }
    .category-block-grid { grid-template-columns: 1fr; }
    .blog-list-item { flex-direction: column; }
    .blog-list-thumb { width: 100%; }
    .post-layout { grid-template-columns: 1fr; }
    .pros-cons-grid { grid-template-columns: 1fr; }
    .paramag-sidebar { grid-template-columns: 1fr; }
    .footer-widgets { grid-template-columns: 1fr; }
    .footer-brand-block { padding: 8px 12px 28px; }
    .footer-logo-icon { height: 72px; max-width: 260px; }
    .footer-logo-text { font-size: 26px; }
    .footer-logo-link { margin-bottom: 14px; padding-bottom: 12px; }
    .footer-bar-inner { flex-direction: column; gap: 8px; text-align: center; }
    .newsletter-form-inline { flex-direction: column; }
    .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .featured-side-top { grid-template-columns: 1fr; }
    .deals-row, .products-row { grid-template-columns: 1fr; }
    .mini-carousel { grid-template-columns: 1fr; }
}

/* RTL */
[dir="rtl"] .breadcrumb li:not(:last-child)::after { margin-left: 0; margin-right: 6px; }

/* ===== THEME HEADER VARIANTS (Admin → Theme) ===== */
.header-no-topbar .topbar,
.header-style-minimal .topbar { display: none; }
.header-style-compact .header-middle { padding: 10px 0; }
.header-style-compact .logo-img { height: 48px; max-width: 240px; }
.header-style-compact .logo-text { font-size: 22px; }
.header-nav-static .main-nav-bar { position: static; }

/* Promo / announcement bar */
.site-promo-bar {
    background: var(--promo-bg, #0f172a);
    color: var(--promo-text, #fff);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}
.site-promo-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 14px;
    padding: 8px 15px;
}
.site-promo-link {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
}
.site-promo-link:hover { opacity: 0.9; color: inherit; }


