/* ==========================================================================
   X6 Greece Blog — Plaisio-Inspired Light/Dark Theme
   Theme: x6plus (child/override)
   Version: 2.3 — with Dark Mode Toggle
   ========================================================================== */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ==========================================================================
   CSS Variables — Light Theme (default)
   ========================================================================== */
:root {
  /* Brand */
  --x6-primary: #EE5835;
  --x6-primary-hover: #d94e2e;
  --x6-primary-light: rgba(238, 88, 53, 0.08);

  /* Backgrounds */
  --x6-bg: #ffffff;
  --x6-bg-alt: #f5f6f8;
  --x6-bg-elevated: #ffffff;

  /* Text */
  --x6-text-primary: #1a1a2e;
  --x6-text-secondary: #4a4a5a;
  --x6-text-muted: #8c8c9a;
  --x6-text-white: #ffffff;

  /* Borders & Shadows */
  --x6-border: #e8e8ee;
  --x6-border-light: #f0f0f4;
  --x6-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --x6-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --x6-shadow-hover: 0 8px 28px rgba(0, 0, 0, 0.12);

  /* Category Colors */
  --x6-cat-tech: #2563eb;
  --x6-cat-guide: #059669;
  --x6-cat-tips: #d97706;
  --x6-cat-news: #dc2626;
  --x6-cat-compare: #7c3aed;
  --x6-cat-interesting: #db2777;
  --x6-cat-gaming: #7c3aed;
  --x6-cat-home: #ea580c;
  --x6-cat-life: #0d9488;
  --x6-cat-business: #1e40af;

  /* Layout */
  --x6-radius: 12px;
  --x6-radius-sm: 8px;
  --x6-radius-pill: 50px;
  --x6-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --x6-max-width: 1200px;
  --x6-content-width: 780px;
  --x6-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ==========================================================================
   CSS Variables — Dark Theme Override
   ========================================================================== */
[data-theme="dark"] {
  --x6-bg: #0f0f1a;
  --x6-bg-alt: #1a1a2e;
  --x6-bg-elevated: #16213e;

  --x6-text-primary: #f0f0f4;
  --x6-text-secondary: #c8c8d4;
  --x6-text-muted: #8a8a9a;

  --x6-border: #2a2a4a;
  --x6-border-light: #222240;
  --x6-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
  --x6-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  --x6-shadow-hover: 0 8px 28px rgba(0, 0, 0, 0.45);

  --x6-primary-light: rgba(238, 88, 53, 0.15);
}

/* Dark mode tweaks for specific elements */
[data-theme="dark"] .x6-share-twitter {
  background: #e7e9ea;
  color: #0f1419;
}

[data-theme="dark"] .x6-hot-links-list a {
  background: var(--x6-bg-alt);
}

[data-theme="dark"] .x6-single-content tbody tr {
  background: var(--x6-bg-alt);
}

[data-theme="dark"] .x6-single-content tbody tr:nth-child(even) {
  background: var(--x6-bg-elevated);
}

/* Dark mode: colored subheadings (Plaisio style) */
[data-theme="dark"] .x6-single-content h2 {
  color: var(--x6-primary);
  border-bottom-color: var(--x6-border);
}

[data-theme="dark"] .x6-single-content h2::after {
  background: var(--x6-primary);
}

[data-theme="dark"] .x6-single-content h3 {
  color: #f0f0f4;
}

/* Dark mode: images no border-radius, slightly different treatment */
[data-theme="dark"] .x6-single-content img {
  border-radius: 4px;
  box-shadow: none;
}

/* Dark mode: blockquote */
[data-theme="dark"] .x6-single-content blockquote {
  background: var(--x6-bg-alt);
  border-left-color: var(--x6-primary);
}

/* Dark mode: tags pills */
[data-theme="dark"] .x6-tag-item {
  background: var(--x6-bg-alt);
  border-color: var(--x6-border);
  color: var(--x6-text-muted);
}

[data-theme="dark"] .x6-tag-item:hover {
  background: var(--x6-primary-light);
}

/* Dark mode: category nav */
[data-theme="dark"] .x6-blog-categories-nav {
  background: var(--x6-bg-alt);
  border-bottom-color: var(--x6-border);
}

/* Dark mode: newsletter */
[data-theme="dark"] .x6-newsletter-cta {
  background: var(--x6-bg-alt);
  border-color: var(--x6-border);
}

/* Dark mode: post cards */
[data-theme="dark"] .x6-post-card {
  border-color: var(--x6-border);
}

/* Dark mode: trending section */
[data-theme="dark"] .x6-trending-section {
  background: var(--x6-bg-alt);
  border-color: var(--x6-border);
}

/* Dark mode: hero image */
[data-theme="dark"] .x6-single-hero-image img {
  box-shadow: none;
}

/* Dark mode: newsroom */
[data-theme="dark"] .x6-newsroom-large-image img {
  box-shadow: none;
}

/* Dark mode: hot links */
[data-theme="dark"] .x6-hot-links {
  background: var(--x6-bg-alt);
  border-top-color: var(--x6-border);
}

/* Dark mode: author avatar border */
[data-theme="dark"] .x6-single-author-avatar {
  border: 2px solid var(--x6-border);
}

/* Dark mode: strong text in content */
[data-theme="dark"] .x6-single-content strong {
  color: #ffffff;
}

/* Dark mode: featured article link colors */
[data-theme="dark"] .x6-single-content a {
  color: var(--x6-primary);
}

/* Smooth transition for theme change */
.x6-blog-wrap,
.x6-single-wrap,
.x6-blog-categories-nav,
.x6-hot-links,
.x6-post-card,
.x6-trending-section,
.x6-newsletter-cta,
.x6-tag-item {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ==========================================================================
   THEME TOGGLE BUTTON
   ========================================================================== */
.x6-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--x6-bg-alt);
  border: 1px solid var(--x6-border);
  color: var(--x6-text-muted);
  cursor: pointer;
  transition: var(--x6-transition);
  padding: 0;
  margin-left: 8px;
  flex-shrink: 0;
}

