/*
Theme Name: PrichaX Blog
Theme URI: https://prichax.com
Author: PrichaX
Author URI: https://prichax.com
Description: A high-performance, AdSense-optimized WordPress theme for blogs and news websites. Features OAuth social login, auto-sharing, advanced ad management, AI quiz generation, custom login & dashboard pages, dark mode, reading progress bar, Table of Contents, SEO with Schema.org, and more.
Version: 2.1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: prichax-blog
Tags: blog, news, adsense, social-sharing, oauth, dark-mode, responsive, seo-optimized, quiz, dashboard
*/

PrichaX Blog WordPress Theme
Copyright (C) 2024 PrichaX

   CSS CUSTOM PROPERTIES
   ===================================================== */
:root {
  /* Brand Colors */
  --px-primary:       #E8321A;
  --px-primary-dark:  #C02915;
  --px-primary-light: #FF5C45;
  --px-secondary:     #1A1A2E;
  --px-accent:        #F5A623;

  /* Neutrals */
  --px-white:         #FFFFFF;
  --px-off-white:     #F8F9FA;
  --px-light-gray:    #F1F3F5;
  --px-mid-gray:      #CED4DA;
  --px-dark-gray:     #6C757D;
  --px-charcoal:      #343A40;
  --px-black:         #0D0D0D;

  /* Typography */
  --px-font-heading:  'Playfair Display', Georgia, serif;
  --px-font-body:     'Source Serif 4', Georgia, serif;
  --px-font-ui:       'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --px-font-mono:     'JetBrains Mono', monospace;

  /* Font Sizes */
  --px-text-xs:    0.75rem;
  --px-text-sm:    0.875rem;
  --px-text-base:  1rem;
  --px-text-lg:    1.125rem;
  --px-text-xl:    1.25rem;
  --px-text-2xl:   1.5rem;
  --px-text-3xl:   1.875rem;
  --px-text-4xl:   2.25rem;
  --px-text-5xl:   3rem;

  /* Spacing */
  --px-space-1:   0.25rem;
  --px-space-2:   0.5rem;
  --px-space-3:   0.75rem;
  --px-space-4:   1rem;
  --px-space-5:   1.25rem;
  --px-space-6:   1.5rem;
  --px-space-8:   2rem;
  --px-space-10:  2.5rem;
  --px-space-12:  3rem;
  --px-space-16:  4rem;
  --px-space-20:  5rem;
  --px-space-24:  6rem;

  /* Layout */
  --px-container:       1280px;
  --px-content-width:   800px;
  --px-sidebar-width:   320px;

  /* Borders */
  --px-radius-sm:   4px;
  --px-radius:      8px;
  --px-radius-lg:   12px;
  --px-radius-xl:   16px;
  --px-radius-full: 9999px;

  /* Shadows */
  --px-shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --px-shadow:     0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --px-shadow-md:  0 10px 15px rgba(0,0,0,.08), 0 4px 6px rgba(0,0,0,.05);
  --px-shadow-lg:  0 20px 25px rgba(0,0,0,.1), 0 10px 10px rgba(0,0,0,.04);
  --px-shadow-xl:  0 25px 50px rgba(0,0,0,.15);

  /* Transitions */
  --px-transition:      0.2s ease;
  --px-transition-slow: 0.4s ease;

  /* Header */
  --px-header-height: 64px;

  /* Z-Index */
  --px-z-sticky:  100;
  --px-z-overlay: 200;
  --px-z-modal:   300;
  --px-z-toast:   400;

  /* Light mode text/bg */
  --px-bg:            #FFFFFF;
  --px-bg-secondary:  #F8F9FA;
  --px-bg-tertiary:   #F1F3F5;
  --px-text:          #1A1A2E;
  --px-text-secondary:#4A5568;
  --px-text-muted:    #6C757D;
  --px-border:        #E2E8F0;
  --px-border-light:  #F1F3F5;

  /* Ad slot */
  --px-ad-bg:     #F8F9FA;
  --px-ad-border: #E2E8F0;
}

[data-theme="dark"] {
  --px-bg:            #0F0F1A;
  --px-bg-secondary:  #1A1A2E;
  --px-bg-tertiary:   #252540;
  --px-text:          #F0F0F5;
  --px-text-secondary:#A0AEC0;
  --px-text-muted:    #718096;
  --px-border:        #2D2D4E;
  --px-border-light:  #1E1E35;
  --px-shadow-sm:     0 1px 3px rgba(0,0,0,.3), 0 1px 2px rgba(0,0,0,.2);
  --px-shadow:        0 4px 6px rgba(0,0,0,.25), 0 2px 4px rgba(0,0,0,.2);
  --px-shadow-md:     0 10px 15px rgba(0,0,0,.3), 0 4px 6px rgba(0,0,0,.2);
  --px-ad-bg:         #1A1A2E;
  --px-ad-border:     #2D2D4E;
}

   RESET & BASE
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--px-font-body);
  font-size: var(--px-text-base);
  line-height: 1.7;
  color: var(--px-text);
  background-color: var(--px-bg);
  transition: background-color var(--px-transition-slow), color var(--px-transition-slow);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--px-primary); text-decoration: none; transition: color var(--px-transition); }
a:hover { color: var(--px-primary-dark); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

   TYPOGRAPHY
   ===================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--px-font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--px-text);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(1.875rem, 4vw, var(--px-text-5xl)); }
h2 { font-size: clamp(1.5rem, 3vw, var(--px-text-4xl)); }
h3 { font-size: clamp(1.25rem, 2.5vw, var(--px-text-3xl)); }
h4 { font-size: var(--px-text-2xl); }
h5 { font-size: var(--px-text-xl); }
h6 { font-size: var(--px-text-lg); }

p { margin-bottom: var(--px-space-4); color: var(--px-text-secondary); }
p:last-child { margin-bottom: 0; }

blockquote {
  border-left: 4px solid var(--px-primary);
  padding: var(--px-space-4) var(--px-space-6);
  margin: var(--px-space-6) 0;
  background: var(--px-bg-secondary);
  border-radius: 0 var(--px-radius) var(--px-radius) 0;
  font-style: italic;
  font-size: var(--px-text-lg);
  color: var(--px-text);
}

code {
  font-family: var(--px-font-mono);
  font-size: 0.875em;
  background: var(--px-bg-tertiary);
  padding: 0.15em 0.4em;
  border-radius: var(--px-radius-sm);
  color: var(--px-primary);
}

pre {
  background: var(--px-charcoal);
  color: #f8f8f2;
  padding: var(--px-space-5);
  border-radius: var(--px-radius);
  overflow-x: auto;
  margin: var(--px-space-6) 0;
}

pre code { background: none; color: inherit; padding: 0; }

   LAYOUT
   ===================================================== */
.px-container {
  max-width: var(--px-container);
  margin-inline: auto;
  padding-inline: var(--px-space-4);
}

