/*
Theme Name: StudentQuest Theme
Theme URI: https://studentquest.net
Author: StudentQuest
Description: Premium lightweight SEO-optimized theme for academic marketplace blog with Customizer button controls and structured star-rating schema.
Version: 4.0
License: GPL2
Text Domain: studentquest
*/

/* ── VARIABLES ── */
:root {
  --sq-navy:   #0b1d3a;
  --sq-cobalt: #1a52c8;
  --sq-sky:    #3b82f6;
  --sq-gold:   #f5a623;
  --sq-cream:  #faf7f2;
  --sq-white:  #ffffff;
  --sq-muted:  #64748b;
  --sq-border: #e2e8f0;
  --sq-radius: 10px;
  --sq-shadow: 0 4px 24px rgba(11,29,58,.10);
  --sq-shadow-lg: 0 12px 48px rgba(11,29,58,.16);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
  --transition: .25s cubic-bezier(.4,0,.2,1);

  /* Customizer-driven button tokens (defaults match Customizer defaults) */
  --btn-primary-bg:      #f5a623;
  --btn-primary-color:   #0b1d3a;
  --btn-primary-radius:  50px;
  --btn-secondary-bg:    transparent;
  --btn-secondary-color: #ffffff;
  --btn-secondary-border:#ffffff;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--sq-cream);
  color: var(--sq-navy);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 90%;
  max-width: 1120px;
  margin: 0 auto;
}

/* ── GLOBAL BUTTON ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .78rem 1.8rem;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
  border-radius: var(--btn-primary-radius);
}

.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-color);
}

.btn-primary:hover {
  opacity: .88;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}

.btn-outline {
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-color);
  border: 1.5px solid var(--btn-secondary-border);
}

.btn-outline:hover {
  background: rgba(255,255,255,.1);
}

/* ── NAV ── */
nav.site-nav {
  background: var(--sq-navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(11,29,58,.25);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--sq-white);
  letter-spacing: -.5px;
}

.site-logo span { color: var(--sq-gold); }

.nav-links { display: flex; gap: 2rem; list-style: none; }

.nav-links a {
  color: rgba(255,255,255,.75);
  font-size: .9rem;
  font-weight: 500;
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--sq-white); }

.nav-cta {
  background: var(--btn-primary-bg) !important;
  color: var(--btn-primary-color) !important;
  padding: .45rem 1.1rem !important;
  border-radius: var(--btn-primary-radius) !important;
  font-weight: 600 !important;
}

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--sq-navy) 0%, #1a3461 60%, #1e4080 100%);
  color: var(--sq-white);
  padding: 100px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(26,82,200,.35) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(245,166,35,.12) 0%, transparent 60%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(245,166,35,.18);
  border: 1px solid rgba(245,166,35,.4);
  color: var(--sq-gold);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .35rem .9rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.13;
  margin-bottom: 1.4rem;
  letter-spacing: -.02em;
}

.hero h1 em { font-style: normal; color: var(--sq-gold); }

.hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.78);
  max-width: 500px;
  margin-bottom: 2.4rem;
  line-height: 1.75;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── STAR RATING WIDGET ── */
.rating-widget {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50px;
  padding: .55rem 1.1rem;
  margin-bottom: 2rem;
}

.rating-stars {
  display: flex;
  gap: 2px;
}

.rating-stars .star {
  color: var(--sq-gold);
  font-size: 1.1rem;
  line-height: 1;
}

.rating-stars .star.half { position: relative; }

.rating-text {
  font-size: .85rem;
  color: rgba(255,255,255,.85);
  font-weight: 500;
}

.rating-text strong { color: var(--sq-white); }

/* hero card */
.hero-card {
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 20px;
  padding: 2rem;
  animation: float 5s ease-in-out infinite;
}

@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

.hero-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--sq-white);
  margin-bottom: 1.2rem;
}

.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.stat {
  background: rgba(255,255,255,.07);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--sq-gold);
  display: block;
}

.stat-label {
  font-size: .75rem;
  color: rgba(255,255,255,.65);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: .2rem;
}

/* ── TRUST BAR ── */
.trust-bar {
  background: var(--sq-white);
  border-bottom: 1px solid var(--sq-border);
  padding: 1.2rem 0;
}

.trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .85rem;
  font-weight: 500;
  color: var(--sq-muted);
}

.trust-icon {
  width: 20px; height: 20px;
  background: var(--sq-cobalt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-icon svg { width: 11px; height: 11px; fill: #fff; }

/* ── SECTIONS ── */
.section-header { text-align: center; margin-bottom: 3.5rem; }

.section-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sq-cobalt);
  margin-bottom: .8rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900;
  color: var(--sq-navy);
  line-height: 1.2;
  letter-spacing: -.02em;
}

.section-sub {
  color: var(--sq-muted);
  margin-top: .8rem;
  font-size: .95rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ── SERVICES ── */
.services { padding: 90px 0; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--sq-white);
  border: 1px solid var(--sq-border);
  border-radius: 16px;
  padding: 2rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sq-cobalt), var(--sq-sky));
  opacity: 0;
  transition: opacity var(--transition);
}

.service-card:hover { transform: translateY(-4px); box-shadow: var(--sq-shadow-lg); border-color: transparent; }
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, #e8f0fe, #c7d9fd);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  font-size: 1.5rem;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--sq-navy);
  margin-bottom: .6rem;
}

.service-card p { font-size: .88rem; color: var(--sq-muted); line-height: 1.65; margin-bottom: 1.2rem; }