.x6-theme-toggle:hover {
  color: var(--x6-primary);
  border-color: var(--x6-primary);
}

/* Sun icon visible in dark mode, moon icon visible in light mode */
.x6-theme-toggle .x6-icon-sun {
  display: none;
}

.x6-theme-toggle .x6-icon-moon {
  display: block;
}

[data-theme="dark"] .x6-theme-toggle .x6-icon-sun {
  display: block;
}

[data-theme="dark"] .x6-theme-toggle .x6-icon-moon {
  display: none;
}

/* ==========================================================================
   BASE RESETS
   ========================================================================== */
.x6-blog-wrap,
.x6-single-wrap {
  font-family: var(--x6-font);
  background: var(--x6-bg);
  color: var(--x6-text-secondary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.x6-blog-wrap *,
.x6-single-wrap * {
  box-sizing: border-box;
}

/* Force vertical stacking — override parent theme flex/grid */
.x6-blog-wrap {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
}

.x6-blog-wrap > *,
.x6-single-wrap > * {
  float: none !important;
}

.x6-blog-container {
  max-width: var(--x6-max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: block !important;
  float: none !important;
  width: 100% !important;
}

/* Override parent theme layout conflicts */
.x6-blog-wrap .x6-hero-two-col,
.x6-blog-wrap .x6-newsroom-section,
.x6-blog-wrap .x6-blog-section-header,
.x6-blog-wrap .x6-blog-grid,
.x6-blog-wrap .x6-guides-section,
.x6-blog-wrap .x6-newsletter-cta,
.x6-blog-wrap .x6-hot-links {
  clear: both !important;
}

.x6-single-article-wrap {
  display: block !important;
  float: none !important;
}

/* Kill Elementor/theme flex wrappers that break layout */
.elementor-widget-wrap:has(.x6-blog-wrap),
.elementor-element:has(.x6-blog-wrap),
.site-content:has(.x6-blog-wrap),
.entry-content:has(.x6-blog-wrap),
.page-content:has(.x6-blog-wrap),
.post-content:has(.x6-blog-wrap),
#content:has(.x6-blog-wrap),
#primary:has(.x6-blog-wrap),
.content-area:has(.x6-blog-wrap),
main:has(.x6-blog-wrap) {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  flex-direction: column !important;
  padding: 0 !important;
}

/* Same for single posts */
.elementor-widget-wrap:has(.x6-single-wrap),
.elementor-element:has(.x6-single-wrap),
.site-content:has(.x6-single-wrap),
.entry-content:has(.x6-single-wrap),
main:has(.x6-single-wrap) {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
}

/* ==========================================================================
   CATEGORY NAVIGATION BAR
   ========================================================================== */
.x6-blog-categories-nav {
  background: var(--x6-bg);
  border-bottom: 1px solid var(--x6-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.x6-blog-categories-nav .x6-blog-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.x6-nav-cats {
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
}

.x6-nav-cats::-webkit-scrollbar {
  display: none;
}

.x6-blog-cat-link {
  display: inline-flex;
  align-items: center;
  padding: 16px 18px;
  color: var(--x6-text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
  white-space: nowrap;
  transition: var(--x6-transition);
  border-bottom: 3px solid transparent;
}

.x6-blog-cat-link:hover {
  color: var(--x6-text-primary);
}

.x6-blog-cat-link.active {
  color: var(--x6-primary);
  border-bottom-color: var(--x6-primary);
}

/* Nav CTA Buttons (like Plaisio Now / Newsletters) */
.x6-nav-cta-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  flex-shrink: 0;
}

.x6-nav-cta {
  display: inline-block;
  padding: 8px 18px;
  border-radius: var(--x6-radius-pill);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: var(--x6-transition);
  white-space: nowrap;
}

.x6-nav-cta-brand {
  background: var(--x6-primary);
  color: #fff;
}

.x6-nav-cta-brand:hover {
  background: var(--x6-primary-hover);
}

.x6-nav-cta-newsletter {
  background: #059669;
  color: #fff;
}

.x6-nav-cta-newsletter:hover {
  background: #047857;
}

/* ==========================================================================
   SECTION 1: HERO — Featured Article + What's Trending
   ========================================================================== */
.x6-hero-two-col {
  display: grid !important;
  grid-template-columns: 1fr 360px !important;
  gap: 36px !important;
  margin: 32px 0 48px !important;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--x6-border);
  width: 100% !important;
  float: none !important;
}

/* --- Featured Article (left) --- */
.x6-featured-article {
  padding-right: 12px;
}

.x6-featured-cat {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  text-decoration: none;
  margin-bottom: 16px;
}

.x6-featured-title {
  font-size: 32px;
  font-weight: 900;
  color: var(--x6-text-primary);
  line-height: 1.2;
  margin: 0 0 20px;
}

.x6-featured-title a {
  color: inherit;
  text-decoration: none;
}

.x6-featured-title a:hover {
  color: var(--x6-primary);
}

.x6-featured-image {
  margin-bottom: 18px;
  border-radius: var(--x6-radius);
  overflow: hidden;
}

.x6-featured-image img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  display: block;
}

.x6-featured-excerpt {
  font-size: 15px;
  color: var(--x6-text-secondary);
  line-height: 1.65;
  margin: 0 0 18px;
}

.x6-featured-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--x6-text-muted);
  flex-wrap: wrap;
}

.x6-featured-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.x6-featured-author {
  font-weight: 600;
  color: var(--x6-text-primary);
}

.x6-featured-separator {
  color: var(--x6-border);
}

.x6-featured-share {
  display: flex;
  gap: 12px;
  margin-left: auto;
}

.x6-featured-share a {
  color: var(--x6-text-muted);
  transition: color 0.2s;
}

.x6-featured-share a:hover {
  color: var(--x6-text-primary);
}

/* --- What's Trending Sidebar (right) --- */
.x6-hero-trending {
  border-left: 1px solid var(--x6-border);
  padding-left: 32px;
}

.x6-trending-header {
  font-size: 20px;
  font-weight: 800;
  color: var(--x6-text-primary);
  margin: 0 0 24px;
}

.x6-trending-item {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid var(--x6-border-light);
  text-decoration: none;
  color: inherit;
  transition: var(--x6-transition);
}

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

.x6-trending-item:hover .x6-trending-title {
  color: var(--x6-primary);
}

.x6-trending-cat-label {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}

/* Trending category colors (text, not badges) */
.x6-trending-cat-tech      { color: var(--x6-cat-tech); }
.x6-trending-cat-guide     { color: var(--x6-cat-guide); }
.x6-trending-cat-tips      { color: var(--x6-cat-tips); }
.x6-trending-cat-news      { color: var(--x6-cat-news); }
.x6-trending-cat-compare   { color: var(--x6-cat-compare); }
.x6-trending-cat-interesting { color: var(--x6-cat-interesting); }
.x6-trending-cat-gaming    { color: var(--x6-cat-gaming); }
.x6-trending-cat-home      { color: var(--x6-cat-home); }
.x6-trending-cat-life      { color: var(--x6-cat-life); }
.x6-trending-cat-business  { color: var(--x6-cat-business); }
.x6-trending-cat-default   { color: var(--x6-primary); }

.x6-trending-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--x6-text-primary);
  line-height: 1.4;
  transition: color 0.2s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.x6-trending-meta {
  font-size: 12px;
  color: var(--x6-text-muted);
  margin-top: 6px;
}