@media (min-width: 768px) {
  .px-container { padding-inline: var(--px-space-8); }
}

.px-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--px-space-8);
}

@media (min-width: 1024px) {
  .px-grid { grid-template-columns: 1fr var(--px-sidebar-width); }
}

.px-main { min-width: 0; }
.px-sidebar { min-width: 0; }

   READING PROGRESS BAR
   ===================================================== */
#px-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--px-primary), var(--px-accent));
  z-index: 9999;
  transition: width 0.1s linear;
  border-radius: 0 var(--px-radius-full) var(--px-radius-full) 0;
}

   HEADER
   ===================================================== */
#px-header {
  position: sticky;
  top: 0;
  z-index: var(--px-z-sticky);
  background: var(--px-bg);
  border-bottom: 1px solid var(--px-border);
  height: var(--px-header-height);
  transition: background var(--px-transition-slow), box-shadow var(--px-transition);
}

#px-header.scrolled { box-shadow: var(--px-shadow-md); }

.px-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--px-space-4);
}

.px-logo a {
  display: flex;
  align-items: center;
  gap: var(--px-space-2);
  color: var(--px-text);
  font-family: var(--px-font-heading);
  font-weight: 800;
  font-size: var(--px-text-2xl);
  letter-spacing: -0.04em;
}

.px-logo a span { color: var(--px-primary); }

.px-logo img { height: 40px; width: auto; }

.px-nav { display: none; }

@media (min-width: 1024px) {
  .px-nav {
    display: flex;
    align-items: center;
    gap: var(--px-space-1);
  }
}

.px-nav a {
  font-family: var(--px-font-ui);
  font-size: var(--px-text-sm);
  font-weight: 600;
  color: var(--px-text);
  padding: var(--px-space-2) var(--px-space-3);
  border-radius: var(--px-radius);
  transition: background var(--px-transition), color var(--px-transition);
  white-space: nowrap;
}

.px-nav a:hover,
.px-nav a.current-menu-item { background: var(--px-bg-secondary); color: var(--px-primary); }

.px-header-actions {
  display: flex;
  align-items: center;
  gap: var(--px-space-2);
}

.px-btn-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--px-radius);
  color: var(--px-text);
  transition: background var(--px-transition), color var(--px-transition);
  font-size: var(--px-text-lg);
}
.px-btn-icon:hover { background: var(--px-bg-secondary); color: var(--px-primary); }

.px-search-form {
  display: none;
  position: absolute;
  top: var(--px-header-height);
  left: 0; right: 0;
  background: var(--px-bg);
  border-bottom: 1px solid var(--px-border);
  padding: var(--px-space-4);
  z-index: var(--px-z-sticky);
}

.px-search-form.active { display: block; }

.px-search-inner {
  max-width: 640px;
  margin: auto;
  display: flex;
  gap: var(--px-space-2);
}

.px-search-input {
  flex: 1;
  padding: var(--px-space-3) var(--px-space-4);
  border: 2px solid var(--px-border);
  border-radius: var(--px-radius);
  background: var(--px-bg-secondary);
  color: var(--px-text);
  font-size: var(--px-text-base);
  outline: none;
  transition: border-color var(--px-transition);
}

.px-search-input:focus { border-color: var(--px-primary); }

.px-btn-search {
  padding: var(--px-space-3) var(--px-space-5);
  background: var(--px-primary);
  color: #fff;
  border-radius: var(--px-radius);
  font-family: var(--px-font-ui);
  font-weight: 600;
  transition: background var(--px-transition);
}
.px-btn-search:hover { background: var(--px-primary-dark); }

.px-mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--px-radius);
  color: var(--px-text);
}

@media (min-width: 1024px) { .px-mobile-toggle { display: none; } }

#px-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--px-bg);
  z-index: var(--px-z-modal);
  overflow-y: auto;
  padding: var(--px-space-6);
}

#px-mobile-menu.open { display: flex; flex-direction: column; }

.px-mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--px-space-8);
}

.px-mobile-nav a {
  display: block;
  font-family: var(--px-font-heading);
  font-size: var(--px-text-2xl);
  font-weight: 700;
  color: var(--px-text);
  padding: var(--px-space-3) 0;
  border-bottom: 1px solid var(--px-border);
}

.px-mobile-nav a:hover { color: var(--px-primary); }

   BREAKING NEWS TICKER
   ===================================================== */
#px-ticker {
  background: var(--px-primary);
  color: #fff;
  padding: var(--px-space-2) 0;
  overflow: hidden;
  font-family: var(--px-font-ui);
  font-size: var(--px-text-sm);
  font-weight: 600;
}

.px-ticker-inner {
  display: flex;
  align-items: center;
  gap: var(--px-space-4);
}

.px-ticker-label {
  background: rgba(0,0,0,.2);
  padding: 2px var(--px-space-3);
  border-radius: var(--px-radius-full);
  white-space: nowrap;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: var(--px-text-xs);
}

.px-ticker-track {
  overflow: hidden;
  flex: 1;
}

.px-ticker-content {
  display: inline-block;
  white-space: nowrap;
  animation: tickerScroll 30s linear infinite;
}

.px-ticker-content a { color: #fff; margin-right: var(--px-space-8); }
.px-ticker-content a:hover { text-decoration: underline; }

@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

   BREADCRUMB
   ===================================================== */
.px-breadcrumb {
  padding: var(--px-space-3) 0;
  font-family: var(--px-font-ui);
  font-size: var(--px-text-sm);
  color: var(--px-text-muted);
  border-bottom: 1px solid var(--px-border-light);
  margin-bottom: var(--px-space-8);
}

.px-breadcrumb ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--px-space-2);
}

.px-breadcrumb li { display: flex; align-items: center; gap: var(--px-space-2); }
.px-breadcrumb li:not(:last-child)::after { content: '/'; color: var(--px-mid-gray); }
.px-breadcrumb a { color: var(--px-text-muted); }
.px-breadcrumb a:hover { color: var(--px-primary); }
.px-breadcrumb li:last-child { color: var(--px-text-secondary); font-weight: 600; }

   CATEGORY BADGE
   ===================================================== */
.px-cat-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--px-font-ui);
  font-size: var(--px-text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: var(--px-radius-full);
  background: var(--px-primary);
  color: #fff;
  transition: background var(--px-transition);
}

.px-cat-badge:hover { background: var(--px-primary-dark); color: #fff; }

   POST CARDS
   ===================================================== */

.px-featured-hero {
  position: relative;
  border-radius: var(--px-radius-xl);
  overflow: hidden;
  margin-bottom: var(--px-space-8);
  aspect-ratio: 16/7;
  background: var(--px-bg-secondary);
}

.px-featured-hero img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.px-featured-hero:hover img { transform: scale(1.02); }

.px-featured-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.3) 50%, transparent 100%);
}

.px-featured-hero-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: var(--px-space-8) var(--px-space-10);
  color: #fff;
}