.service-link {
  font-size: .83rem;
  font-weight: 600;
  color: var(--sq-cobalt);
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  transition: gap var(--transition);
}

.service-card:hover .service-link { gap: .6rem; }

/* ── HOW IT WORKS ── */
.how { background: var(--sq-white); padding: 90px 0; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 28px);
  right: calc(12.5% + 28px);
  height: 2px;
  background: linear-gradient(90deg, var(--sq-cobalt), var(--sq-sky));
  opacity: .25;
}

.step { text-align: center; }

.step-num {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--sq-cobalt), var(--sq-sky));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--sq-white);
  margin: 0 auto 1.2rem;
  box-shadow: 0 4px 16px rgba(26,82,200,.35);
}

.step h4 { font-weight: 700; color: var(--sq-navy); margin-bottom: .5rem; font-size: .98rem; }
.step p { font-size: .83rem; color: var(--sq-muted); line-height: 1.6; }

/* ── ARTICLES ── */
.articles { padding: 90px 0; }

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 3rem;
}

.article-card {
  background: var(--sq-white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--sq-border);
  transition: all var(--transition);
}

.article-card:hover { transform: translateY(-4px); box-shadow: var(--sq-shadow-lg); border-color: transparent; }

.article-thumb {
  height: 180px;
  background: linear-gradient(135deg, #e8f0fe 0%, #c7d9fd 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.article-body { padding: 1.4rem; }

.article-tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sq-cobalt);
  background: #e8f0fe;
  padding: .25rem .65rem;
  border-radius: 50px;
  margin-bottom: .9rem;
}

.article-card h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--sq-navy);
  line-height: 1.4;
  margin-bottom: .65rem;
  transition: color var(--transition);
}

.article-card:hover h3 { color: var(--sq-cobalt); }
.article-card p { font-size: .84rem; color: var(--sq-muted); line-height: 1.65; }

.article-meta {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--sq-border);
  font-size: .78rem;
  color: var(--sq-muted);
}

/* ── REVIEWS SECTION ── */
.reviews { padding: 90px 0; background: var(--sq-cream); }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.review-card {
  background: var(--sq-white);
  border: 1px solid var(--sq-border);
  border-radius: 16px;
  padding: 1.8rem;
  transition: all var(--transition);
}

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

.review-stars { display: flex; gap: 2px; margin-bottom: 1rem; }
.review-stars .star { color: var(--sq-gold); font-size: 1rem; }

.review-card p {
  font-size: .9rem;
  color: var(--sq-muted);
  line-height: 1.7;
  margin-bottom: 1.2rem;
  font-style: italic;
}

.reviewer {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.reviewer-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sq-cobalt), var(--sq-sky));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: .9rem;
  flex-shrink: 0;
}

.reviewer-name { font-weight: 600; font-size: .88rem; color: var(--sq-navy); }
.reviewer-meta { font-size: .75rem; color: var(--sq-muted); }

/* aggregate rating bar */
.aggregate-rating {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  background: var(--sq-white);
  border: 1px solid var(--sq-border);
  border-radius: 16px;
  padding: 2rem 2.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.agg-score { text-align: center; }

.agg-number {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 900;
  color: var(--sq-navy);
  line-height: 1;
}

.agg-stars { display: flex; gap: 3px; justify-content: center; margin: .4rem 0; }
.agg-stars .star { color: var(--sq-gold); font-size: 1.3rem; }
.agg-count { font-size: .82rem; color: var(--sq-muted); }

.agg-bars { flex: 1; min-width: 200px; }

.bar-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .45rem;
}

.bar-label { font-size: .8rem; color: var(--sq-muted); white-space: nowrap; width: 36px; text-align: right; }

.bar-track {
  flex: 1;
  height: 8px;
  background: #e8f0fe;
  border-radius: 50px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--sq-cobalt), var(--sq-sky));
  border-radius: 50px;
}

.bar-pct { font-size: .78rem; color: var(--sq-muted); width: 32px; }

/* ── CTA BANNER ── */
.cta-banner {
  background: linear-gradient(135deg, var(--sq-navy) 0%, #1e4080 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 100% at 50% 0%, rgba(26,82,200,.5), transparent 70%);
}

.cta-banner-inner { position: relative; z-index: 1; }

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 900;
  color: var(--sq-white);
  margin-bottom: 1rem;
  letter-spacing: -.02em;
}

.cta-banner p { color: rgba(255,255,255,.72); max-width: 480px; margin: 0 auto 2.2rem; font-size: .95rem; }

/* ── SIDEBAR ── */
aside.widget-area { padding: 2rem 0; }

.widget { margin-bottom: 2rem; }

.widget h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--sq-navy);
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--sq-cobalt);
}

.widget ul { list-style: none; }

.widget li { margin-bottom: .5rem; }

.widget a {
  font-size: .88rem;
  color: var(--sq-muted);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: .4rem;
}

.widget a::before { content: '→'; color: var(--sq-cobalt); font-size: .75rem; }
.widget a:hover { color: var(--sq-cobalt); }

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

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-brand .site-logo { font-size: 1.4rem; margin-bottom: 1rem; display: block; }
.footer-brand p { font-size: .85rem; line-height: 1.7; max-width: 240px; }

.footer-col h4 {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sq-white);
  margin-bottom: 1.2rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .6rem; }