/* ==========================================================================
   SECTION 2: NEWSROOM
   ========================================================================== */
.x6-newsroom-section {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--x6-border);
}

.x6-newsroom-grid {
  display: grid !important;
  grid-template-columns: 1fr 380px !important;
  gap: 32px !important;
  width: 100% !important;
}

/* Large newsroom card */
.x6-newsroom-card-large {
  /* auto */
}

.x6-newsroom-large-image {
  position: relative;
  border-radius: var(--x6-radius);
  overflow: hidden;
  margin-bottom: 16px;
}

.x6-newsroom-large-image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.x6-newsroom-large-image:hover img {
  transform: scale(1.03);
}

.x6-newsroom-cat {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #fff;
  z-index: 2;
}

.x6-newsroom-large-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--x6-text-primary);
  margin: 0 0 10px;
  line-height: 1.3;
}

.x6-newsroom-large-title a {
  color: inherit;
  text-decoration: none;
}

.x6-newsroom-large-title a:hover {
  color: var(--x6-primary);
}

.x6-newsroom-large-excerpt {
  font-size: 14px;
  color: var(--x6-text-muted);
  line-height: 1.6;
  margin: 0 0 12px;
}

.x6-newsroom-meta {
  font-size: 12px;
  color: var(--x6-text-muted);
  display: flex;
  gap: 6px;
}