.px-featured-hero-content .px-cat-badge { margin-bottom: var(--px-space-3); }

.px-featured-hero-content h2 {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: var(--px-space-3);
  text-shadow: 0 2px 4px rgba(0,0,0,.3);
}

.px-featured-hero-content h2 a { color: inherit; }
.px-featured-hero-content h2 a:hover { color: var(--px-accent); }

.px-post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--px-space-3);
  font-family: var(--px-font-ui);
  font-size: var(--px-text-sm);
  color: var(--px-text-muted);
}

.px-featured-hero-content .px-post-meta { color: rgba(255,255,255,.8); }

.px-post-meta a { color: inherit; }
.px-post-meta a:hover { color: var(--px-primary); }

.px-post-meta .px-separator { opacity: 0.5; }

.px-post-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--px-space-6);
}

@media (min-width: 640px)  { .px-post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .px-post-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }

.px-card {
  background: var(--px-bg);
  border-radius: var(--px-radius-lg);
  overflow: hidden;
  box-shadow: var(--px-shadow-sm);
  border: 1px solid var(--px-border);
  transition: transform var(--px-transition), box-shadow var(--px-transition);
  display: flex;
  flex-direction: column;
}

.px-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--px-shadow-lg);
}

.px-card-thumb {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--px-bg-tertiary);
}

.px-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.px-card:hover .px-card-thumb img { transform: scale(1.06); }

.px-card-thumb .px-cat-badge {
  position: absolute;
  top: var(--px-space-3);
  left: var(--px-space-3);
}

.px-card-body {
  padding: var(--px-space-5);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.px-card-title {
  font-family: var(--px-font-heading);
  font-size: var(--px-text-xl);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--px-space-3);
  color: var(--px-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.px-card-title a { color: inherit; }
.px-card-title a:hover { color: var(--px-primary); }

.px-card-excerpt {
  font-size: var(--px-text-sm);
  color: var(--px-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--px-space-4);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.px-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--px-space-3);
  border-top: 1px solid var(--px-border-light);
}

.px-read-time {
  display: flex;
  align-items: center;
  gap: var(--px-space-1);
  font-family: var(--px-font-ui);
  font-size: var(--px-text-xs);
  color: var(--px-text-muted);
}

.px-post-list .px-card {
  flex-direction: row;
  align-items: stretch;
}

.px-post-list .px-card-thumb {
  width: 220px;
  flex-shrink: 0;
  aspect-ratio: unset;
  min-height: 140px;
}

@media (max-width: 640px) {
  .px-post-list .px-card { flex-direction: column; }
  .px-post-list .px-card-thumb { width: 100%; aspect-ratio: 16/10; }
}

   VIEW TOGGLE
   ===================================================== */
.px-view-toggle {
  display: flex;
  gap: var(--px-space-1);
  background: var(--px-bg-secondary);
  padding: 3px;
  border-radius: var(--px-radius);
}

.px-view-btn {
  padding: var(--px-space-2) var(--px-space-3);
  border-radius: calc(var(--px-radius) - 2px);
  color: var(--px-text-muted);
  transition: background var(--px-transition), color var(--px-transition);
  font-size: var(--px-text-sm);
}

.px-view-btn.active {
  background: var(--px-bg);
  color: var(--px-primary);
  box-shadow: var(--px-shadow-sm);
}

   SINGLE POST / ARTICLE
   ===================================================== */
.px-single-header { margin-bottom: var(--px-space-8); }

.px-single-title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.2;
  margin-bottom: var(--px-space-4);
  letter-spacing: -0.03em;
}

.px-author-card {
  display: flex;
  align-items: center;
  gap: var(--px-space-3);
  margin-bottom: var(--px-space-6);
}

.px-author-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--px-primary);
}

.px-author-info { flex: 1; }

.px-author-name {
  font-family: var(--px-font-ui);
  font-weight: 700;
  font-size: var(--px-text-sm);
  color: var(--px-text);
}

.px-author-name a { color: inherit; }
.px-author-name a:hover { color: var(--px-primary); }

.px-post-date {
  font-family: var(--px-font-ui);
  font-size: var(--px-text-xs);
  color: var(--px-text-muted);
}

.px-post-hero {
  border-radius: var(--px-radius-xl);
  overflow: hidden;
  margin-bottom: var(--px-space-8);
  aspect-ratio: 16/9;
  background: var(--px-bg-tertiary);
}

.px-post-hero img { width: 100%; height: 100%; object-fit: cover; }

.px-entry-content {
  font-size: var(--px-text-lg);
  line-height: 1.8;
  color: var(--px-text-secondary);
}

.px-entry-content > * + * { margin-top: var(--px-space-5); }
.px-entry-content h2, .px-entry-content h3 { color: var(--px-text); margin-top: var(--px-space-10); }
.px-entry-content h2 { font-size: var(--px-text-3xl); }
.px-entry-content h3 { font-size: var(--px-text-2xl); }

.px-entry-content ul, .px-entry-content ol {
  padding-left: var(--px-space-6);
}

.px-entry-content ul { list-style: disc; }
.px-entry-content ol { list-style: decimal; }
.px-entry-content li { margin-bottom: var(--px-space-2); }

.px-entry-content a { text-decoration: underline; text-underline-offset: 3px; }

.px-entry-content img {
  border-radius: var(--px-radius);
  margin: var(--px-space-6) auto;
}

.px-entry-content .wp-caption { text-align: center; }
.px-entry-content .wp-caption-text {
  font-size: var(--px-text-sm);
  color: var(--px-text-muted);
  margin-top: var(--px-space-2);
  font-style: italic;
}

#px-toc {
  background: var(--px-bg-secondary);
  border: 1px solid var(--px-border);
  border-radius: var(--px-radius-lg);
  padding: var(--px-space-6);
  margin: var(--px-space-8) 0;
}

.px-toc-title {
  font-family: var(--px-font-ui);
  font-size: var(--px-text-base);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--px-text);
  margin-bottom: var(--px-space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

#px-toc-list { list-style: decimal; padding-left: var(--px-space-5); }

#px-toc-list li { margin-bottom: var(--px-space-2); }

#px-toc-list a {
  font-family: var(--px-font-ui);
  font-size: var(--px-text-sm);
  color: var(--px-text-secondary);
}

#px-toc-list a:hover { color: var(--px-primary); }

.px-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--px-space-2);
  margin: var(--px-space-8) 0;
}

.px-tag {
  font-family: var(--px-font-ui);
  font-size: var(--px-text-sm);
  color: var(--px-text-secondary);
  background: var(--px-bg-secondary);
  border: 1px solid var(--px-border);
  padding: var(--px-space-1) var(--px-space-3);
  border-radius: var(--px-radius-full);
  transition: all var(--px-transition);
}

.px-tag:hover {
  background: var(--px-primary);
  border-color: var(--px-primary);
  color: #fff;
}

