/*
Theme Name:  QuoteBloom
Theme URI:   https://yourwebsite.com
Description: A clean, professional WordPress theme for articles and quotes websites. Fully customizable via WordPress Customizer. AdSense-ready, fast-loading, Google Web Vitals optimized.
Author:      QuoteBloom
Author URI:  https://yourwebsite.com
Version:     1.0.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: quotebloom
Tags: blog, custom-colors, custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, right-sidebar, threaded-comments, translation-ready
*/

/* ═══════════════════════════════════════════
   DESIGN TOKENS / CSS VARIABLES
   (Overridden dynamically by Customizer)
═══════════════════════════════════════════ */
:root {
  --qb-primary:      #5a8f70;
  --qb-primary-light:#e8f4ed;
  --qb-primary-mid:  #c8e0d0;
  --qb-secondary:    #8b7db8;
  --qb-secondary-light:#ede9f7;
  --qb-accent:       #d4896a;
  --qb-accent-light: #faeee8;
  --qb-sky:          #5b8fb9;
  --qb-sky-light:    #e4eef8;
  --qb-hero-bg:      #f0f8f4;
  --qb-body-bg:      #f8f6f1;
  --qb-white:        #ffffff;
  --qb-text:         #1e2433;
  --qb-text2:        #4a5168;
  --qb-muted:        #8e96a8;
  --qb-border:       #e8e4dc;
  --qb-border2:      #f0ece4;
  --qb-footer-bg:    #1e2433;
  --qb-radius:       12px;
  --qb-radius-lg:    18px;
  --qb-shadow-sm:    0 2px 10px rgba(0,0,0,0.05);
  --qb-shadow:       0 4px 20px rgba(0,0,0,0.08);
  --qb-font-heading: 'DM Serif Display', Georgia, serif;
  --qb-font-body:    'Outfit', system-ui, sans-serif;
}

/* ═══════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════ */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--qb-body-bg);
  color: var(--qb-text);
  font-family: var(--qb-font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea { font-family: var(--qb-font-body); }
ul { list-style: none; }
h1,h2,h3,h4,h5,h6 { font-family: var(--qb-font-heading); line-height: 1.3; color: var(--qb-text); }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* Screen reader text */
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px);
  clip-path: inset(50%); height: 1px; margin: -1px;
  overflow: hidden; padding: 0; position: absolute; width: 1px;
  word-wrap: normal !important;
}

/* ═══════════════════════════════════════════
   LAYOUT HELPERS
═══════════════════════════════════════════ */
.qb-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.qb-container-sm { max-width: 860px; margin: 0 auto; padding: 0 24px; }

/* ═══════════════════════════════════════════
   HEADER
═══════════════════════════════════════════ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--qb-white);
  border-bottom: 1px solid var(--qb-border);
  box-shadow: var(--qb-shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  gap: 20px;
}

/* Logo */
.site-branding { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.site-branding .custom-logo { height: 40px; width: auto; }
.qb-logo-mark {
  width: 36px; height: 36px;
  background: var(--qb-primary);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--qb-font-heading);
  font-style: italic;
  font-size: 18px;
  color: #fff;
  flex-shrink: 0;
}
.site-title a {
  font-family: var(--qb-font-heading);
  font-size: 1.4rem;
  color: var(--qb-text);
  font-weight: normal;
}
.site-title a span { color: var(--qb-primary); }

/* Primary Navigation */
.nav-primary { display: flex; align-items: center; gap: 2px; flex: 1; justify-content: center; }
.nav-primary ul { display: flex; align-items: center; gap: 2px; }
.nav-primary ul li { position: relative; }
.nav-primary ul li a {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--qb-text2);
  padding: 7px 15px;
  border-radius: 100px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-primary ul li a:hover,
.nav-primary ul li.current-menu-item > a,
.nav-primary ul li.current-menu-ancestor > a {
  color: var(--qb-primary);
  background: var(--qb-primary-light);
}