/* Small newsroom cards (stacked right) */
.x6-newsroom-side {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.x6-newsroom-card-small {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--x6-border-light);
  align-items: flex-start;
}

.x6-newsroom-card-small:last-child {
  border-bottom: none;
}

.x6-newsroom-small-content {
  flex: 1;
}

.x6-newsroom-cat-inline {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
  padding: 2px 8px;
  border-radius: 3px;
  color: #fff;
}

.x6-newsroom-small-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--x6-text-primary);
  margin: 0 0 6px;
  line-height: 1.35;
}

.x6-newsroom-small-title a {
  color: inherit;
  text-decoration: none;
}

.x6-newsroom-small-title a:hover {
  color: var(--x6-primary);
}

.x6-newsroom-small-image {
  width: 100px;
  height: 75px;
  border-radius: var(--x6-radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.x6-newsroom-small-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   SECTION HEADERS
   ========================================================================== */
.x6-blog-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--x6-border);
}

.x6-blog-section-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--x6-text-primary);
  margin: 0;
  position: relative;
  padding-left: 16px;
}

.x6-blog-section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 4px;
  background: var(--x6-primary);
  border-radius: 2px;
}

.x6-blog-section-link {
  color: var(--x6-primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: var(--x6-transition);
}

.x6-blog-section-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   POST CARDS GRID (3 columns)
   ========================================================================== */
.x6-blog-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 28px !important;
  margin-bottom: 48px;
  width: 100% !important;
}

.x6-post-card {
  background: var(--x6-bg-elevated);
  border-radius: var(--x6-radius);
  overflow: hidden;
  transition: var(--x6-transition);
  box-shadow: var(--x6-shadow-sm);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--x6-border-light);
}

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

.x6-post-card a {
  text-decoration: none;
  color: inherit;
}

.x6-post-card-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

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

.x6-post-card:hover .x6-post-card-image img {
  transform: scale(1.05);
}

.x6-post-card-category {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #fff;
  z-index: 2;
}