.px-author-bio {
  display: flex;
  gap: var(--px-space-5);
  background: var(--px-bg-secondary);
  border-radius: var(--px-radius-lg);
  padding: var(--px-space-6);
  margin: var(--px-space-10) 0;
  border: 1px solid var(--px-border);
}

.px-author-bio-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.px-author-bio-name {
  font-family: var(--px-font-heading);
  font-size: var(--px-text-xl);
  margin-bottom: var(--px-space-2);
}

.px-author-bio-desc { font-size: var(--px-text-sm); }

   SOCIAL SHARE BUTTONS
   ===================================================== */

.px-share-inline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--px-space-2);
  margin: var(--px-space-8) 0;
  padding: var(--px-space-5);
  background: var(--px-bg-secondary);
  border-radius: var(--px-radius-lg);
  border: 1px solid var(--px-border);
}

.px-share-label {
  font-family: var(--px-font-ui);
  font-size: var(--px-text-sm);
  font-weight: 700;
  color: var(--px-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: var(--px-space-2);
}

.px-share-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--px-space-2);
  padding: var(--px-space-2) var(--px-space-4);
  border-radius: var(--px-radius);
  font-family: var(--px-font-ui);
  font-size: var(--px-text-sm);
  font-weight: 600;
  color: #fff;
  transition: all var(--px-transition);
  text-decoration: none !important;
}

.px-share-btn:hover { transform: translateY(-2px); box-shadow: var(--px-shadow); }
.px-share-btn.facebook  { background: #1877F2; }
.px-share-btn.twitter   { background: #000000; }
.px-share-btn.linkedin  { background: #0A66C2; }
.px-share-btn.whatsapp  { background: #25D366; }
.px-share-btn.telegram  { background: #26A5E4; }
.px-share-btn.pinterest { background: #E60023; }
.px-share-btn.reddit    { background: #FF4500; }
.px-share-btn.email     { background: var(--px-dark-gray); }
.px-share-btn.copy-link { background: var(--px-charcoal); }

.px-share-count {
  font-size: var(--px-text-xs);
  opacity: 0.8;
}

#px-share-float {
  position: fixed;
  left: var(--px-space-4);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: var(--px-space-2);
  z-index: var(--px-z-sticky);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--px-transition);
}

#px-share-float.visible {
  opacity: 1;
  pointer-events: all;
}

@media (max-width: 1200px) { #px-share-float { display: none; } }

.px-share-float-btn {
  width: 44px; height: 44px;
  border-radius: var(--px-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: var(--px-text-base);
  transition: all var(--px-transition);
  position: relative;
}

.px-share-float-btn:hover {
  transform: scale(1.1) translateX(4px);
  box-shadow: var(--px-shadow);
}

.px-share-float-btn::before {
  content: attr(data-tooltip);
  position: absolute;
  right: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--px-charcoal);
  color: #fff;
  font-family: var(--px-font-ui);
  font-size: var(--px-text-xs);
  padding: 4px 8px;
  border-radius: var(--px-radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--px-transition);
}

.px-share-float-btn:hover::before { opacity: 1; }

#px-share-popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: var(--px-z-modal);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

#px-share-popup.open { display: flex; }

.px-share-popup-inner {
  background: var(--px-bg);
  border-radius: var(--px-radius-xl);
  padding: var(--px-space-8);
  max-width: 480px;
  width: 90%;
  box-shadow: var(--px-shadow-xl);
}

.px-share-popup-title {
  font-family: var(--px-font-heading);
  font-size: var(--px-text-2xl);
  margin-bottom: var(--px-space-6);
}

.px-share-popup-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--px-space-3);
  margin-bottom: var(--px-space-5);
}

.px-share-popup-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--px-space-2);
  padding: var(--px-space-3);
  border-radius: var(--px-radius);
  background: var(--px-bg-secondary);
  color: var(--px-text-secondary);
  font-family: var(--px-font-ui);
  font-size: var(--px-text-xs);
  font-weight: 600;
  transition: all var(--px-transition);
  border: 1px solid var(--px-border);
}

.px-share-popup-btn .icon {
  width: 36px; height: 36px;
  border-radius: var(--px-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: var(--px-text-base);
}

.px-share-popup-btn:hover { transform: translateY(-3px); box-shadow: var(--px-shadow); }

.px-copy-link-bar {
  display: flex;
  gap: var(--px-space-2);
  background: var(--px-bg-secondary);
  border-radius: var(--px-radius);
  padding: var(--px-space-3);
  border: 1px solid var(--px-border);
}

.px-copy-link-bar input {
  flex: 1;
  background: none;
  border: none;
  color: var(--px-text-secondary);
  font-size: var(--px-text-sm);
  outline: none;
}

.px-copy-link-btn {
  background: var(--px-primary);
  color: #fff;
  padding: var(--px-space-2) var(--px-space-4);
  border-radius: var(--px-radius-sm);
  font-family: var(--px-font-ui);
  font-size: var(--px-text-sm);
  font-weight: 600;
}

   AD SLOTS
   ===================================================== */
.px-ad-slot {
  background: var(--px-ad-bg);
  border: 1px dashed var(--px-ad-border);
  border-radius: var(--px-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 90px;
  padding: var(--px-space-3);
  margin: var(--px-space-6) 0;
  overflow: hidden;
  position: relative;
}

.px-ad-slot[data-lazy="true"] { opacity: 0; transition: opacity 0.3s; }
.px-ad-slot[data-lazy="true"].loaded { opacity: 1; }

.px-ad-slot-label {
  position: absolute;
  top: 4px;
  right: 6px;
  font-family: var(--px-font-ui);
  font-size: 9px;
  color: var(--px-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.px-ad-header  { min-height: 90px; margin: 0; border-radius: 0; }
.px-ad-footer  { min-height: 90px; }
.px-ad-sidebar { min-height: 250px; }
.px-ad-content { min-height: 250px; }

   SIDEBAR
   ===================================================== */
.px-sidebar-widget {
  background: var(--px-bg);
  border: 1px solid var(--px-border);
  border-radius: var(--px-radius-lg);
  overflow: hidden;
  margin-bottom: var(--px-space-6);
}

.px-widget-title {
  font-family: var(--px-font-ui);
  font-size: var(--px-text-sm);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--px-text);
  padding: var(--px-space-4) var(--px-space-5);
  border-bottom: 2px solid var(--px-primary);
  background: var(--px-bg-secondary);
}

.px-widget-body { padding: var(--px-space-4) var(--px-space-5); }

@media (min-width: 1024px) {
  .px-sidebar { position: sticky; top: calc(var(--px-header-height) + var(--px-space-6)); align-self: start; }
}

.px-trending-item {
  display: flex;
  gap: var(--px-space-3);
  padding: var(--px-space-3) 0;
  border-bottom: 1px solid var(--px-border-light);
  align-items: flex-start;
}

.px-trending-item:last-child { border-bottom: none; }

.px-trending-num {
  font-family: var(--px-font-heading);
  font-size: var(--px-text-2xl);
  font-weight: 800;
  color: var(--px-mid-gray);
  line-height: 1;
  flex-shrink: 0;
  width: 28px;
}

.px-trending-title {
  font-family: var(--px-font-heading);
  font-size: var(--px-text-base);
  font-weight: 600;
  line-height: 1.35;
  color: var(--px-text);
}

.px-trending-title a { color: inherit; }
.px-trending-title a:hover { color: var(--px-primary); }

.px-related-posts { margin: var(--px-space-12) 0; }

.px-section-title {
  font-family: var(--px-font-heading);
  font-size: var(--px-text-2xl);
  font-weight: 800;
  color: var(--px-text);
  margin-bottom: var(--px-space-6);
  padding-bottom: var(--px-space-3);
  border-bottom: 3px solid var(--px-primary);
  display: inline-block;
}

   COMMENTS
   ===================================================== */
.px-comments { margin-top: var(--px-space-12); }

.comment-list { list-style: none; }

.comment {
  padding: var(--px-space-5) 0;
  border-bottom: 1px solid var(--px-border-light);
}

.comment-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: var(--px-space-3);
  margin-bottom: var(--px-space-3);
}

.comment-author {
  font-family: var(--px-font-ui);
  font-weight: 700;
  font-size: var(--px-text-sm);
  color: var(--px-text);
}

.comment-date {
  font-family: var(--px-font-ui);
  font-size: var(--px-text-xs);
  color: var(--px-text-muted);
}

.comment-content { font-size: var(--px-text-base); }

.comment-reply-link {
  font-family: var(--px-font-ui);
  font-size: var(--px-text-sm);
  font-weight: 600;
  color: var(--px-primary);
}

.comment-respond {
  margin-top: var(--px-space-8);
  background: var(--px-bg-secondary);
  border-radius: var(--px-radius-lg);
  padding: var(--px-space-8);
  border: 1px solid var(--px-border);
}

.px-form-group { margin-bottom: var(--px-space-4); }

.px-form-label {
  display: block;
  font-family: var(--px-font-ui);
  font-size: var(--px-text-sm);
  font-weight: 600;
  color: var(--px-text);
  margin-bottom: var(--px-space-2);
}

.px-form-input,
.px-form-textarea {
  width: 100%;
  padding: var(--px-space-3) var(--px-space-4);
  border: 2px solid var(--px-border);
  border-radius: var(--px-radius);
  background: var(--px-bg);
  color: var(--px-text);
  font-size: var(--px-text-base);
  transition: border-color var(--px-transition);
  outline: none;
  font-family: var(--px-font-body);
}

.px-form-input:focus,
.px-form-textarea:focus { border-color: var(--px-primary); }

.px-form-textarea { min-height: 140px; resize: vertical; }

   BUTTONS
   ===================================================== */
.px-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--px-space-2);
  padding: var(--px-space-3) var(--px-space-6);
  border-radius: var(--px-radius);
  font-family: var(--px-font-ui);
  font-size: var(--px-text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all var(--px-transition);
  cursor: pointer;
}

.px-btn-primary {
  background: var(--px-primary);
  color: #fff;
  border: 2px solid var(--px-primary);
}
.px-btn-primary:hover { background: var(--px-primary-dark); border-color: var(--px-primary-dark); color: #fff; }

.px-btn-outline {
  background: transparent;
  color: var(--px-primary);
  border: 2px solid var(--px-primary);
}
.px-btn-outline:hover { background: var(--px-primary); color: #fff; }

.px-btn-lg { padding: var(--px-space-4) var(--px-space-8); font-size: var(--px-text-base); }

   PAGINATION
   ===================================================== */
.px-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--px-space-2);
  margin-top: var(--px-space-12);
}

.px-page-btn {
  min-width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--px-radius);
  font-family: var(--px-font-ui);
  font-size: var(--px-text-sm);
  font-weight: 600;
  color: var(--px-text-secondary);
  border: 1px solid var(--px-border);
  background: var(--px-bg);
  transition: all var(--px-transition);
}

.px-page-btn:hover { background: var(--px-bg-secondary); color: var(--px-primary); }
.px-page-btn.active { background: var(--px-primary); color: #fff; border-color: var(--px-primary); }

   FOOTER
   ===================================================== */
#px-footer {
  background: var(--px-secondary);
  color: rgba(255,255,255,.7);
  margin-top: var(--px-space-20);
}

.px-footer-top {
  padding: var(--px-space-16) 0 var(--px-space-10);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--px-space-8);
}