.footer-col a {
  font-size: .85rem;
  color: rgba(255,255,255,.55);
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--sq-white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.8rem;
  font-size: .8rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: rgba(255,255,255,.45); transition: color var(--transition); }
.footer-links a:hover { color: rgba(255,255,255,.9); }

/* footer rating badge */
.footer-rating {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50px;
  padding: .4rem 1rem;
  font-size: .78rem;
  color: rgba(255,255,255,.7);
  margin-top: .8rem;
}

.footer-rating .star { color: var(--sq-gold); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-text > * { animation: fadeUp .65s ease both; }
.hero-text > *:nth-child(1) { animation-delay: .05s; }
.hero-text > *:nth-child(2) { animation-delay: .15s; }
.hero-text > *:nth-child(3) { animation-delay: .25s; }
.hero-text > *:nth-child(4) { animation-delay: .35s; }
.hero-text > *:nth-child(5) { animation-delay: .45s; }
.hero-card { animation: fadeUp .65s .5s ease both; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .services-grid, .articles-grid, .reviews-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps::before { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .services-grid, .articles-grid, .reviews-grid, .steps { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .trust-inner { gap: 1.5rem; }
  .aggregate-rating { flex-direction: column; gap: 1.5rem; }
}

/* ═══════════════════════════════════════════════════════════
   ARCHIVE PAGE
═══════════════════════════════════════════════════════════ */

/* Hero */
.archive-hero {
  background: linear-gradient(135deg, var(--sq-navy) 0%, #1e3a6e 60%, var(--sq-cobalt) 100%);
  padding: 3.5rem 0;
  color: #fff;
}
.archive-hero-inner {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.archive-hero-icon {
  font-size: 3rem;
  line-height: 1;
  background: rgba(255,255,255,.1);
  border-radius: 16px;
  padding: .75rem 1rem;
  flex-shrink: 0;
}
.archive-hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: .5rem;
  line-height: 1.2;
}
.archive-hero-text p {
  color: rgba(255,255,255,.8);
  font-size: 1.0625rem;
  max-width: 560px;
  margin-bottom: .4rem;
}
.archive-count {
  font-size: .875rem;
  color: rgba(255,255,255,.55);
}
.archive-count strong { color: var(--sq-gold); }

/* Filter bar */
.archive-filter-bar {
  background: var(--sq-white);
  border-bottom: 1px solid var(--sq-border);
  position: sticky;
  top: 64px;
  z-index: 90;
  box-shadow: 0 2px 8px rgba(11,29,58,.05);
}
.archive-filter-inner {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 0;
  overflow-x: auto;
  scrollbar-width: none;
  flex-wrap: nowrap;
}
.archive-filter-inner::-webkit-scrollbar { display: none; }

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .9rem;
  background: var(--sq-cream);
  border: 1.5px solid var(--sq-border);
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--sq-navy);
  white-space: nowrap;
  text-decoration: none;
  transition: all var(--transition);
  flex-shrink: 0;
}
.filter-chip:hover { border-color: var(--sq-cobalt); color: var(--sq-cobalt); }
.filter-chip-active { background: var(--sq-cobalt); border-color: var(--sq-cobalt); color: #fff; font-weight: 600; }
.filter-chip-active:hover { color: #fff; background: var(--sq-navy); border-color: var(--sq-navy); }
.filter-chip-count { font-size: .6875rem; opacity: .65; }

/* Two-column layout */
.archive-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
  padding-top: 3rem;
  padding-bottom: 4rem;
}
@media (max-width: 900px) { .archive-layout { grid-template-columns: 1fr; } }

.archive-main { min-width: 0; }

/* Featured first post card */
.archive-featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--sq-white);
  border: 1px solid var(--sq-border);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 2.5rem;
  box-shadow: var(--sq-shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}
.archive-featured-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sq-shadow-lg);
}
@media (max-width: 640px) { .archive-featured-card { grid-template-columns: 1fr; } }

.archive-featured-img {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  background: var(--sq-cream);
}
.archive-featured-img a { display: block; height: 100%; }
.archive-featured-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.archive-featured-card:hover .archive-featured-img img { transform: scale(1.04); }
.archive-featured-img--empty { display: flex; align-items: center; justify-content: center; font-size: 4rem; }
.archive-featured-badge {
  position: absolute;
  top: 1rem; left: 1rem;
  background: var(--sq-gold);
  color: var(--sq-navy);
  font-size: .6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: 3px 10px;
  border-radius: 999px;
}

.archive-featured-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .75rem;
}
.archive-featured-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  line-height: 1.25;
  margin: 0;
}
.archive-featured-title a { color: var(--sq-navy); text-decoration: none; }
.archive-featured-title a:hover { color: var(--sq-cobalt); }
.archive-featured-excerpt {
  font-size: .9375rem;
  color: var(--sq-muted);
  line-height: 1.65;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.archive-featured-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: .5rem;
}
.archive-author-mini { display: flex; align-items: center; gap: .6rem; }
.archive-avatar { border-radius: 50%; width: 36px; height: 36px; object-fit: cover; border: 2px solid var(--sq-border); }
.archive-author-name { display: block; font-size: .875rem; font-weight: 600; color: var(--sq-navy); }

/* Grid sub-header */
.archive-grid-header { margin-bottom: 1rem; }

/* Make articles-grid 3-col inside archive */
.archive-articles-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .archive-articles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .archive-articles-grid { grid-template-columns: 1fr; } }

/* Small button variant */
.btn-sm { padding: .5rem 1.1rem; font-size: .8125rem; }