/* Category Colors (badges) */
.x6-cat-odigoi       { background: var(--x6-cat-guide); }
.x6-cat-texnika       { background: var(--x6-cat-tech); }
.x6-cat-sygkriseis    { background: var(--x6-cat-compare); }
.x6-cat-tips          { background: var(--x6-cat-tips); }
.x6-cat-endiaferointa { background: var(--x6-cat-interesting); }
.x6-cat-nea           { background: var(--x6-cat-news); }
.x6-cat-gaming        { background: var(--x6-cat-gaming); }
.x6-cat-home          { background: var(--x6-cat-home); }
.x6-cat-life          { background: var(--x6-cat-life); }
.x6-cat-business      { background: var(--x6-cat-business); }
.x6-cat-default       { background: var(--x6-primary); }

.x6-post-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.x6-post-card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--x6-text-primary);
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.x6-post-card:hover .x6-post-card-title {
  color: var(--x6-primary);
}

.x6-post-card-excerpt {
  font-size: 13px;
  color: var(--x6-text-muted);
  line-height: 1.6;
  margin: 0 0 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.x6-post-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--x6-border);
  font-size: 12px;
  color: var(--x6-text-muted);
}

.x6-post-card-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.x6-post-card-author img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}

.x6-post-card-author span {
  font-weight: 500;
}

.x6-post-card-date {
  font-size: 12px;
  white-space: nowrap;
}

/* ==========================================================================
   SECTION 4: GUIDES HORIZONTAL CAROUSEL
   ========================================================================== */
.x6-guides-section {
  margin: 48px 0;
  padding-top: 48px;
  border-top: 1px solid var(--x6-border);
}

.x6-guides-carousel {
  position: relative;
  overflow: hidden;
}

.x6-guides-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}

.x6-guides-track::-webkit-scrollbar {
  display: none;
}

.x6-guide-card {
  min-width: 220px;
  max-width: 220px;
  flex-shrink: 0;
}

.x6-guide-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.x6-guide-card-image {
  border-radius: var(--x6-radius);
  overflow: hidden;
  height: 160px;
  margin-bottom: 10px;
}

.x6-guide-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.x6-guide-card:hover .x6-guide-card-image img {
  transform: scale(1.05);
}

.x6-guide-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--x6-text-primary);
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.x6-guide-card:hover .x6-guide-card-title {
  color: var(--x6-primary);
}

/* Guides arrows */
.x6-guides-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-70%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--x6-bg);
  border: 1px solid var(--x6-border);
  color: var(--x6-text-primary);
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--x6-transition);
  z-index: 5;
  box-shadow: var(--x6-shadow);
}

.x6-guides-arrow:hover {
  background: var(--x6-primary);
  color: #fff;
  border-color: var(--x6-primary);
}

.x6-guides-prev { left: 0; }
.x6-guides-next { right: 0; }

/* ==========================================================================
   NEWSLETTER CTA
   ========================================================================== */
.x6-newsletter-cta {
  max-width: var(--x6-content-width);
  margin: 48px auto;
  padding: 44px 40px;
  background: var(--x6-bg-alt);
  border-radius: var(--x6-radius);
  text-align: center;
  border: 1px solid var(--x6-border);
}

.x6-newsletter-cta h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--x6-text-primary);
  margin: 0 0 8px;
}

.x6-newsletter-cta p {
  color: var(--x6-text-muted);
  margin: 0 0 24px;
  font-size: 15px;
}

.x6-newsletter-form {
  display: flex;
  max-width: 440px;
  margin: 0 auto;
  gap: 10px;
}

.x6-newsletter-form input[type="email"] {
  flex: 1;
  padding: 12px 18px;
  border: 1px solid var(--x6-border);
  border-radius: var(--x6-radius-pill);
  background: var(--x6-bg);
  color: var(--x6-text-primary);
  font-family: var(--x6-font);
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s;
}

.x6-newsletter-form input[type="email"]::placeholder {
  color: var(--x6-text-muted);
}

.x6-newsletter-form input[type="email"]:focus {
  border-color: var(--x6-primary);
  box-shadow: 0 0 0 3px var(--x6-primary-light);
}

.x6-newsletter-form button {
  padding: 12px 28px;
  background: var(--x6-primary);
  color: #fff;
  border: none;
  border-radius: var(--x6-radius-pill);
  font-family: var(--x6-font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--x6-transition);
  white-space: nowrap;
}