/* Dropdown */
.nav-primary ul li ul {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--qb-white);
  border: 1px solid var(--qb-border);
  border-radius: var(--qb-radius);
  padding: 8px;
  min-width: 200px;
  box-shadow: var(--qb-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.2s;
  z-index: 300;
  flex-direction: column;
  display: flex;
}
.nav-primary ul li:hover > ul { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-primary ul li ul li a {
  border-radius: 8px;
  font-size: 0.85rem;
  padding: 8px 12px;
}

/* Header right */
.header-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.header-search-toggle {
  width: 38px; height: 38px;
  background: var(--qb-body-bg);
  border: 1px solid var(--qb-border);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--qb-muted);
  transition: all 0.2s;
  font-size: 15px;
}
.header-search-toggle:hover { border-color: var(--qb-primary); color: var(--qb-primary); background: var(--qb-primary-light); }

/* Hamburger */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px; height: 38px;
  background: var(--qb-body-bg);
  border: 1px solid var(--qb-border);
  border-radius: 10px;
  cursor: pointer;
}
.hamburger-btn span { display: block; width: 18px; height: 2px; background: var(--qb-text); border-radius: 2px; transition: all 0.3s; }
.hamburger-btn.is-open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger-btn.is-open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger-btn.is-open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Search Bar */
.header-search-bar {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--qb-white);
  border-bottom: 1px solid var(--qb-border);
  padding: 16px 24px;
  display: none;
  box-shadow: var(--qb-shadow);
}
.header-search-bar.is-open { display: block; }
.header-search-bar form { max-width: 600px; margin: 0 auto; display: flex; gap: 10px; }
.header-search-bar input {
  flex: 1;
  border: 1.5px solid var(--qb-border);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 0.92rem;
  outline: none;
  background: var(--qb-body-bg);
  transition: border-color 0.2s;
}
.header-search-bar input:focus { border-color: var(--qb-primary); }
.header-search-bar button {
  background: var(--qb-primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

/* ═══════════════════════════════════════════
   MOBILE NAV DRAWER
═══════════════════════════════════════════ */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 190;
  pointer-events: none;
}
.mobile-nav-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  transition: opacity 0.3s;
}
.mobile-nav-drawer {
  position: absolute;
  top: 0; right: 0;
  width: min(320px, 85vw);
  height: 100%;
  background: var(--qb-white);
  padding: 80px 0 40px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
  box-shadow: -4px 0 40px rgba(0,0,0,0.12);
}
.mobile-nav.is-open { pointer-events: all; }
.mobile-nav.is-open .mobile-nav-overlay { opacity: 1; }
.mobile-nav.is-open .mobile-nav-drawer { transform: translateX(0); }

.mn-section { padding: 0 24px; margin-bottom: 28px; }
.mn-section h4 {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--qb-muted);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--qb-border2);
  font-family: var(--qb-font-body);
}
.mn-section a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--qb-text2);
  padding: 11px 0;
  border-bottom: 1px solid var(--qb-border2);
  transition: color 0.2s;
}
.mn-section a:last-child { border: none; }
.mn-section a:hover { color: var(--qb-primary); }
.mn-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* ═══════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════ */
.site-hero {
  background: var(--qb-hero-bg);
  border-bottom: 1px solid var(--qb-primary-mid);
  padding: 64px 24px 56px;
}
.hero-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(90,143,112,0.12);
  border: 1px solid rgba(90,143,112,0.3);
  color: var(--qb-primary);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--qb-primary);
  border-radius: 50%;
}
.hero-heading {
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  color: var(--qb-text);
  margin-bottom: 14px;
}
.hero-heading em { font-style: italic; color: var(--qb-primary); }
.hero-subheading {
  font-size: 0.98rem;
  color: var(--qb-text2);
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 440px;
}
.hero-cats-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--qb-muted);
  margin-bottom: 12px;
}
.hero-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-cat-pill {
  display: inline-block;
  background: var(--qb-white);
  border: 1.5px solid var(--qb-border);
  color: var(--qb-text2);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 100px;
  transition: all 0.2s;
  box-shadow: var(--qb-shadow-sm);
}
.hero-cat-pill:hover { border-color: var(--qb-primary); color: var(--qb-primary); background: var(--qb-primary-light); }