@media (min-width: 640px)  { .px-footer-top { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .px-footer-top { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.px-footer-brand .px-logo a { color: #fff; }

.px-footer-desc {
  margin-top: var(--px-space-3);
  font-size: var(--px-text-sm);
  line-height: 1.7;
  color: rgba(255,255,255,.5);
}

.px-footer-heading {
  font-family: var(--px-font-ui);
  font-size: var(--px-text-sm);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: var(--px-space-4);
}

.px-footer-links { display: flex; flex-direction: column; gap: var(--px-space-2); }

.px-footer-links a {
  font-size: var(--px-text-sm);
  color: rgba(255,255,255,.5);
  transition: color var(--px-transition);
}

.px-footer-links a:hover { color: var(--px-primary); }

.px-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: var(--px-space-5) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--px-space-4);
  font-family: var(--px-font-ui);
  font-size: var(--px-text-sm);
  color: rgba(255,255,255,.4);
}

.px-social-icons {
  display: flex;
  gap: var(--px-space-2);
}

.px-social-icon {
  width: 36px; height: 36px;
  border-radius: var(--px-radius);
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.7);
  font-size: var(--px-text-base);
  transition: all var(--px-transition);
}

.px-social-icon:hover { background: var(--px-primary); color: #fff; }

.px-newsletter-form {
  display: flex;
  gap: var(--px-space-2);
  margin-top: var(--px-space-3);
}

.px-newsletter-input {
  flex: 1;
  padding: var(--px-space-2) var(--px-space-3);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--px-radius);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: var(--px-text-sm);
  outline: none;
}

.px-newsletter-input::placeholder { color: rgba(255,255,255,.4); }
.px-newsletter-input:focus { border-color: var(--px-primary); }

.px-newsletter-btn {
  background: var(--px-primary);
  color: #fff;
  padding: var(--px-space-2) var(--px-space-4);
  border-radius: var(--px-radius);
  font-family: var(--px-font-ui);
  font-size: var(--px-text-sm);
  font-weight: 600;
  white-space: nowrap;
  transition: background var(--px-transition);
}

.px-newsletter-btn:hover { background: var(--px-primary-dark); }

   DARK MODE TOGGLE
   ===================================================== */
.px-dark-toggle {
  width: 52px; height: 28px;
  background: var(--px-bg-tertiary);
  border-radius: var(--px-radius-full);
  position: relative;
  cursor: pointer;
  transition: background var(--px-transition);
  border: 2px solid var(--px-border);
  flex-shrink: 0;
}

[data-theme="dark"] .px-dark-toggle { background: var(--px-primary); border-color: var(--px-primary); }

.px-dark-toggle-thumb {
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform var(--px-transition);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
}

[data-theme="dark"] .px-dark-toggle-thumb { transform: translateX(24px); }

   TOAST
   ===================================================== */
#px-toast {
  position: fixed;
  bottom: var(--px-space-6);
  right: var(--px-space-6);
  z-index: var(--px-z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--px-space-2);
  pointer-events: none;
}