.x6-newsletter-form button:hover {
  background: var(--x6-primary-hover);
}

/* ==========================================================================
   HOT LINKS FOOTER
   ========================================================================== */
.x6-hot-links {
  background: var(--x6-bg-alt);
  border-top: 1px solid var(--x6-border);
  padding: 40px 0;
  text-align: center;
}

.x6-hot-links-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--x6-text-primary);
  margin: 0 0 16px;
}

.x6-hot-links-list {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.x6-hot-links-list a {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--x6-border);
  border-radius: var(--x6-radius-pill);
  color: var(--x6-text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: var(--x6-transition);
  background: var(--x6-bg);
}

.x6-hot-links-list a:hover {
  border-color: var(--x6-primary);
  color: var(--x6-primary);
}

.x6-hot-links-social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.x6-hot-links-social span {
  font-size: 13px;
  font-weight: 600;
  color: var(--x6-text-muted);
}

.x6-social-icons {
  display: flex;
  gap: 16px;
}

.x6-social-icons a {
  color: var(--x6-text-muted);
  transition: color 0.2s;
}

.x6-social-icons a:hover {
  color: var(--x6-text-primary);
}

/* ==========================================================================
   SINGLE POST PAGE
   ========================================================================== */
.x6-single-wrap {
  font-family: var(--x6-font);
  background: var(--x6-bg);
  color: var(--x6-text-secondary);
  min-height: 100vh;
  padding-bottom: 0;
}

/* Single-column article wrap (no sidebar — matches Plaisio) */
.x6-single-article-wrap {
  max-width: var(--x6-content-width);
  margin: 32px auto 0;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--x6-border);
}

/* Category page: two-column layout (grid + trending sidebar) */
.x6-category-two-col {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 36px;
  margin: 32px 0 48px;
}

.x6-category-main {
  min-width: 0;
}

.x6-category-sidebar {
  position: sticky;
  top: 80px;
  align-self: start;
}

/* Category grid uses 2 columns (narrower space) */
.x6-blog-grid-category {
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* Single Post Category */
.x6-single-category {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: 16px;
  text-decoration: none;
  transition: var(--x6-transition);
}

.x6-single-category:hover {
  opacity: 0.85;
}

/* Single Post Title */
.x6-single-title {
  font-size: 34px;
  font-weight: 900;
  color: var(--x6-text-primary);
  line-height: 1.2;
  margin: 0 0 16px;
  letter-spacing: -0.3px;
}

.x6-single-excerpt {
  font-size: 17px;
  color: var(--x6-text-muted);
  line-height: 1.6;
  margin: 0 0 24px;
}

/* Author + Share Row */
.x6-single-author-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--x6-border);
  flex-wrap: wrap;
  gap: 12px;
}

.x6-single-author-box {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.x6-single-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.x6-single-author-info {
  text-align: left;
}

.x6-single-author-name {
  font-weight: 600;
  color: var(--x6-text-primary);
  font-size: 14px;
}

.x6-single-author-name a {
  color: inherit;
  text-decoration: none;
}

.x6-single-author-name a:hover {
  color: var(--x6-primary);
}

.x6-single-author-date {
  color: var(--x6-text-muted);
  font-size: 13px;
}

.x6-single-reading-time {
  color: var(--x6-text-muted);
  font-size: 13px;
  padding-left: 14px;
  border-left: 1px solid var(--x6-border);
}

/* Inline share (right of author) */
.x6-single-share-inline {
  display: flex;
  gap: 14px;
}

.x6-single-share-inline a {
  color: var(--x6-text-muted);
  transition: color 0.2s;
}

.x6-single-share-inline a:hover {
  color: var(--x6-text-primary);
}

/* Hero Image */
.x6-single-hero-image {
  margin: 0 0 32px;
  padding: 0;
}

.x6-single-hero-image img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--x6-radius);
  box-shadow: var(--x6-shadow-sm);
}

/* Post Content */
.x6-single-content {
  line-height: 1.8;
  font-size: 17px;
  color: var(--x6-text-secondary);
  max-width: 100%;
  padding: 0;
  margin: 0 0 32px;
}

.x6-single-content h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--x6-text-primary);
  margin: 40px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--x6-border);
  position: relative;
}

.x6-single-content h2::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--x6-primary);
}