/* Pagination */
.archive-pagination {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--sq-border);
}
.archive-pagination .nav-links { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; }
.archive-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 .75rem;
  border: 1.5px solid var(--sq-border);
  border-radius: 8px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--sq-navy);
  text-decoration: none;
  transition: all var(--transition);
}
.archive-pagination .page-numbers:hover,
.archive-pagination .page-numbers.current {
  background: var(--sq-cobalt);
  border-color: var(--sq-cobalt);
  color: #fff;
}

/* No results */
.archive-no-results { text-align: center; padding: 5rem 0; }
.archive-no-icon { font-size: 4rem; display: block; margin-bottom: 1.5rem; }
.archive-no-results h2 { font-family: var(--font-display); font-size: 1.75rem; color: var(--sq-navy); margin-bottom: 1rem; }
.archive-no-results p { color: var(--sq-muted); margin-bottom: 2rem; }

/* Admin bar offset for sticky filter */
.admin-bar .archive-filter-bar { top: 96px; }
@media screen and (max-width: 782px) { .admin-bar .archive-filter-bar { top: 110px; } }


/* ═══════════════════════════════════════════════════════════
   SINGLE POST PAGE
═══════════════════════════════════════════════════════════ */

/* Breadcrumb bar */
.single-breadcrumb-bar {
  background: var(--sq-cream);
  border-bottom: 1px solid var(--sq-border);
  padding: .6rem 0;
}
.single-breadcrumb {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
  font-size: .78rem;
  color: var(--sq-muted);
}
.single-breadcrumb a { color: var(--sq-muted); text-decoration: none; }
.single-breadcrumb a:hover { color: var(--sq-cobalt); }
.single-breadcrumb span:last-child { color: var(--sq-navy); font-weight: 500; }

/* Two-column layout */
.single-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
  padding-top: 3rem;
  padding-bottom: 4rem;
}
@media (max-width: 900px) { .single-layout { grid-template-columns: 1fr; } }

.single-main { min-width: 0; }

/* Category tag on single */
.single-cat-tag { margin-bottom: 1rem; display: inline-block; }

/* Title */
.single-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--sq-navy);
  line-height: 1.22;
  margin-bottom: 1.25rem;
}

/* Meta row */
.single-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--sq-border);
}
.single-meta-avatar {
  border-radius: 50%;
  width: 36px; height: 36px;
  object-fit: cover;
  border: 2px solid var(--sq-cobalt);
  flex-shrink: 0;
}
.single-meta-author {
  display: block;
  font-size: .875rem;
  font-weight: 700;
  color: var(--sq-navy);
  text-decoration: none;
}
.single-meta-author:hover { color: var(--sq-cobalt); }
.single-meta-details {
  font-size: .78rem;
  color: var(--sq-muted);
  display: block;
  margin-top: 1px;
}

/* Top CTA strip */
.single-top-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 1.5px solid var(--sq-cobalt);
  border-radius: 12px;
  padding: 1.1rem 1.4rem;
  margin-bottom: 2rem;
}
.single-top-cta-text {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--sq-navy);
  flex: 1;
}

/* Featured image */
.single-feat-img {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 2rem;
}
.single-feat-img img { width: 100%; height: auto; display: block; }