.px-toast-item {
  background: var(--px-charcoal);
  color: #fff;
  padding: var(--px-space-3) var(--px-space-5);
  border-radius: var(--px-radius);
  font-family: var(--px-font-ui);
  font-size: var(--px-text-sm);
  font-weight: 600;
  box-shadow: var(--px-shadow-lg);
  animation: toastIn 0.3s ease;
  pointer-events: all;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(100%); }
  to   { opacity: 1; transform: translateX(0); }
}

   UTILITY CLASSES
   ===================================================== */
.px-sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.px-text-center { text-align: center; }
.px-mt-8  { margin-top: var(--px-space-8); }
.px-mb-8  { margin-bottom: var(--px-space-8); }
.px-flex  { display: flex; }
.px-items-center { align-items: center; }
.px-gap-4 { gap: var(--px-space-4); }
.px-justify-between { justify-content: space-between; }

.px-badge-new {
  background: #22C55E;
  color: #fff;
  font-family: var(--px-font-ui);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: var(--px-radius-full);
  letter-spacing: 0.05em;
}

   SKIP LINK ACCESSIBILITY
   ===================================================== */
.px-skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  padding: var(--px-space-3) var(--px-space-4);
  background: var(--px-primary);
  color: #fff;
  font-family: var(--px-font-ui);
  font-weight: 700;
  z-index: 9999;
}

.px-skip-link:focus { top: 0; }

   PRINT
   ===================================================== */
@media print {
  #px-header, #px-footer, .px-share-inline, #px-share-float,
  .px-sidebar, .px-ad-slot, .px-related-posts { display: none !important; }
  .px-grid { grid-template-columns: 1fr; }
  body { font-size: 12pt; }
}

/* =====================================================
   v2.1.0 — MAGAZINE HOMEPAGE + DARK TOP NAV
   ===================================================== */

/* ---- TOP BAR (dark) ---- */
.px-top-bar {
    background: var(--px-secondary);
    position: sticky;
    top: 0;
    z-index: var(--px-z-sticky);
    transition: box-shadow var(--px-transition);
}
.px-top-bar.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,.35); }

.px-top-bar-inner {
    display: flex;
    align-items: center;
    height: 52px;
    gap: var(--px-space-4);
}

/* Site name / logo in dark bar */
.px-site-name {
    font-family: var(--px-font-heading);
    font-size: var(--px-text-xl);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.04em;
    white-space: nowrap;
    text-decoration: none;
}
.px-site-name:hover { color: var(--px-primary-light); }

/* Top nav links */
.px-top-bar-nav { display: none; }
@media (min-width: 1024px) {
    .px-top-bar-nav { display: flex; align-items: center; }
}
.px-top-nav-list {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
}
.px-top-nav-list li a {
    font-family: var(--px-font-ui);
    font-size: var(--px-text-sm);
    font-weight: 600;
    color: rgba(255,255,255,.75);
    padding: var(--px-space-2) var(--px-space-3);
    border-radius: var(--px-radius);
    transition: all var(--px-transition);
    display: block;
    white-space: nowrap;
    text-decoration: none;
}
.px-top-nav-list li a:hover,
.px-top-nav-list li.current-menu-item a {
    color: #fff;
    background: rgba(255,255,255,.1);
}

/* Top bar right actions */
.px-top-bar-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: var(--px-space-2);
}

/* CTA button (Order Now / Sign In style) */
.px-nav-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--px-primary);
    color: #fff !important;
    font-family: var(--px-font-ui);
    font-size: var(--px-text-sm);
    font-weight: 700;
    padding: 7px 16px;
    border-radius: var(--px-radius);
    transition: all var(--px-transition);
    text-decoration: none;
    white-space: nowrap;
}
.px-nav-cta-btn:hover { background: var(--px-primary-dark); transform: translateY(-1px); }

/* Icon buttons in dark bar */
.px-top-bar .px-btn-icon {
    color: rgba(255,255,255,.75);
}
.px-top-bar .px-btn-icon:hover {
    background: rgba(255,255,255,.1);
    color: #fff;
}
.px-top-bar .px-dark-toggle {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.2);
}
.px-mobile-toggle { display: flex; }
@media (min-width: 1024px) { .px-mobile-toggle { display: none; } }

/* Mobile menu */
#px-mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--px-bg);
    z-index: var(--px-z-modal);
    overflow-y: auto;
    padding: var(--px-space-6);
}
#px-mobile-menu.open { display: flex; flex-direction: column; }
.px-mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--px-space-8);
}
.px-mobile-logo {
    font-family: var(--px-font-heading);
    font-size: var(--px-text-2xl);
    font-weight: 800;
    color: var(--px-text);
    text-decoration: none;
}
.px-mobile-nav a {
    display: block;
    font-family: var(--px-font-heading);
    font-size: var(--px-text-2xl);
    font-weight: 700;
    color: var(--px-text);
    padding: var(--px-space-3) 0;
    border-bottom: 1px solid var(--px-border);
    text-decoration: none;
}
.px-mobile-nav a:hover { color: var(--px-primary); }

/* Search dropdown */
.px-search-form {
    display: none;
    background: var(--px-secondary);
    border-bottom: 1px solid rgba(255,255,255,.1);
    padding: var(--px-space-4) 0;
}
.px-search-form.active { display: block; }
.px-search-input {
    flex: 1;
    padding: var(--px-space-3) var(--px-space-4);
    border: 1.5px solid rgba(255,255,255,.2);
    border-radius: var(--px-radius);
    background: rgba(255,255,255,.08);
    color: #fff;
    font-size: var(--px-text-base);
    outline: none;
}
.px-search-input::placeholder { color: rgba(255,255,255,.5); }
.px-search-input:focus { border-color: var(--px-primary); }
.px-btn-search {
    padding: var(--px-space-3) var(--px-space-5);
    background: var(--px-primary);
    color: #fff;
    border-radius: var(--px-radius);
    font-family: var(--px-font-ui);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background var(--px-transition);
}
.px-btn-search:hover { background: var(--px-primary-dark); }