.x6-single-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--x6-text-primary);
  margin: 32px 0 12px;
}

.x6-single-content p {
  margin: 0 0 18px;
}

.x6-single-content a {
  color: var(--x6-primary);
  text-decoration: underline;
  text-decoration-color: rgba(238, 88, 53, 0.3);
  text-underline-offset: 3px;
  transition: var(--x6-transition);
}

.x6-single-content a:hover {
  text-decoration-color: var(--x6-primary);
}

.x6-single-content ul,
.x6-single-content ol {
  margin: 0 0 18px;
  padding-left: 24px;
}

.x6-single-content li {
  margin-bottom: 6px;
}

.x6-single-content strong {
  color: var(--x6-text-primary);
  font-weight: 600;
}

.x6-single-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--x6-radius-sm);
  margin: 20px 0;
}

.x6-single-content blockquote {
  border-left: 4px solid var(--x6-primary);
  margin: 24px 0;
  padding: 18px 22px;
  background: var(--x6-bg-alt);
  border-radius: 0 var(--x6-radius-sm) var(--x6-radius-sm) 0;
  font-style: italic;
  color: var(--x6-text-secondary);
}

.x6-single-content blockquote p:last-child {
  margin-bottom: 0;
}

.x6-single-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
  border-radius: var(--x6-radius-sm);
  overflow: hidden;
}

.x6-single-content thead {
  background: var(--x6-text-primary);
  color: #fff;
}

.x6-single-content th {
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
}

.x6-single-content td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--x6-border);
}

.x6-single-content tbody tr {
  background: var(--x6-bg);
}

.x6-single-content tbody tr:nth-child(even) {
  background: var(--x6-bg-alt);
}

/* Tags */
.x6-single-tags {
  margin: 24px 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.x6-tags-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--x6-text-muted);
  margin-right: 4px;
}

.x6-tag-item {
  display: inline-block;
  padding: 5px 14px;
  background: var(--x6-bg-alt);
  color: var(--x6-text-muted);
  border-radius: var(--x6-radius-pill);
  font-size: 12px;
  text-decoration: none;
  border: 1px solid var(--x6-border);
  transition: var(--x6-transition);
}

.x6-tag-item:hover {
  border-color: var(--x6-primary);
  color: var(--x6-primary);
  background: var(--x6-primary-light);
}

/* Social Sharing (bottom) */
.x6-single-share {
  margin: 32px 0;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-top: 1px solid var(--x6-border);
  border-bottom: 1px solid var(--x6-border);
}

.x6-share-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--x6-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-right: 8px;
}

.x6-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  text-decoration: none;
  transition: var(--x6-transition);
  color: #fff;
  border: none;
  cursor: pointer;
}

.x6-share-facebook { background: #1877f2; }
.x6-share-twitter  { background: #000000; }
.x6-share-linkedin { background: #0a66c2; }
.x6-share-email    { background: #6b7280; }

.x6-share-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Author Bio Box (bottom) */
.x6-author-bio-box {
  margin: 32px 0;
  padding: 24px;
  background: var(--x6-bg-alt);
  border-radius: var(--x6-radius);
  display: flex;
  gap: 18px;
  align-items: flex-start;
  border: 1px solid var(--x6-border-light);
}

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

.x6-author-bio-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--x6-text-primary);
  margin: 0 0 6px;
}

.x6-author-bio-name a {
  color: inherit;
  text-decoration: none;
}

.x6-author-bio-name a:hover {
  color: var(--x6-primary);
}

.x6-author-bio-desc {
  font-size: 14px;
  color: var(--x6-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Top Products in sidebar */
.x6-top-product {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--x6-border-light);
  text-decoration: none;
  color: inherit;
  align-items: center;
  transition: var(--x6-transition);
}

.x6-top-product:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.x6-top-product:hover .x6-top-product-name {
  color: var(--x6-primary);
}

.x6-top-product-image {
  width: 70px;
  height: 70px;
  border-radius: var(--x6-radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--x6-bg-alt);
}

.x6-top-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.x6-top-product-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--x6-text-primary);
  line-height: 1.35;
  transition: color 0.2s;
}

.x6-top-product-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--x6-primary);
  margin-top: 4px;
}