/* Body text */
.single-body {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: #1e293b;
}
.single-body h2, .single-body h3, .single-body h4 {
  font-family: var(--font-display);
  color: var(--sq-navy);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
.single-body h2 { font-size: 1.75rem; }
.single-body h3 { font-size: 1.375rem; }
.single-body p  { margin-bottom: 1.25rem; }
.single-body a  { color: var(--sq-cobalt); text-decoration: underline; text-underline-offset: 3px; }
.single-body ul, .single-body ol { margin: 1rem 0 1.25rem 1.5rem; }
.single-body li { margin-bottom: .4rem; }
.single-body blockquote {
  border-left: 4px solid var(--sq-cobalt);
  background: #eff6ff;
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  border-radius: 0 10px 10px 0;
}
.single-body img { border-radius: 10px; max-width: 100%; height: auto; }

/* CTA box — extends existing .cta-box style */
.cta-box {
  background: linear-gradient(135deg, var(--sq-navy), #1e4080);
  border-radius: 16px;
  padding: 2rem;
  margin-top: 3rem;
  margin-bottom: 2rem;
  color: #fff;
}
.cta-box-eyebrow {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--sq-gold);
  margin-bottom: .4rem;
}
.cta-box h3 { font-family: var(--font-display); font-size: 1.375rem; color: #fff; margin-bottom: 1rem; }
.cta-box-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-direction: column; gap: .4rem; }
.cta-box-list li { font-size: .875rem; color: rgba(255,255,255,.88); }
.cta-box-list li::before { content: '✓'; color: var(--sq-gold); font-weight: 700; margin-right: .5rem; }
.cta-box-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* FREE badge in button */
.btn-free-badge {
  font-size: .65rem;
  font-weight: 800;
  background: rgba(255,255,255,.2);
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 5px;
  vertical-align: middle;
  letter-spacing: .04em;
}

/* Tags */
.single-tags {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin: 2rem 0 1.5rem;
}
.single-tags-label { font-size: .875rem; font-weight: 600; color: var(--sq-muted); }
.single-tag-link {
  display: inline-block;
  padding: 3px .8rem;
  background: var(--sq-cream);
  border: 1.5px solid var(--sq-border);
  border-radius: 999px;
  font-size: .78rem;
  color: var(--sq-muted);
  text-decoration: none;
  transition: all var(--transition);
}
.single-tag-link:hover { border-color: var(--sq-cobalt); color: var(--sq-cobalt); }

/* Share bar */
.single-share {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
  padding: 1rem 0;
  border-top: 1px solid var(--sq-border);
  border-bottom: 1px solid var(--sq-border);
  margin-bottom: 2.5rem;
}
.single-share-label { font-size: .875rem; font-weight: 600; color: var(--sq-muted); }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .85rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: filter .15s, transform .15s;
}
.share-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.share-twitter  { background: #1da1f2; color: #fff; }
.share-facebook { background: #1877f2; color: #fff; }
.share-linkedin { background: #0a66c2; color: #fff; }
.share-copy     { background: var(--sq-cream); color: var(--sq-navy); border: 1.5px solid var(--sq-border); }

/* Author box */
.single-author-box {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--sq-cream);
  border: 1px solid var(--sq-border);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2.5rem;
}
.single-author-avatar { border-radius: 50%; width: 72px; height: 72px; object-fit: cover; flex-shrink: 0; }
.single-author-label { display: block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--sq-muted); margin-bottom: .2rem; }
.single-author-name { display: block; font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; color: var(--sq-navy); text-decoration: none; margin-bottom: .4rem; }
.single-author-name:hover { color: var(--sq-cobalt); }
.single-author-bio { font-size: .875rem; color: var(--sq-muted); line-height: 1.6; margin: 0; }

/* Prev / Next */
.single-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 3rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--sq-border);
  border-bottom: 1px solid var(--sq-border);
}
@media (max-width: 540px) { .single-post-nav { grid-template-columns: 1fr; } }
.post-nav-item {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: 1rem 1.25rem;
  background: var(--sq-cream);
  border: 1.5px solid var(--sq-border);
  border-radius: 12px;
  text-decoration: none;
  transition: all var(--transition);
}
.post-nav-item:hover { border-color: var(--sq-cobalt); background: #eff6ff; }
.post-nav-next { text-align: right; }
.post-nav-dir { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--sq-muted); }
.post-nav-title { font-size: .875rem; font-weight: 600; color: var(--sq-navy); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-nav-item:hover .post-nav-title { color: var(--sq-cobalt); }

/* Related posts */
.single-related { margin-top: 3rem; }
.single-related-header { margin-bottom: 1.25rem; }
.single-related-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) { .single-related-grid { grid-template-columns: 1fr; } }

/* Bottom CTA banner */
.single-bottom-cta {
  background: linear-gradient(135deg, var(--sq-navy) 0%, #1e4080 100%);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  text-align: center;
  margin-top: 3rem;
  color: #fff;
}
.single-bottom-cta-eyebrow {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--sq-gold);
  margin-bottom: .6rem;
}
.single-bottom-cta h2 { font-family: var(--font-display); color: #fff; font-size: clamp(1.25rem, 3vw, 1.875rem); margin-bottom: .75rem; }
.single-bottom-cta > p { color: rgba(255,255,255,.75); font-size: .9375rem; max-width: 480px; margin: 0 auto 1.75rem; }
.single-bottom-cta-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1rem; }
.single-bottom-cta-note { font-size: .72rem; color: rgba(255,255,255,.38); margin: 0; }


/* ═══════════════════════════════════════════════════════════════
   SINGLE POST PAGE — imported from AcademiaPress v2
   Uses StudentQuest CSS variables throughout
═══════════════════════════════════════════════════════════════ */

/* Breadcrumb bar */
.sq-breadcrumb-bar {
  background: #f8fafc;
  border-bottom: 1px solid var(--sq-border);
  padding: .6rem 0;
}
.sq-breadcrumb {
  display: flex; align-items: center; gap: .4rem;
  flex-wrap: wrap; font-size: .78rem; color: var(--sq-muted);
}
.sq-breadcrumb a { color: var(--sq-muted); text-decoration: none; transition: color var(--transition); }
.sq-breadcrumb a:hover { color: var(--sq-cobalt); }
.sq-breadcrumb-current { color: var(--sq-navy); font-weight: 500; }

/* Two-column page wrapper */
.sq-single-wrap { padding-top: 2.5rem; padding-bottom: 4rem; }
.sq-single-layout {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .sq-single-layout { grid-template-columns: 1fr 300px; }
}

/* Category badge */
.sq-cat-badge {
  display: inline-block;
  background: #dbeafe; color: var(--sq-cobalt);
  font-size: .6875rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  padding: 3px .85rem; border-radius: 999px;
  margin-bottom: 1rem; text-decoration: none;
  transition: background var(--transition);
}
.sq-cat-badge:hover { background: var(--sq-cobalt); color: #fff; }

/* Title */
.sq-single-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800; color: var(--sq-navy);
  line-height: 1.22; margin-bottom: 1.25rem;
}

/* Meta row */
.sq-single-meta {
  display: flex; align-items: center; gap: .75rem;
  flex-wrap: wrap; margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--sq-border);
}
.sq-meta-avatar {
  border-radius: 50%; width: 36px; height: 36px;
  object-fit: cover; border: 2px solid var(--sq-cobalt); flex-shrink: 0;
}
.sq-meta-author { display: block; font-size: .875rem; font-weight: 700; color: var(--sq-navy); text-decoration: none; }
.sq-meta-author:hover { color: var(--sq-cobalt); }
.sq-meta-details { font-size: .78rem; color: var(--sq-muted); display: block; margin-top: 1px; }