/* ---- CATEGORY PILL NAV BAR ---- */
.px-cat-nav-bar {
    background: var(--px-bg);
    border-bottom: 2px solid var(--px-border-light);
    position: sticky;
    top: 52px;
    z-index: calc(var(--px-z-sticky) - 1);
}
.px-cat-nav-inner {
    display: flex;
    align-items: center;
    gap: var(--px-space-1);
    overflow-x: auto;
    padding: var(--px-space-2) 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.px-cat-nav-inner::-webkit-scrollbar { display: none; }
.px-cat-nav-pill {
    font-family: var(--px-font-ui);
    font-size: var(--px-text-sm);
    font-weight: 600;
    color: var(--px-text-secondary);
    padding: 5px 14px;
    border-radius: var(--px-radius-full);
    white-space: nowrap;
    text-decoration: none;
    transition: all var(--px-transition);
    border: 1.5px solid transparent;
}
.px-cat-nav-pill:hover {
    color: var(--px-primary);
    border-color: var(--px-primary);
}
.px-cat-nav-pill.active {
    background: var(--px-primary);
    color: #fff;
    border-color: var(--px-primary);
}

/* ---- HOMEPAGE GRID ---- */
.px-homepage-wrap { padding-top: var(--px-space-8); padding-bottom: var(--px-space-16); }
.px-homepage-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--px-space-8);
}
@media (min-width: 1024px) {
    .px-homepage-grid { grid-template-columns: 1fr 300px; }
}

/* ---- FEATURED HERO ---- */
.px-hero-feature {
    border-radius: var(--px-radius-xl);
    overflow: hidden;
    background: var(--px-bg-tertiary);
    border: 1px solid var(--px-border);
    margin-bottom: var(--px-space-4);
}
.px-hero-feature-img-wrap {
    position: relative;
    aspect-ratio: 16/7;
    overflow: hidden;
    background: var(--px-secondary);
}
.px-hero-feature-img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}
.px-hero-feature:hover .px-hero-feature-img { transform: scale(1.02); }
.px-hero-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--px-primary), var(--px-secondary));
}
.px-hero-feature-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,.0) 60%, rgba(0,0,0,.15) 100%);
}
.px-hero-views-badge {
    position: absolute;
    top: var(--px-space-3);
    right: var(--px-space-3);
    background: rgba(0,0,0,.55);
    color: #fff;
    font-family: var(--px-font-ui);
    font-size: var(--px-text-xs);
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--px-radius-full);
    display: flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(4px);
}
.px-hero-arrows {
    position: absolute;
    bottom: var(--px-space-4);
    right: var(--px-space-4);
    display: flex;
    gap: var(--px-space-2);
    z-index: 3;
}
.px-hero-arrow {
    width: 34px; height: 34px;
    border-radius: var(--px-radius);
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    color: #fff;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px;
    transition: background var(--px-transition);
    backdrop-filter: blur(4px);
}
.px-hero-arrow:hover { background: var(--px-primary); border-color: var(--px-primary); }

.px-hero-feature-body { padding: var(--px-space-5) var(--px-space-6); }
.px-hero-meta-top {
    display: flex;
    align-items: center;
    gap: var(--px-space-3);
    margin-bottom: var(--px-space-3);
    flex-wrap: wrap;
}
.px-hero-date {
    font-family: var(--px-font-ui);
    font-size: var(--px-text-xs);
    color: var(--px-text-muted);
    font-weight: 600;
}
.px-cat-pill-green {
    display: inline-flex;
    align-items: center;
    font-family: var(--px-font-ui);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    background: #22C55E;
    color: #fff;
    padding: 2px 10px;
    border-radius: var(--px-radius-full);
    text-decoration: none;
}
.px-cat-pill-green:hover { background: #16A34A; color: #fff; }
.px-hero-title {
    font-family: var(--px-font-heading);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--px-text);
    line-height: 1.2;
    margin-bottom: var(--px-space-3);
    letter-spacing: -0.03em;
}
.px-hero-title a { color: inherit; text-decoration: none; }
.px-hero-title a:hover { color: var(--px-primary); }
.px-hero-excerpt {
    font-size: var(--px-text-base);
    color: var(--px-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--px-space-4);
}
.px-hero-author-row {
    display: flex;
    align-items: center;
    gap: var(--px-space-2);
}
.px-hero-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--px-border);
}
.px-hero-author-name {
    font-family: var(--px-font-ui);
    font-size: var(--px-text-sm);
    font-weight: 700;
    color: var(--px-text);
    text-decoration: none;
}
.px-hero-author-name:hover { color: var(--px-primary); }
.px-hero-read-time {
    margin-left: auto;
    font-family: var(--px-font-ui);
    font-size: var(--px-text-xs);
    color: var(--px-text-muted);
    display: flex; align-items: center; gap: 4px;
}

/* "See all" row */
.px-section-see-all {
    display: flex;
    justify-content: flex-end;
    margin-bottom: var(--px-space-5);
}
.px-see-all-link {
    font-family: var(--px-font-ui);
    font-size: var(--px-text-sm);
    font-weight: 700;
    color: #22C55E;
    text-decoration: none;
}
.px-see-all-link:hover { color: #16A34A; text-decoration: underline; }

/* ---- ARTICLE GRID ---- */
.px-article-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--px-space-5);
}
@media (min-width: 640px)  { .px-article-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px)  { .px-article-grid { grid-template-columns: 1fr 1fr; } }

.px-article-card {
    background: var(--px-bg);
    border: 1px solid var(--px-border);
    border-radius: var(--px-radius-lg);
    overflow: hidden;
    transition: transform var(--px-transition), box-shadow var(--px-transition);
    display: flex;
    flex-direction: column;
}
.px-article-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--px-shadow-md);
}
.px-article-card-thumb-link { display: block; text-decoration: none; }
.px-article-card-thumb {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--px-bg-tertiary);
    position: relative;
}
.px-article-card-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}
.px-article-card:hover .px-article-card-thumb img { transform: scale(1.05); }
.px-article-thumb-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--px-bg-secondary), var(--px-bg-tertiary));
    display: flex; align-items: center; justify-content: center;
}
.px-article-thumb-placeholder i { font-size: 28px; color: var(--px-mid-gray); }