/* Trending Section (used in sidebar) */
.x6-trending-section {
  background: var(--x6-bg);
  border: 1px solid var(--x6-border-light);
  border-radius: var(--x6-radius);
  padding: 24px;
}

.x6-trending-section .x6-trending-header {
  font-size: 18px;
  font-weight: 800;
  color: var(--x6-text-primary);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--x6-border);
}

/* Related Posts */
.x6-related-posts {
  margin: 48px 0;
  padding-top: 48px;
  border-top: 1px solid var(--x6-border);
}

.x6-related-posts .x6-blog-section-header {
  margin-bottom: 24px;
}

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

/* ==========================================================================
   PAGINATION
   ========================================================================== */
.x6-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 40px 0;
}

.x6-pagination a,
.x6-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--x6-radius-sm);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: var(--x6-transition);
  color: var(--x6-text-muted);
  background: var(--x6-bg);
  border: 1px solid var(--x6-border);
}

.x6-pagination a:hover {
  border-color: var(--x6-primary);
  color: var(--x6-primary);
}

.x6-pagination .current {
  background: var(--x6-primary);
  color: #fff;
  border-color: var(--x6-primary);
}

/* ==========================================================================
   RESPONSIVE — Tablet (<=992px)
   ========================================================================== */
@media (max-width: 992px) {
  .x6-hero-two-col {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .x6-hero-trending {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--x6-border);
    padding-top: 24px;
  }

  .x6-newsroom-grid {
    grid-template-columns: 1fr;
  }

  .x6-category-two-col {
    grid-template-columns: 1fr;
  }

  .x6-category-sidebar {
    position: static;
  }

  .x6-blog-grid-category {
    grid-template-columns: repeat(2, 1fr);
  }

  .x6-blog-grid,
  .x6-related-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .x6-featured-title {
    font-size: 26px;
  }

  .x6-single-title {
    font-size: 30px;
  }

  .x6-nav-cta-buttons {
    display: none;
  }
}

/* ==========================================================================
   RESPONSIVE — Mobile (<=640px)
   ========================================================================== */
@media (max-width: 640px) {
  .x6-blog-container {
    padding: 0 16px;
  }

  .x6-blog-grid,
  .x6-related-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .x6-featured-title {
    font-size: 22px;
  }

  .x6-featured-image img {
    max-height: 240px;
  }

  .x6-single-title {
    font-size: 24px;
  }

  .x6-single-excerpt {
    font-size: 15px;
  }

  .x6-single-content {
    font-size: 16px;
  }

  .x6-single-content h2 {
    font-size: 20px;
  }

  .x6-single-content h3 {
    font-size: 18px;
  }

  .x6-single-author-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .x6-single-reading-time {
    border-left: none;
    padding-left: 0;
  }

  .x6-newsletter-form {
    flex-direction: column;
  }

  .x6-blog-cat-link {
    padding: 12px 14px;
    font-size: 12px;
  }

  .x6-single-share {
    flex-wrap: wrap;
  }

  .x6-post-card-image {
    height: 180px;
  }

  .x6-blog-grid-category {
    grid-template-columns: 1fr;
  }

  .x6-single-article-wrap {
    padding: 0 0 32px;
  }

  .x6-author-bio-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .x6-newsroom-large-image img {
    height: 220px;
  }

  .x6-guide-card {
    min-width: 180px;
    max-width: 180px;
  }

  .x6-guide-card-image {
    height: 130px;
  }
}

/* ==========================================================================
   UTILITY / OVERRIDES
   ========================================================================== */

/* Remove default WP post navigation */
.x6-single-wrap .nav-links,
.x6-single-wrap .post-navigation {
  display: none;
}

/* Override Elementor defaults inside blog */
.x6-blog-wrap .elementor-widget-container,
.x6-single-wrap .elementor-widget-container {
  padding: 0;
  margin: 0;
}

/* Smooth scroll */
.x6-blog-wrap,
.x6-single-wrap {
  scroll-behavior: smooth;
}

/* Selection color */
.x6-blog-wrap ::selection,
.x6-single-wrap ::selection {
  background: var(--x6-primary);
  color: #fff;
}

/* Fix WP admin bar overlap */
.admin-bar .x6-blog-categories-nav {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .x6-blog-categories-nav {
    top: 46px;
  }
}