/* Hero featured card */
.hero-featured-wrap {}
.hero-featured-card {
  background: var(--qb-white);
  border-radius: var(--qb-radius-lg);
  overflow: hidden;
  border: 1px solid var(--qb-border);
  box-shadow: var(--qb-shadow);
  display: block;
  transition: box-shadow 0.25s;
}
.hero-featured-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.12); }
.hf-thumb {
  height: 200px;
  overflow: hidden;
  background: var(--qb-primary-light);
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.hf-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hf-thumb-placeholder { font-size: 52px; opacity: 0.3; }
.hf-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--qb-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 100px;
  letter-spacing: 0.04em;
}
.hf-body { padding: 22px; }
.hf-meta { font-size: 0.74rem; color: var(--qb-muted); font-weight: 500; margin-bottom: 9px; display: flex; gap: 8px; flex-wrap: wrap; }
.hf-meta span { display: flex; align-items: center; gap: 4px; }
.hf-title { font-size: 1.18rem; margin-bottom: 9px; color: var(--qb-text); line-height: 1.4; }
.hf-excerpt { font-size: 0.86rem; color: var(--qb-text2); line-height: 1.65; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qb-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--qb-primary);
}
.qb-read-more::after { content: '→'; transition: margin-left 0.2s; }
.qb-read-more:hover::after { margin-left: 4px; }

/* ═══════════════════════════════════════════
   BREADCRUMB
═══════════════════════════════════════════ */
.qb-breadcrumb-bar {
  background: var(--qb-white);
  border-bottom: 1px solid var(--qb-border2);
}
.qb-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  font-size: 0.78rem;
  color: var(--qb-muted);
  flex-wrap: wrap;
}
.qb-breadcrumb a { color: var(--qb-muted); transition: color 0.2s; }
.qb-breadcrumb a:hover { color: var(--qb-primary); }
.qb-breadcrumb .sep { color: var(--qb-border); font-size: 11px; }
.qb-breadcrumb .current { color: var(--qb-primary); font-weight: 600; }

/* ═══════════════════════════════════════════
   SITE BODY / LAYOUT
═══════════════════════════════════════════ */
.site-main-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 44px;
  align-items: start;
}
.site-main-wrap.no-sidebar { grid-template-columns: 1fr; }