.px-article-card-body { padding: var(--px-space-4); flex: 1; display: flex; flex-direction: column; }
.px-article-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--px-space-2);
    flex-wrap: wrap;
    gap: 4px;
}
.px-article-date {
    font-family: var(--px-font-ui);
    font-size: var(--px-text-xs);
    color: var(--px-text-muted);
    font-weight: 600;
}
.px-article-stats {
    font-family: var(--px-font-ui);
    font-size: var(--px-text-xs);
    color: var(--px-text-muted);
}
.px-article-stats i { margin-right: 2px; }
.px-article-title {
    font-family: var(--px-font-heading);
    font-size: var(--px-text-lg);
    font-weight: 700;
    color: var(--px-text);
    line-height: 1.3;
    margin-bottom: var(--px-space-2);
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.px-article-title a { color: inherit; text-decoration: none; }
.px-article-title a:hover { color: var(--px-primary); }
.px-article-excerpt {
    font-size: var(--px-text-sm);
    color: var(--px-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--px-space-3);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.px-article-author-row {
    display: flex;
    align-items: center;
    gap: var(--px-space-2);
    padding-top: var(--px-space-3);
    border-top: 1px solid var(--px-border-light);
    margin-top: auto;
}
.px-article-avatar {
    width: 24px; height: 24px;
    border-radius: 50%;
    object-fit: cover;
}
.px-article-author {
    font-family: var(--px-font-ui);
    font-size: var(--px-text-xs);
    font-weight: 700;
    color: var(--px-text-secondary);
    text-decoration: none;
}
.px-article-author:hover { color: var(--px-primary); }

/* ---- SIDEBAR PANELS ---- */
.px-homepage-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--px-space-5);
}
@media (min-width: 1024px) {
    .px-homepage-sidebar {
        position: sticky;
        top: calc(52px + 42px + var(--px-space-6));
        max-height: calc(100vh - 52px - 42px - 48px);
        overflow-y: auto;
        align-self: start;
        scrollbar-width: none;
    }
    .px-homepage-sidebar::-webkit-scrollbar { display: none; }
}

.px-sidebar-panel {
    background: var(--px-bg);
    border: 1px solid var(--px-border);
    border-radius: var(--px-radius-lg);
    overflow: hidden;
}
.px-sidebar-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--px-space-3) var(--px-space-4);
    border-bottom: 2px solid var(--px-primary);
    background: var(--px-bg-secondary);
}
.px-sidebar-panel-label {
    font-family: var(--px-font-ui);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--px-text);
}
.px-sidebar-see-all {
    font-family: var(--px-font-ui);
    font-size: 11px;
    font-weight: 700;
    color: #22C55E;
    text-decoration: none;
}
.px-sidebar-see-all:hover { text-decoration: underline; }

/* News list */
.px-news-list { display: flex; flex-direction: column; }
.px-news-item {
    display: flex;
    align-items: center;
    gap: var(--px-space-3);
    padding: var(--px-space-3) var(--px-space-4);
    border-bottom: 1px solid var(--px-border-light);
    text-decoration: none;
    transition: background var(--px-transition);
}
.px-news-item:last-child { border-bottom: none; }
.px-news-item:hover { background: var(--px-bg-secondary); }
.px-news-info { flex: 1; min-width: 0; }
.px-news-date {
    display: block;
    font-family: var(--px-font-ui);
    font-size: 10px;
    font-weight: 600;
    color: var(--px-text-muted);
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.px-news-title {
    font-family: var(--px-font-heading);
    font-size: 13px;
    font-weight: 700;
    color: var(--px-text);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.px-news-item:hover .px-news-title { color: var(--px-primary); }
.px-news-thumb-wrap {
    width: 52px; height: 40px;
    border-radius: var(--px-radius);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--px-bg-tertiary);
}
.px-news-thumb { width: 100%; height: 100%; object-fit: cover; display: block; }

.px-sidebar-see-all-btn {
    display: block;
    text-align: center;
    padding: var(--px-space-3);
    font-family: var(--px-font-ui);
    font-size: 12px;
    font-weight: 700;
    color: #22C55E;
    text-decoration: none;
    border-top: 1px solid var(--px-border-light);
}
.px-sidebar-see-all-btn:hover { background: var(--px-bg-secondary); }

/* Latest Updates */
.px-updates-list { display: flex; flex-direction: column; }
.px-update-item {
    display: block;
    padding: var(--px-space-3) var(--px-space-4);
    border-bottom: 1px solid var(--px-border-light);
    text-decoration: none;
    transition: background var(--px-transition);
}
.px-update-item:last-child { border-bottom: none; }
.px-update-item:hover { background: var(--px-bg-secondary); }
.px-update-date {
    font-family: var(--px-font-ui);
    font-size: 10px;
    font-weight: 600;
    color: var(--px-text-muted);
    display: block;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.px-update-title {
    font-family: var(--px-font-ui);
    font-size: 12px;
    font-weight: 600;
    color: var(--px-text-secondary);
    line-height: 1.45;
}
.px-update-item:hover .px-update-title { color: var(--px-primary); }

/* Newsletter panel */
.px-newsletter-panel { overflow: hidden; }
.px-nl-inner {
    padding: var(--px-space-5) var(--px-space-4);
    text-align: center;
    background: linear-gradient(135deg, #F0EEFF, #E6E1FF);
}
[data-theme="dark"] .px-nl-inner { background: linear-gradient(135deg,#1e1a3a,#17132e); }
.px-nl-icon { font-size: 28px; color: var(--px-primary); margin-bottom: 8px; }
.px-nl-title {
    font-family: var(--px-font-heading);
    font-size: var(--px-text-base);
    font-weight: 700;
    color: var(--px-text);
    margin-bottom: 6px;
}
.px-nl-desc {
    font-size: 12px;
    color: var(--px-text-secondary);
    margin-bottom: 14px;
    line-height: 1.5;
}
.px-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.px-newsletter-input {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid var(--px-border);
    border-radius: var(--px-radius);
    font-size: 13px;
    background: var(--px-bg);
    color: var(--px-text);
    outline: none;
    font-family: inherit;
    text-align: center;
}
.px-newsletter-input:focus { border-color: var(--px-primary); }
.px-newsletter-btn {
    width: 100%;
    padding: 9px;
    background: var(--px-primary);
    color: #fff;
    border: none;
    border-radius: var(--px-radius);
    font-family: var(--px-font-ui);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--px-transition);
}
.px-newsletter-btn:hover { background: var(--px-primary-dark); }

/* Trending rows */
.px-trending-row {
    display: flex;
    align-items: flex-start;
    gap: var(--px-space-3);
    padding: var(--px-space-3) var(--px-space-4);
    border-bottom: 1px solid var(--px-border-light);
    text-decoration: none;
    transition: background var(--px-transition);
}
.px-trending-row:last-child { border-bottom: none; }
.px-trending-row:hover { background: var(--px-bg-secondary); }
.px-trending-num {
    font-family: var(--px-font-heading);
    font-size: var(--px-text-xl);
    font-weight: 800;
    color: var(--px-mid-gray);
    line-height: 1;
    flex-shrink: 0;
    width: 28px;
}
.px-trending-body { flex: 1; min-width: 0; }
.px-trending-title {
    font-family: var(--px-font-heading);
    font-size: 13px;
    font-weight: 700;
    color: var(--px-text);
    line-height: 1.35;
    margin-bottom: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.px-trending-row:hover .px-trending-title { color: var(--px-primary); }
.px-trending-meta {
    font-family: var(--px-font-ui);
    font-size: 10px;
    color: var(--px-text-muted);
}

/* Dark mode adjustments for nav */
[data-theme="dark"] .px-top-bar { background: #0a0a1a; }
[data-theme="dark"] .px-cat-nav-bar { background: var(--px-bg); }