/* Top CTA strip */
.sq-top-cta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 1.5px solid var(--sq-cobalt);
  border-radius: 12px; padding: 1.1rem 1.4rem; margin-bottom: 2rem;
}
.sq-top-cta-text { font-size: .9375rem; font-weight: 600; color: var(--sq-navy); flex: 1; margin: 0; }

/* Featured image */
.sq-feat-img { border-radius: 16px; overflow: hidden; margin-bottom: 2rem; }
.sq-feat-img img { width: 100%; height: auto; display: block; }

/* FREE badge */
.sq-free-badge {
  font-size: .65rem; font-weight: 800; letter-spacing: .04em;
  background: rgba(255,255,255,.25); padding: 1px 6px;
  border-radius: 4px; margin-left: 5px; vertical-align: middle;
}

/* Article body text */
.sq-single-body { font-size: 1.0625rem; line-height: 1.85; color: #1e293b; }
.sq-single-body h2, .sq-single-body h3, .sq-single-body h4 {
  font-family: var(--font-display); color: var(--sq-navy);
  margin-top: 2.5rem; margin-bottom: 1rem;
}
.sq-single-body h2 { font-size: 1.75rem; }
.sq-single-body h3 { font-size: 1.375rem; }
.sq-single-body p  { margin-bottom: 1.25rem; }
.sq-single-body a  { color: var(--sq-cobalt); text-decoration: underline; text-underline-offset: 3px; }
.sq-single-body ul, .sq-single-body ol { margin: 1rem 0 1.25rem 1.5rem; }
.sq-single-body li { margin-bottom: .4rem; }
.sq-single-body blockquote {
  border-left: 4px solid var(--sq-cobalt); background: #eff6ff;
  padding: 1rem 1.5rem; margin: 2rem 0;
  font-style: italic; border-radius: 0 10px 10px 0;
}
.sq-single-body img { border-radius: 10px; max-width: 100%; height: auto; }

/* Expert help box */
.sq-expert-box {
  background: #f8fafc;
  border: 1px solid var(--sq-border);
  border-top: 4px solid var(--sq-cobalt);
  border-radius: 14px; padding: 1.75rem 2rem;
  margin: 2.5rem 0;
}
.sq-expert-box-eyebrow {
  font-size: .6875rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--sq-muted); margin-bottom: .4rem;
}
.sq-expert-box h3 { font-family: var(--font-display); font-size: 1.25rem; color: var(--sq-navy); margin-bottom: 1rem; }
.sq-expert-box-list { list-style: none; padding: 0; margin: 0 0 1.25rem; display: flex; flex-direction: column; gap: .35rem; }
.sq-expert-box-list li { font-size: .875rem; color: #1e293b; }
.sq-expert-box-list li::before { content: '✓'; color: var(--sq-cobalt); font-weight: 700; margin-right: .4rem; }
.sq-expert-box-btns { display: flex; gap: .75rem; flex-wrap: wrap; }

/* Tags */
.sq-post-tags { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin: 2rem 0 1.5rem; }
.sq-tags-label { font-size: .875rem; font-weight: 600; color: var(--sq-muted); }
.sq-tag-chip {
  display: inline-block; padding: 3px .8rem;
  background: #f8fafc; border: 1.5px solid var(--sq-border);
  border-radius: 999px; font-size: .78rem; color: var(--sq-muted);
  text-decoration: none; transition: all var(--transition);
}
.sq-tag-chip:hover { border-color: var(--sq-cobalt); color: var(--sq-cobalt); }

/* Share bar */
.sq-share-bar {
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
  padding: 1rem 0;
  border-top: 1px solid var(--sq-border);
  border-bottom: 1px solid var(--sq-border);
  margin-bottom: 2.5rem;
}
.sq-share-label { font-size: .875rem; font-weight: 600; color: var(--sq-muted); }
.sq-share-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .35rem .85rem; border-radius: 999px;
  font-size: .78rem; font-weight: 600; text-decoration: none;
  border: none; cursor: pointer;
  transition: filter .15s, transform .15s;
}
.sq-share-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.sq-share-twitter  { background: #1da1f2; color: #fff; }
.sq-share-facebook { background: #1877f2; color: #fff; }
.sq-share-linkedin { background: #0a66c2; color: #fff; }
.sq-share-copy     { background: #f8fafc; color: var(--sq-navy); border: 1.5px solid var(--sq-border) !important; }

/* Author box */
.sq-author-box {
  display: flex; gap: 1.25rem; align-items: flex-start;
  background: #f8fafc; border: 1px solid var(--sq-border);
  border-radius: 16px; padding: 1.5rem; margin-bottom: 2.5rem;
}
.sq-author-avatar { border-radius: 50%; width: 72px; height: 72px; object-fit: cover; flex-shrink: 0; }
.sq-author-label { display: block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--sq-muted); margin-bottom: .2rem; }
.sq-author-name { display: block; font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; color: var(--sq-navy); text-decoration: none; margin-bottom: .4rem; }
.sq-author-name:hover { color: var(--sq-cobalt); }
.sq-author-bio { font-size: .875rem; color: var(--sq-muted); line-height: 1.6; margin: 0; }

/* Prev / Next nav */
.sq-post-nav {
  display: grid; gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--sq-border);
  border-bottom: 1px solid var(--sq-border);
  margin-bottom: 3rem;
}
@media (min-width: 540px) { .sq-post-nav { grid-template-columns: 1fr 1fr; } }
.sq-nav-item {
  display: flex; flex-direction: column; gap: .35rem;
  padding: 1rem 1.25rem;
  background: #f8fafc; border: 1.5px solid var(--sq-border);
  border-radius: 12px; text-decoration: none;
  transition: all var(--transition);
}
.sq-nav-item:hover { border-color: var(--sq-cobalt); background: #eff6ff; }
.sq-nav-next { text-align: right; }
.sq-nav-dir { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--sq-muted); }
.sq-nav-title {
  font-size: .875rem; font-weight: 600; color: var(--sq-navy); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sq-nav-item:hover .sq-nav-title { color: var(--sq-cobalt); }

/* Related posts */
.sq-related { margin-top: 3rem; }
.sq-related-header { margin-bottom: 1rem; }
.sq-related-grid { grid-template-columns: repeat(3, 1fr) !important; }
@media (max-width: 640px) { .sq-related-grid { grid-template-columns: 1fr !important; } }

/* Bottom CTA banner */
.sq-bottom-cta {
  background: linear-gradient(135deg, var(--sq-navy) 0%, #1e4080 100%);
  border-radius: 20px; padding: 3rem 2.5rem;
  text-align: center; margin-top: 3rem; color: #fff;
}
.sq-bottom-cta-eyebrow {
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--sq-gold); margin-bottom: .5rem;
}
.sq-bottom-cta h2 { font-family: var(--font-display); color: #fff; font-size: clamp(1.25rem, 3vw, 1.875rem); margin-bottom: .75rem; }
.sq-bottom-cta > p { color: rgba(255,255,255,.75); font-size: .9375rem; max-width: 480px; margin: 0 auto 1.75rem; }
.sq-bottom-cta-btns { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1rem; }
.sq-bottom-cta-note { font-size: .72rem; color: rgba(255,255,255,.38); margin: 0; }

/* Sidebar */
.sq-single-sidebar { min-width: 0; }
.sq-sidebar-sticky {
  position: sticky; top: 80px;
  max-height: calc(100vh - 100px);
  overflow-y: auto; scrollbar-width: thin;
}
.sq-sidebar-sticky::-webkit-scrollbar { width: 3px; }
.sq-sidebar-sticky::-webkit-scrollbar-thumb { background: var(--sq-border); border-radius: 2px; }

/* Sidebar CTA widget — navy gradient */
.sq-sidebar-cta {
  background: linear-gradient(135deg, var(--sq-navy), #1e4080) !important;
  color: #fff; border: none !important;
}
.sq-sidebar-cta h3 { color: #fff; font-size: 1rem; margin-bottom: .5rem; }
.sq-sidebar-cta p  { color: rgba(255,255,255,.82); font-size: .8125rem; margin-bottom: 1rem; }
.sq-sidebar-cta ul { list-style: none; padding: 0; margin: 0 0 1.25rem; display: flex; flex-direction: column; gap: .3rem; }
.sq-sidebar-cta li { font-size: .8125rem; color: rgba(255,255,255,.9); }

/* Stats grid in sidebar */
.sq-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.sq-stat-box { background: #f8fafc; border-radius: 8px; padding: .75rem; text-align: center; }
.sq-stat-num { display: block; font-size: 1.25rem; font-weight: 800; color: var(--sq-cobalt); font-family: var(--font-display); }
.sq-stat-lbl { font-size: .6875rem; color: var(--sq-muted); line-height: 1.3; }

/* Popular list in sidebar */
.sq-popular-list { list-style: none; padding: 0; margin: 0; }
.sq-popular-list li { display: flex; gap: .6rem; align-items: flex-start; padding: .6rem 0; border-bottom: 1px solid var(--sq-border); }
.sq-popular-list li:last-child { border: none; padding-bottom: 0; }
.sq-popular-thumb { flex-shrink: 0; width: 52px; height: 52px; border-radius: 6px; overflow: hidden; display: block; }
.sq-popular-thumb img { width: 52px; height: 52px; object-fit: cover; display: block; }
.sq-popular-icon { flex-shrink: 0; width: 52px; height: 52px; background: #dbeafe; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.sq-popular-title { font-size: .8125rem; font-weight: 600; color: var(--sq-navy); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35; text-decoration: none; }
.sq-popular-title:hover { color: var(--sq-cobalt); }
.sq-popular-meta { display: block; font-size: .6875rem; color: var(--sq-muted); margin-top: 2px; }

/* Small button variant */
.btn-sm { padding: .45rem 1rem !important; font-size: .8125rem !important; }


/* ═══════════════════════════════════════════════════════════════
   ARCHIVE PAGE — imported from AcademiaPress v2
   Uses StudentQuest CSS variables throughout
═══════════════════════════════════════════════════════════════ */

/* Archive hero */
.sq-archive-hero {
  background: linear-gradient(135deg, var(--sq-navy) 0%, #1e3a6e 60%, var(--sq-cobalt) 100%);
  padding: 3.5rem 0; color: #fff;
}
.sq-archive-hero-inner {
  display: flex; align-items: flex-start; gap: 1.5rem; flex-wrap: wrap;
}
.sq-archive-icon {
  font-size: 3rem; line-height: 1;
  background: rgba(255,255,255,.1); border-radius: 16px;
  padding: .75rem 1rem; flex-shrink: 0;
}
.sq-archive-hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800; color: #fff;
  margin-bottom: .5rem; line-height: 1.2;
}
.sq-archive-hero-text p { color: rgba(255,255,255,.8); font-size: 1.0625rem; max-width: 560px; margin-bottom: .4rem; }
.sq-archive-count { font-size: .875rem; color: rgba(255,255,255,.55); }
.sq-archive-count strong { color: var(--sq-gold); }

/* Filter bar */
.sq-filter-bar {
  background: #fff; border-bottom: 1px solid var(--sq-border);
  position: sticky; top: 64px; z-index: 90;
  box-shadow: 0 2px 8px rgba(11,29,58,.05);
}
.sq-filter-inner {
  display: flex; align-items: center; gap: .5rem;
  padding: .75rem 0; overflow-x: auto;
  scrollbar-width: none; flex-wrap: nowrap;
}
.sq-filter-inner::-webkit-scrollbar { display: none; }

.sq-chip {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .35rem .9rem;
  background: #f8fafc; border: 1.5px solid var(--sq-border);
  border-radius: 999px; font-size: .8125rem; font-weight: 500;
  color: var(--sq-navy); white-space: nowrap; text-decoration: none;
  transition: all var(--transition); flex-shrink: 0;
}
.sq-chip:hover { border-color: var(--sq-cobalt); color: var(--sq-cobalt); }
.sq-chip-active { background: var(--sq-cobalt); border-color: var(--sq-cobalt); color: #fff; font-weight: 600; }
.sq-chip-active:hover { background: var(--sq-navy); border-color: var(--sq-navy); color: #fff; }
.sq-chip-count { font-size: .6875rem; opacity: .65; }

/* Two-column archive layout */
.sq-archive-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem; align-items: start;
  padding-top: 3rem; padding-bottom: 4rem;
}
@media (max-width: 900px) { .sq-archive-layout { grid-template-columns: 1fr; } }

.sq-archive-main { min-width: 0; }

/* Featured card */
.sq-featured-card {
  display: grid; grid-template-columns: 1fr 1fr;
  background: #fff; border: 1px solid var(--sq-border);
  border-radius: 20px; overflow: hidden;
  margin-bottom: 2.5rem; box-shadow: var(--sq-shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}
.sq-featured-card:hover { transform: translateY(-3px); box-shadow: var(--sq-shadow-lg); }
@media (max-width: 640px) { .sq-featured-card { grid-template-columns: 1fr; } }

.sq-featured-img { position: relative; overflow: hidden; min-height: 260px; background: #f8fafc; }
.sq-featured-img a { display: block; height: 100%; }
.sq-featured-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; display: block; }
.sq-featured-card:hover .sq-featured-img img { transform: scale(1.04); }
.sq-featured-img-empty { display: flex; align-items: center; justify-content: center; font-size: 4rem; }

.sq-featured-badge {
  position: absolute; top: 1rem; left: 1rem;
  background: var(--sq-gold); color: var(--sq-navy);
  font-size: .6875rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  padding: 3px 10px; border-radius: 999px;
}

.sq-featured-body {
  padding: 2rem; display: flex; flex-direction: column;
  justify-content: center; gap: .75rem;
}
.sq-featured-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  line-height: 1.25; margin: 0;
}
.sq-featured-title a { color: var(--sq-navy); text-decoration: none; }
.sq-featured-title a:hover { color: var(--sq-cobalt); }
.sq-featured-excerpt {
  font-size: .9375rem; color: var(--sq-muted); line-height: 1.65; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.sq-featured-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-top: .5rem;
}
.sq-featured-author { display: flex; align-items: center; gap: .6rem; }
.sq-featured-avatar { border-radius: 50%; width: 36px; height: 36px; object-fit: cover; border: 2px solid var(--sq-border); }
.sq-featured-author-name { display: block; font-size: .875rem; font-weight: 600; color: var(--sq-navy); }

/* Grid sub-header */
.sq-grid-header { margin-bottom: 1rem; margin-top: .5rem; }

/* Archive grid — 3 cols, uses existing .articles-grid */
.sq-archive-grid { grid-template-columns: repeat(3, 1fr) !important; }
@media (max-width: 900px) { .sq-archive-grid { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 540px) { .sq-archive-grid { grid-template-columns: 1fr !important; } }

/* Pagination */
.sq-archive-pagination {
  margin-top: 3rem; padding-top: 2rem;
  border-top: 1px solid var(--sq-border);
}
.sq-archive-pagination .nav-links { display: flex; gap: .5rem; flex-wrap: wrap; }
.sq-archive-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 .75rem;
  border: 1.5px solid var(--sq-border); border-radius: 8px;
  font-size: .875rem; font-weight: 500; color: var(--sq-navy);
  text-decoration: none; transition: all var(--transition);
}
.sq-archive-pagination .page-numbers:hover,
.sq-archive-pagination .page-numbers.current {
  background: var(--sq-cobalt); border-color: var(--sq-cobalt); color: #fff;
}

/* No results */
.sq-no-results { text-align: center; padding: 5rem 0; }
.sq-no-results h2 { font-family: var(--font-display); font-size: 1.75rem; color: var(--sq-navy); margin-bottom: 1rem; }
.sq-no-results p { color: var(--sq-muted); margin-bottom: 2rem; }

/* Admin bar offset */
.admin-bar .sq-filter-bar { top: 96px; }
@media screen and (max-width: 782px) { .admin-bar .sq-filter-bar { top: 110px; } }