/* ═══════════════════════════════════════════
   SECTION HEADER
═══════════════════════════════════════════ */
.qb-sec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--qb-border2);
}
.qb-sec-title {
  font-size: 1.25rem;
  color: var(--qb-text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.qb-sec-bar {
  display: block;
  width: 4px; height: 22px;
  background: linear-gradient(180deg, var(--qb-primary), var(--qb-secondary));
  border-radius: 4px;
  flex-shrink: 0;
}
.qb-sec-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--qb-primary);
  padding: 6px 14px;
  border: 1.5px solid var(--qb-primary-mid);
  border-radius: 100px;
  background: var(--qb-primary-light);
  transition: all 0.2s;
}
.qb-sec-link:hover { background: var(--qb-primary); color: #fff; border-color: var(--qb-primary); }

/* ═══════════════════════════════════════════
   POST CARDS (Homepage / Archive)
═══════════════════════════════════════════ */
.posts-list { display: flex; flex-direction: column; gap: 0; }

article.post-card {
  background: var(--qb-white);
  border: 1px solid var(--qb-border);
  border-radius: var(--qb-radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: 200px 1fr;
  margin-bottom: 16px;
  transition: box-shadow 0.25s, border-color 0.25s;
}
article.post-card:hover {
  box-shadow: var(--qb-shadow);
  border-color: var(--qb-primary-mid);
}
article.post-card:last-child { margin-bottom: 0; }

/* Thumbnail */
.pc-thumb {
  position: relative;
  min-height: 155px;
  overflow: hidden;
  background: var(--qb-primary-light);
  display: flex; align-items: center; justify-content: center;
}
.pc-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
article.post-card:hover .pc-thumb img { transform: scale(1.04); }
.pc-thumb-icon { font-size: 40px; opacity: 0.35; }
.pc-cat-badge {
  position: absolute;
  bottom: 10px; left: 10px;
  font-size: 0.67rem;
  font-weight: 700;
  color: #fff;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--qb-primary);
}

/* Card body */
.pc-body { padding: 20px 22px; display: flex; flex-direction: column; justify-content: center; }
.pc-meta { display: flex; align-items: center; gap: 8px; font-size: 0.73rem; color: var(--qb-muted); font-weight: 500; margin-bottom: 7px; flex-wrap: wrap; }
.pc-meta-dot { color: var(--qb-border); font-size: 8px; }
.pc-title {
  font-size: 1.06rem;
  color: var(--qb-text);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}
article.post-card:hover .pc-title { color: var(--qb-primary); }
.pc-excerpt {
  font-size: 0.84rem;
  color: var(--qb-text2);
  line-height: 1.65;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pc-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.pc-rm {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--qb-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.pc-rm::after { content: '→'; }
.pc-read-time { font-size: 0.72rem; color: var(--qb-muted); }

/* Thumb color variants */
.thumb-sage   { background: #ddeee4; }
.thumb-lav    { background: #e2ddf0; }
.thumb-peach  { background: #f4e0d4; }
.thumb-sky    { background: #d4e8f4; }
.thumb-gold   { background: #f0eacc; }
.thumb-rose   { background: #f0d8de; }

/* ═══════════════════════════════════════════
   QUOTES SECTION
═══════════════════════════════════════════ */
.quotes-section {
  margin-top: 12px;
  padding-top: 40px;
  border-top: 2px solid var(--qb-border2);
}
.quotes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

/* Quote card */
.qb-quote-card {
  background: var(--qb-white);
  border: 1px solid var(--qb-border);
  border-radius: var(--qb-radius);
  padding: 22px 20px 18px;
  position: relative;
  overflow: hidden;
  display: block;
  transition: box-shadow 0.25s, border-color 0.25s;
}
.qb-quote-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
}
.qb-quote-card.accent-sage::before  { background: var(--qb-primary); }
.qb-quote-card.accent-lav::before   { background: var(--qb-secondary); }
.qb-quote-card.accent-peach::before { background: var(--qb-accent); }
.qb-quote-card.accent-sky::before   { background: var(--qb-sky); }
.qb-quote-card:hover { box-shadow: var(--qb-shadow); border-color: var(--qb-primary-mid); }

.q-mark {
  font-family: var(--qb-font-heading);
  font-size: 3rem;
  line-height: 0.8;
  display: block;
  margin-bottom: 8px;
  opacity: 0.3;
  color: var(--qb-primary);
}
.accent-lav   .q-mark { color: var(--qb-secondary); }
.accent-peach .q-mark { color: var(--qb-accent); }
.accent-sky   .q-mark { color: var(--qb-sky); }

.q-text {
  font-family: var(--qb-font-heading);
  font-style: italic;
  font-size: 0.96rem;
  color: var(--qb-text);
  line-height: 1.68;
  margin-bottom: 16px;
}
.q-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--qb-border2);
}
.q-author-name { font-size: 0.8rem; font-weight: 700; color: var(--qb-text); }
.q-author-title { font-size: 0.7rem; color: var(--qb-muted); }
.q-copy-btn {
  width: 32px; height: 32px;
  background: var(--qb-body-bg);
  border: 1.5px solid var(--qb-border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  color: var(--qb-muted);
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.q-copy-btn:hover { border-color: var(--qb-primary); color: var(--qb-primary); background: var(--qb-primary-light); }

/* ═══════════════════════════════════════════
   SINGLE POST
═══════════════════════════════════════════ */
.single-post-wrap { background: var(--qb-white); border: 1px solid var(--qb-border); border-radius: var(--qb-radius-lg); overflow: hidden; margin-bottom: 40px; }
.single-post-header { padding: 36px 40px 28px; border-bottom: 1px solid var(--qb-border2); }
.single-post-cats { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.single-post-cat {
  display: inline-block;
  background: var(--qb-primary-light);
  color: var(--qb-primary);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.single-post-title { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--qb-text); margin-bottom: 14px; line-height: 1.25; }
.single-post-meta { display: flex; align-items: center; gap: 14px; font-size: 0.8rem; color: var(--qb-muted); flex-wrap: wrap; }
.single-post-meta span { display: flex; align-items: center; gap: 5px; }

.single-post-thumb { width: 100%; max-height: 400px; overflow: hidden; }
.single-post-thumb img { width: 100%; height: 400px; object-fit: cover; }

.single-post-content { padding: 36px 40px 40px; }
.single-post-content p { font-size: 1rem; color: var(--qb-text2); line-height: 1.8; margin-bottom: 1.2rem; }
.single-post-content h2 { font-size: 1.5rem; margin: 2rem 0 1rem; color: var(--qb-text); }
.single-post-content h3 { font-size: 1.25rem; margin: 1.75rem 0 0.75rem; color: var(--qb-text); }
.single-post-content ul, .single-post-content ol { padding-left: 1.4rem; margin-bottom: 1.2rem; }
.single-post-content ul { list-style: disc; }
.single-post-content ol { list-style: decimal; }
.single-post-content li { font-size: 1rem; color: var(--qb-text2); line-height: 1.75; margin-bottom: 0.4rem; }
.single-post-content blockquote {
  border-left: 4px solid var(--qb-primary);
  padding: 14px 20px;
  background: var(--qb-primary-light);
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
  font-family: var(--qb-font-heading);
  font-style: italic;
  color: var(--qb-text);
}
.single-post-content img { border-radius: 10px; margin: 1.5rem 0; }
.single-post-content a { color: var(--qb-primary); text-decoration: underline; }

/* Post tags */
.single-post-tags { padding: 0 40px 28px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.single-post-tags-label { font-size: 0.78rem; font-weight: 700; color: var(--qb-muted); }
.single-tag {
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--qb-body-bg);
  border: 1.5px solid var(--qb-border);
  color: var(--qb-text2);
  padding: 4px 12px;
  border-radius: 100px;
  transition: all 0.2s;
}
.single-tag:hover { border-color: var(--qb-primary); color: var(--qb-primary); background: var(--qb-primary-light); }

/* Post quotes section (single post) */
.post-quotes-section { padding: 36px 40px; border-top: 2px solid var(--qb-border2); }
.post-quotes-title { font-size: 1.15rem; color: var(--qb-text); margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.post-quotes-title span { display: block; width: 4px; height: 18px; background: linear-gradient(180deg, var(--qb-primary), var(--qb-secondary)); border-radius: 4px; }
.post-quotes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .post-quotes-grid { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════
   AUTHOR BOX
═══════════════════════════════════════════ */
.author-box {
  background: var(--qb-primary-light);
  border: 1px solid var(--qb-primary-mid);
  border-radius: var(--qb-radius);
  padding: 24px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 32px;
}
.author-avatar { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--qb-primary-mid); }
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-name { font-size: 1rem; font-weight: 700; color: var(--qb-text); margin-bottom: 4px; font-family: var(--qb-font-body); }
.author-bio { font-size: 0.84rem; color: var(--qb-text2); line-height: 1.65; }

/* ═══════════════════════════════════════════
   PAGINATION
═══════════════════════════════════════════ */
.qb-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 40px 0 0;
}
.qb-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px; height: 40px;
  background: var(--qb-white);
  border: 1.5px solid var(--qb-border);
  border-radius: 10px;
  color: var(--qb-text2);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0 12px;
  transition: all 0.2s;
}
.qb-pagination .page-numbers:hover { border-color: var(--qb-primary); color: var(--qb-primary); background: var(--qb-primary-light); }
.qb-pagination .page-numbers.current { background: var(--qb-primary); border-color: var(--qb-primary); color: #fff; }
.qb-pagination .page-numbers.dots { border-color: transparent; background: transparent; }

/* ═══════════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════════ */
.site-sidebar { position: sticky; top: 82px; }

.qb-widget {
  background: var(--qb-white);
  border: 1px solid var(--qb-border);
  border-radius: var(--qb-radius);
  overflow: hidden;
  margin-bottom: 22px;
}
.qb-widget:last-child { margin-bottom: 0; }
.qb-widget .widget-title {
  padding: 14px 20px;
  background: var(--qb-primary-light);
  border-bottom: 1px solid var(--qb-primary-mid);
  font-size: 0.95rem;
  color: var(--qb-text);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--qb-font-heading);
  font-weight: normal;
}
.qb-widget .widget-title::before {
  content: '';
  display: block;
  width: 8px; height: 8px;
  background: linear-gradient(135deg, var(--qb-primary), var(--qb-secondary));
  border-radius: 50%;
  flex-shrink: 0;
}
.qb-widget-body { padding: 16px 20px; }

/* Built-in widget overrides */
.qb-widget ul { list-style: none; }
.qb-widget ul li { border-bottom: 1px solid var(--qb-border2); }
.qb-widget ul li:last-child { border: none; }
.qb-widget ul li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  font-size: 0.87rem;
  color: var(--qb-text2);
  transition: color 0.2s;
  font-weight: 500;
}
.qb-widget ul li a:hover { color: var(--qb-primary); }
.qb-widget ul li a .post-count,
.qb-widget ul li .post-count { background: var(--qb-primary-light); color: var(--qb-primary); font-size: 0.7rem; font-weight: 700; padding: 2px 9px; border-radius: 100px; }

/* Recent posts widget */
.qb-widget .wp-block-latest-posts li,
.qb-widget .recent-posts li { border-bottom: 1px solid var(--qb-border2); padding: 10px 0; }
.qb-widget .recent-post-item { display: grid; grid-template-columns: 54px 1fr; gap: 12px; align-items: start; }
.rpi-thumb { width: 54px; height: 50px; border-radius: 8px; overflow: hidden; background: var(--qb-primary-light); display: flex; align-items: center; justify-content: center; font-size: 20px; opacity: 0.5; flex-shrink: 0; }
.rpi-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 1; }
.rpi-title { font-size: 0.82rem; font-weight: 600; color: var(--qb-text); line-height: 1.4; margin-bottom: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color 0.2s; }
.rpi-date { font-size: 0.7rem; color: var(--qb-muted); }
.recent-post-item:hover .rpi-title { color: var(--qb-primary); }

/* Tag cloud */
.qb-tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.qb-tag-cloud a, .tag-cloud-link {
  font-size: 0.75rem !important;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  border: 1.5px solid var(--qb-border);
  color: var(--qb-text2) !important;
  background: var(--qb-body-bg);
  transition: all 0.2s;
}
.qb-tag-cloud a:hover, .tag-cloud-link:hover { border-color: var(--qb-primary); color: var(--qb-primary) !important; background: var(--qb-primary-light); }

/* ═══════════════════════════════════════════
   NO POSTS
═══════════════════════════════════════════ */
.no-posts { text-align: center; padding: 60px 24px; background: var(--qb-white); border-radius: var(--qb-radius); border: 1px solid var(--qb-border); }
.no-posts h2 { font-size: 1.4rem; margin-bottom: 10px; }
.no-posts p { color: var(--qb-text2); }

/* ═══════════════════════════════════════════
   PAGE TEMPLATE
═══════════════════════════════════════════ */
.page-wrap { background: var(--qb-white); border: 1px solid var(--qb-border); border-radius: var(--qb-radius-lg); padding: 40px; }
.page-title { font-size: 2rem; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 2px solid var(--qb-border2); }

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
#site-footer { background: var(--qb-footer-bg); padding: 60px 24px 0; }
.footer-grid {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .site-logo-footer { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand .site-logo-footer .logo-mark-f { background: var(--qb-primary); }
.footer-brand .logo-text-f { font-family: var(--qb-font-heading); font-size: 1.3rem; color: #fff; }
.footer-brand .logo-text-f span { color: var(--qb-primary); }
.footer-desc { font-size: 0.85rem; color: rgba(255,255,255,0.45); line-height: 1.75; max-width: 255px; margin-bottom: 20px; }

/* Footer newsletter */
.footer-nl p { font-size: 0.77rem; color: rgba(255,255,255,0.35); margin-bottom: 9px; }
.footer-nl form { display: flex; gap: 6px; }
.footer-nl input {
  flex: 1;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 9px 13px;
  font-size: 0.82rem;
  color: #fff;
  outline: none;
}
.footer-nl input::placeholder { color: rgba(255,255,255,0.3); }
.footer-nl button { background: var(--qb-primary); border: none; border-radius: 8px; padding: 9px 14px; color: #fff; font-size: 0.8rem; font-weight: 700; cursor: pointer; }
.footer-nl button:hover { background: #4a7a5e; }

/* Footer columns */
.footer-col h4 { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--qb-primary); margin-bottom: 16px; font-family: var(--qb-font-body); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a { font-size: 0.85rem; color: rgba(255,255,255,0.45); transition: color 0.2s; display: flex; align-items: center; gap: 6px; }
.footer-col ul li a::before { content: ''; width: 4px; height: 4px; background: var(--qb-primary); border-radius: 50%; opacity: 0.5; flex-shrink: 0; transition: opacity 0.2s; }
.footer-col ul li a:hover { color: rgba(255,255,255,0.9); }
.footer-col ul li a:hover::before { opacity: 1; }

/* Footer bottom */
.footer-bottom {
  max-width: 1160px;
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,0.3); }
.footer-links { display: flex; gap: 18px; }
.footer-links a { font-size: 0.78rem; color: rgba(255,255,255,0.3); transition: color 0.2s; }
.footer-links a:hover { color: rgba(255,255,255,0.65); }

/* ═══════════════════════════════════════════
   BACK TO TOP
═══════════════════════════════════════════ */
#back-to-top {
  position: fixed;
  bottom: 26px; right: 26px;
  width: 44px; height: 44px;
  background: var(--qb-primary);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  z-index: 99;
  box-shadow: 0 6px 18px rgba(90,143,112,0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.2s;
  display: flex; align-items: center; justify-content: center;
}
#back-to-top.visible { opacity: 1; pointer-events: all; }
#back-to-top:hover { transform: translateY(-3px); }

/* ═══════════════════════════════════════════
   COMMENTS
═══════════════════════════════════════════ */
.comments-area { background: var(--qb-white); border: 1px solid var(--qb-border); border-radius: var(--qb-radius-lg); padding: 32px 40px; margin-bottom: 30px; }
.comments-title { font-size: 1.2rem; margin-bottom: 24px; }
.comment-list { list-style: none; }
.comment-body { padding: 20px 0; border-bottom: 1px solid var(--qb-border2); }
.comment-author b { font-size: 0.9rem; font-weight: 700; }
.comment-meta { font-size: 0.75rem; color: var(--qb-muted); margin-bottom: 10px; }
.comment-content p { font-size: 0.9rem; color: var(--qb-text2); }
.comment-respond { margin-top: 32px; }
.comment-reply-title { font-size: 1.1rem; margin-bottom: 20px; }
.comment-form label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--qb-text2); margin-bottom: 5px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  border: 1.5px solid var(--qb-border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-family: var(--qb-font-body);
  color: var(--qb-text);
  background: var(--qb-body-bg);
  outline: none;
  margin-bottom: 14px;
  transition: border-color 0.2s;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--qb-primary); }
.comment-form .submit {
  background: var(--qb-primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 11px 26px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.comment-form .submit:hover { background: #4a7a5e; }

/* ═══════════════════════════════════════════
   UTILITY
═══════════════════════════════════════════ */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .site-main-wrap { grid-template-columns: 1fr; }
  .site-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 860px) {
  .nav-primary { display: none; }
  .hamburger-btn { display: flex; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-featured-wrap { display: none; }
  article.post-card { grid-template-columns: 1fr; }
  .pc-thumb { min-height: 160px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .single-post-header, .single-post-content, .single-post-tags, .post-quotes-section { padding-left: 24px; padding-right: 24px; }
  .post-quotes-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .site-hero { padding: 48px 20px 40px; }
  .site-main-wrap { padding: 32px 20px 60px; }
  .quotes-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .comments-area { padding: 24px 20px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ═══════════════════════════════════════════
   WORDPRESS SPECIFIC
═══════════════════════════════════════════ */
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.8rem; color: var(--qb-muted); text-align: center; margin-top: 6px; }
.sticky { }
.alignleft { float: left; margin-right: 20px; margin-bottom: 10px; }
.alignright { float: right; margin-left: 20px; margin-bottom: 10px; }
.aligncenter { display: block; margin: 0 auto 20px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 12px; margin: 20px 0; }
.gallery-item img { border-radius: 8px; width: 100%; }
