/* ===========================================
   3Bird Theme — Per-Page Styles
   Consolidates all inline <style> blocks from
   the original HTML files, scoped by WP body
   classes where needed.
   =========================================== */


/* -------------------------------------------
   Front Page (home)
   ------------------------------------------- */

.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 768px) {
  .overview-grid { grid-template-columns: 1fr; }
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem 2.5rem;
}
@media (max-width: 900px) {
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .benefits-grid { grid-template-columns: 1fr; }
}

/* Tech stack grid */
.tech-stack-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.tech-pill {
  display: flex; align-items: center; gap: .6rem;
  padding: .75rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: .9rem; font-weight: 600; color: var(--text);
  transition: var(--transition);
  box-shadow: var(--shadow);
}
.tech-pill:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.tech-pill img {
  width: 32px; height: 32px; object-fit: contain;
}


/* -------------------------------------------
   About Page  (.page-template-about)
   ------------------------------------------- */

.page-template-about .value-card {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}
.page-template-about .value-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.page-template-about .value-num {
  font-size: 2rem; font-weight: 900;
  color: var(--border);
  line-height: 1;
  min-width: 2.5rem;
}

.page-template-about .team-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}
.page-template-about .team-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.page-template-about .team-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
}

.page-template-about .timeline { position: relative; padding-left: 2rem; }
.page-template-about .timeline::before {
  content: '';
  position: absolute; left: 11px; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(to bottom, var(--blue), var(--violet));
}
.page-template-about .timeline-item { position: relative; margin-bottom: 2.5rem; }
.page-template-about .timeline-dot {
  position: absolute; left: -2rem; top: .25rem;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--blue);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--blue);
  display: flex; align-items: center; justify-content: center;
}
.page-template-about .timeline-year {
  font-size: .8rem; font-weight: 700;
  color: var(--blue); margin-bottom: .25rem;
}
.page-template-about .timeline-item h4 { margin-bottom: .25rem; }
.page-template-about .timeline-item p  { font-size: .9rem; color: var(--text-muted); }

/* Founder photo — duotone overlay */
.page-template-about .founder-photo-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 380px;
}
.page-template-about .founder-photo-wrap img {
  display: block; width: 100%; height: 480px;
  object-fit: cover; object-position: 54% 22%;
}
.page-template-about .founder-photo-wrap::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(10,22,40,0.55) 0%, rgba(29,78,216,0.45) 55%, rgba(124,58,237,0.35) 100%);
  mix-blend-mode: color;
  pointer-events: none;
}
.page-template-about .founder-photo-wrap::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.07'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  pointer-events: none;
}
.page-template-about .founder-photo-badge {
  position: absolute; bottom: 1.25rem; left: 1.25rem; z-index: 2;
  background: rgba(10,22,40,0.82); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--white); border-radius: 10px;
  padding: .6rem .9rem;
  font-size: .8rem; font-weight: 600;
  display: flex; align-items: center; gap: .5rem;
}
.page-template-about .founder-photo-badge i { color: var(--gold-light); }

/* Mission & Vision cards */
.page-template-about .mv-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 2.75rem 2.5rem;
  height: 100%;
  color: #fff;
  box-shadow: var(--shadow-lg);
  transition: transform .35s ease, box-shadow .35s ease;
  animation: mv-float 5s ease-in-out infinite;
}
.page-template-about .mv-card:nth-child(2) { animation-delay: -2.5s; }
@keyframes mv-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
.page-template-about .mv-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 32px 64px -12px rgba(0,0,0,.35);
  animation-play-state: paused;
}
.page-template-about .mv-card-blue   { background: linear-gradient(145deg, #0f172a 0%, #1d4ed8 60%, #3b82f6 100%); }
.page-template-about .mv-card-violet { background: linear-gradient(145deg, #0f172a 0%, #7c3aed 60%, #a78bfa 100%); }
.page-template-about .mv-card::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, rgba(255,255,255,.35), rgba(255,255,255,0) 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.page-template-about .mv-bg-icon {
  position: absolute;
  right: -1rem; bottom: -1.5rem;
  font-size: 10rem;
  opacity: .08;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.page-template-about .mv-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(4px);
}
.page-template-about .mv-card h3 {
  font-size: 1.5rem;
  margin-bottom: .875rem;
  color: #fff;
}
.page-template-about .mv-card p  { color: rgba(255,255,255,.82); line-height: 1.7; }
.page-template-about .mv-label {
  display: inline-block;
  font-size: .7rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase;
  background: rgba(255,255,255,.15);
  border-radius: 99px;
  padding: .2rem .65rem;
  margin-bottom: 1rem;
  color: rgba(255,255,255,.75);
}


/* -------------------------------------------
   Services People  (.page-template-services-people)
   ------------------------------------------- */

.page-template-services-people .pricing-card {
  text-align: center; padding: 2.5rem 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--white);
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.page-template-services-people .pricing-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); }
.page-template-services-people .pricing-card.featured {
  background: linear-gradient(135deg, #1e3a8a, var(--blue));
  border-color: transparent;
}
.page-template-services-people .pricing-card.featured * { color: var(--white) !important; }
.page-template-services-people .pricing-card.featured .pricing-badge { background: rgba(255,255,255,.2); color: white; }
.page-template-services-people .pricing-badge {
  display: inline-block; font-size: .75rem; font-weight: 700;
  background: var(--light-blue); color: var(--blue);
  padding: .3rem .8rem; border-radius: 20px;
  margin-bottom: 1rem; text-transform: uppercase; letter-spacing: .05em;
}
.page-template-services-people .pricing-price { font-size: 2.5rem; font-weight: 900; margin: .5rem 0; }
.page-template-services-people .pricing-price span { font-size: 1rem; font-weight: 500; }
.page-template-services-people .pricing-desc { font-size: .9rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.page-template-services-people .role-card {
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  display: flex; align-items: center; justify-content: space-between;
  transition: var(--transition);
}
.page-template-services-people .role-card:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.page-template-services-people .role-name { font-weight: 600; }
.page-template-services-people .role-stack { font-size: .8rem; color: var(--text-muted); margin-top: .2rem; }
.page-template-services-people .role-price { font-weight: 700; color: var(--blue); white-space: nowrap; }

/* Developer profile cards */
.page-template-services-people .dev-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  transition: var(--transition);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: .9rem;
}
.page-template-services-people .dev-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(59,130,246,.25); }
.page-template-services-people .dev-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 2px solid var(--border);
}
.page-template-services-people .dev-header { display: flex; align-items: flex-start; gap: .9rem; }
.page-template-services-people .dev-name { font-weight: 700; font-size: 1rem; margin-bottom: .15rem; }
.page-template-services-people .dev-role { font-size: .85rem; color: var(--text-muted); }
.page-template-services-people .dev-exp {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .75rem; font-weight: 700;
  background: var(--light-blue); color: var(--blue);
  padding: .2rem .6rem; border-radius: 20px;
  margin-top: .35rem;
}
.page-template-services-people .dev-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.page-template-services-people .dev-tag {
  background: var(--off-white); border: 1px solid var(--border);
  border-radius: 6px; padding: .2rem .55rem;
  font-size: .75rem; font-weight: 600; color: var(--text-muted);
}
.page-template-services-people .dev-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: .75rem; border-top: 1px solid var(--border);
  margin-top: auto;
}
.page-template-services-people .dev-avail {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .78rem; font-weight: 600;
}
.page-template-services-people .dev-avail-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.page-template-services-people .dot-green  { background: #22c55e; box-shadow: 0 0 0 2px rgba(34,197,94,.2); }
.page-template-services-people .dot-amber  { background: var(--gold); box-shadow: 0 0 0 2px rgba(245,158,11,.2); }
.page-template-services-people .dev-lang {
  font-size: .78rem; color: var(--text-muted);
  display: flex; align-items: center; gap: .3rem;
}


/* -------------------------------------------
   Services AI Lab  (.page-template-services-ai-lab)
   ------------------------------------------- */

.page-template-services-ai-lab .sitter-process {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  position: relative;
}
.page-template-services-ai-lab .sitter-process::before {
  content: ''; position: absolute;
  top: 40px; left: 10%; right: 10%; height: 2px;
  background: linear-gradient(to right, var(--violet), var(--violet-light));
  z-index: 0;
}
.page-template-services-ai-lab .sitter-step {
  text-align: center; padding: 1.5rem 1rem;
  position: relative; z-index: 1;
}
.page-template-services-ai-lab .sitter-step-num {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--violet);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin: 0 auto 1rem;
  box-shadow: var(--shadow-md);
}
.page-template-services-ai-lab .sitter-step h4 { margin-bottom: .35rem; font-size: 1rem; }
.page-template-services-ai-lab .sitter-step p  { font-size: .82rem; color: var(--text-muted); }
.page-template-services-ai-lab .use-case-card {
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--white);
  transition: var(--transition);
}
.page-template-services-ai-lab .use-case-card:hover { border-color: var(--violet); box-shadow: var(--shadow-md); }
.page-template-services-ai-lab .use-case-card .uc-icon { font-size: 2rem; margin-bottom:.75rem; }
.page-template-services-ai-lab .ethics-item {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1rem; border-radius: var(--radius);
}
.page-template-services-ai-lab .ethics-item:hover { background: var(--off-white); }
.page-template-services-ai-lab .ethics-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 10px; background: var(--light-violet); color: var(--violet);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
@media (max-width: 768px) {
  .page-template-services-ai-lab .sitter-process { grid-template-columns: repeat(2, 1fr); }
  .page-template-services-ai-lab .sitter-process::before { display: none; }
}
@media (max-width: 480px) {
  .page-template-services-ai-lab .sitter-process { grid-template-columns: 1fr; }
}


/* -------------------------------------------
   Cases Page  (.page-template-cases)
   ------------------------------------------- */

.page-template-cases .case-full {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow);
}
.page-template-cases .case-full:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.page-template-cases .case-full-header {
  padding: 2.5rem;
  position: relative;
}
.page-template-cases .case-full-header h3 { color: white; font-size: 1.35rem; margin: .75rem 0 .5rem; }
.page-template-cases .case-full-header p  { color: rgba(255,255,255,.8); font-size: .95rem; }
.page-template-cases .case-full-body { padding: 2rem; }
.page-template-cases .case-section-label {
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-muted); margin-bottom: .35rem;
}
.page-template-cases .case-section-text { font-size: .95rem; margin-bottom: 1.25rem; }
.page-template-cases .metrics-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  margin-top: 1rem;
}
.page-template-cases .metric-box {
  text-align: center; padding: 1.25rem;
  border-radius: var(--radius); background: var(--off-white);
}
.page-template-cases .metric-box-num { font-size: 2rem; font-weight: 900; }
.page-template-cases .metric-box-label { font-size: .8rem; color: var(--text-muted); margin-top: .2rem; }
.page-template-cases .metric-blue   .metric-box-num { color: var(--blue); }
.page-template-cases .metric-violet .metric-box-num { color: var(--violet); }
.page-template-cases .metric-teal   .metric-box-num { color: var(--teal); }
@media (max-width: 480px) {
  .page-template-cases .metrics-row { grid-template-columns: 1fr 1fr; }
}


/* -------------------------------------------
   Approach Page  (.page-template-approach)
   ------------------------------------------- */

.page-template-approach .approach-tab-content { display: none; }
.page-template-approach .approach-tab-content.active { display: block; }
.page-template-approach .approach-tabs-nav {
  display: flex; gap: .75rem; margin-bottom: 2.5rem; flex-wrap: wrap;
}
.page-template-approach .approach-tab-btn {
  padding: .75rem 1.75rem;
  border-radius: 50px;
  border: 2px solid var(--border);
  font-size: .95rem; font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition); cursor: pointer;
  background: transparent;
}
.page-template-approach .approach-tab-btn.active-people {
  border-color: var(--blue); background: var(--blue); color: white;
}
.page-template-approach .approach-tab-btn.active-ai {
  border-color: var(--violet); background: var(--violet); color: white;
}
.page-template-approach .approach-tab-btn.active-hybrid {
  border-color: var(--teal); background: var(--teal); color: white;
}
.page-template-approach .approach-tab-btn:hover:not(.active-people):not(.active-ai):not(.active-hybrid) {
  border-color: var(--blue); color: var(--blue);
}
.page-template-approach .principle-card {
  display: flex; gap: 1.25rem; align-items: flex-start;
  padding: 1.75rem; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--border);
  transition: var(--transition);
}
.page-template-approach .principle-card:hover { box-shadow: var(--shadow-md); }
.page-template-approach .principle-icon {
  width: 52px; height: 52px; flex-shrink: 0;
  border-radius: 14px; font-size: 1.35rem;
  display: flex; align-items: center; justify-content: center;
}


/* -------------------------------------------
   Contact Page  (.page-template-contact)
   ------------------------------------------- */

.page-template-contact .contact-grid {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 4rem; align-items: start;
}
.page-template-contact .contact-info-item {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.25rem 0; border-bottom: 1px solid rgba(255,255,255,.08);
}
.page-template-contact .contact-info-item:last-child { border-bottom: none; }
.page-template-contact .contact-info-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 10px; background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-light); font-size: 1.1rem;
}
.page-template-contact .contact-info-label { font-size: .8rem; color: rgba(255,255,255,.5); margin-bottom: .2rem; }
.page-template-contact .contact-info-value { color: var(--white); font-weight: 600; }
.page-template-contact .contact-info-value a { color: var(--white); }
.page-template-contact .contact-info-value a:hover { color: var(--gold-light); }
.page-template-contact .form-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}
@media (max-width: 968px) {
  .page-template-contact .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
}


/* -------------------------------------------
   Blog (home.php) & Single Post
   ------------------------------------------- */

/* Blog page hero — richer violet gradient */
.home .page-hero,
.blog .page-hero {
  background: linear-gradient(135deg, #07091a 0%, #1a0a3c 45%, #4c1d95 100%);
}

/* Featured post — dark split card */
.featured-post {
  background: linear-gradient(135deg, var(--navy), #0f172a);
  border-radius: var(--radius-xl); overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 380px; margin-bottom: 3rem;
  box-shadow: var(--shadow-lg);
}
.featured-post-visual {
  display: flex; align-items: center; justify-content: center;
  font-size: 6rem;
  background: linear-gradient(135deg, #4c1d95, var(--violet));
}
.featured-post-visual img {
  width: 100%; height: 100%; object-fit: cover;
}
.featured-post-content {
  padding: 3rem;
  display: flex; flex-direction: column; justify-content: center;
}
.featured-post-content h2 { color: #fff; margin-bottom: 1rem; font-size: 1.7rem; }
.featured-post-content p  { color: rgba(255,255,255,.75); margin-bottom: 1.5rem; line-height: 1.65; }
@media (max-width: 768px) {
  .featured-post { grid-template-columns: 1fr; }
  .featured-post-visual { min-height: 160px; font-size: 4rem; }
  .featured-post-content { padding: 2rem; }
}

/* Newsletter box */
.newsletter-box {
  background: linear-gradient(135deg, var(--light-blue), #e0f2fe);
  border: 1px solid rgba(14,165,233,.2);
  border-radius: var(--radius-xl);
  padding: 2.5rem; text-align: center;
}

/* Blog listing — category filter tabs */
.home .filter-tabs,
.blog .filter-tabs {
  display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2.5rem;
}

/* Author avatar — initials circle */
.article-author-avatar {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; color: #fff;
  letter-spacing: .02em;
  background: linear-gradient(135deg, var(--blue), var(--violet)); /* fallback */
}

/* Article cover image / placeholder */
.article-cover {
  display: block; width: 100%; max-height: 480px;
  object-fit: cover; border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  margin-top: 2.5rem;
}
.article-cover-placeholder {
  width: 100%; height: 320px; border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  margin-top: 2.5rem;
  display: flex; align-items: center; justify-content: center;
  opacity: .45;
}
.article-cover-placeholder span {
  font-size: 1.5rem; font-weight: 700; color: #fff;
  text-transform: uppercase; letter-spacing: .12em;
  opacity: .7;
}

/* Article hero meta row */
.article-meta-row {
  display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap;
  margin-bottom: 1rem;
}
.article-author-row {
  display: flex; align-items: center; gap: .875rem;
  margin-top: 1.5rem;
}
.article-author-name { font-weight: 700; color: #fff; font-size: .95rem; }
.article-author-title { font-size: .8rem; color: rgba(255,255,255,.55); }
.article-hero-desc {
  color: rgba(255,255,255,.72); font-size: 1.05rem;
  max-width: 700px; line-height: 1.65; margin-top: .5rem;
}

/* Single post article body */
.single .article-hero {
  background: linear-gradient(135deg, #07091a 0%, #1a0a3c 45%, #4c1d95 100%);
  padding: 7rem 0 0; /* image sits flush at bottom so content section overlaps it */
}
.single .article-hero h1 { color: #fff; }

/* Content section overlaps the bottom of the hero image */
.single .article-hero + .section {
  margin-top: -4rem;
  position: relative;
  z-index: 1;
  background: #f8fafc;
  border-radius: 2rem 2rem 0 0;
  padding-top: 3.5rem;
  box-shadow: 0 -8px 32px rgba(0,0,0,.12);
}
.single .article-hero .breadcrumb,
.single .article-hero .breadcrumb a,
.single .article-hero .breadcrumb span { color: rgba(255,255,255,.55); font-size: .875rem; }
.single .article-hero .breadcrumb a:hover { color: #fff; }
.single .article-meta {
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  margin: 1.25rem 0;
}
.single .article-meta-item {
  display: flex; align-items: center; gap: .4rem;
  font-size: .875rem; color: rgba(255,255,255,.65);
}
.single .article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}
/* Restore list styles stripped by the global reset */
.single .article-body ul { list-style: disc; padding-left: 1.5rem; }
.single .article-body ol { list-style: decimal; padding-left: 1.5rem; }
.single .article-body ul ul { list-style: circle; }
.single .article-body li { margin-bottom: .5rem; line-height: 1.7; }

.single .article-body h2 { font-size: 1.5rem; margin: 2rem 0 .75rem; }
.single .article-body h3 { font-size: 1.2rem; margin: 1.75rem 0 .5rem; }
.single .article-body p  { margin-bottom: 1.25rem; line-height: 1.75; color: var(--text); }
.single .article-body ul,
.single .article-body ol { margin: 1rem 0 1.25rem 1.5rem; }
.single .article-body li { margin-bottom: .5rem; line-height: 1.7; }
.single .article-body blockquote {
  border-left: 4px solid var(--blue); padding-left: 1.25rem; margin: 1.5rem 0;
  font-style: italic; color: var(--text-muted);
}
.single .article-body img {
  max-width: 100%; border-radius: var(--radius); margin: 1.5rem 0;
}
.single .article-body code {
  background: var(--off-white); padding: .15rem .4rem;
  border-radius: 4px; font-size: .9em; color: var(--violet);
}
.single .article-body pre {
  background: var(--navy); color: #e2e8f0;
  padding: 1.5rem; border-radius: var(--radius); overflow-x: auto;
  margin: 1.5rem 0; font-size: .9rem; line-height: 1.6;
}
.single .article-body pre code { background: none; color: inherit; padding: 0; }
.single .sidebar-widget {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.75rem; margin-bottom: 1.5rem;
}
.single .author-card {
  display: flex; gap: 1.25rem; align-items: flex-start;
  padding: 2rem; background: var(--light-blue);
  border-radius: var(--radius-lg); margin: 3rem 0;
}
.single .author-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
}
.single .tag-pill {
  display: inline-block; padding: .35rem .85rem;
  border-radius: 20px; font-size: .8rem; font-weight: 600;
  text-decoration: none; transition: opacity .2s;
  border: 1px solid transparent;
}
.single .tag-pill:hover { opacity: .75; }

/* Tags block — divider above, wrapping flex row */
.single .article-tags {
  display: flex; flex-wrap: wrap; gap: .5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  margin-top: 2.5rem;
}

/* Share block — divider above AND below, generous spacing */
.single .article-share {
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: 2rem;
}
.single .article-share > span {
  font-size: .875rem; font-weight: 600; color: var(--text-muted);
  margin-right: .25rem;
}

/* Cycling brand colors for tag pills */
.article-tags .tag-pill:nth-child(6n+1) { background:#eff6ff; color:#1d4ed8; border-color:#bfdbfe; }
.article-tags .tag-pill:nth-child(6n+2) { background:#f5f3ff; color:#7c3aed; border-color:#ddd6fe; }
.article-tags .tag-pill:nth-child(6n+3) { background:#f0fdfa; color:#0f766e; border-color:#99f6e4; }
.article-tags .tag-pill:nth-child(6n+4) { background:#fefce8; color:#a16207; border-color:#fde68a; }
.article-tags .tag-pill:nth-child(6n+5) { background:#fff1f2; color:#be185d; border-color:#fecdd3; }
.article-tags .tag-pill:nth-child(6n+6) { background:#f0fdf4; color:#15803d; border-color:#bbf7d0; }
.single .share-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .6rem 1.1rem; border-radius: var(--radius);
  font-size: .875rem; font-weight: 600; text-decoration: none;
  transition: var(--transition); cursor: pointer; border: 1px solid var(--border);
  background: var(--white); color: var(--text);
}
.single .share-btn:hover { border-color: var(--blue); color: var(--blue); }
@media (max-width: 1024px) {
  .single .article-layout { grid-template-columns: 1fr; }
}

/* Sidebar shared card base */
.sidebar-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.sidebar-card h5 {
  font-size: .8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--text-muted); margin: 0 0 1.25rem;
}

/* Related posts cards */
.related-card {
  display: flex; gap: .875rem; align-items: flex-start;
  padding: .875rem 0; border-bottom: 1px solid var(--border);
  text-decoration: none; color: inherit; transition: opacity .2s;
}
.related-card:last-child { border-bottom: none; padding-bottom: 0; }
.related-card:hover { opacity: .7; }
.related-thumb {
  width: 60px; height: 60px; border-radius: var(--radius);
  object-fit: cover; flex-shrink: 0;
}
.related-thumb-emoji {
  width: 60px; height: 60px; border-radius: var(--radius);
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.related-title {
  font-size: .875rem; font-weight: 600; line-height: 1.4;
  margin-bottom: .3rem; color: var(--text);
}
.related-date {
  font-size: .775rem; color: var(--text-muted);
}

/* Sidebar newsletter */
.sidebar-newsletter {
  background: #0a0f1e;
  border-radius: var(--radius-lg); padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.sidebar-newsletter h5 {
  font-size: .8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: rgba(255,255,255,.55); margin: 0 0 .5rem;
}
.sidebar-newsletter p {
  font-size: .875rem; color: rgba(255,255,255,.7); margin-bottom: 1rem; line-height: 1.5;
}
.sidebar-newsletter .form-control {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  color: #fff; border-radius: var(--radius);
}
.sidebar-newsletter .form-control::placeholder { color: rgba(255,255,255,.35); }

/* Sidebar TOC widget */
.sidebar-toc {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.sidebar-toc h5 {
  font-size: .8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--text-muted); margin: 0 0 1rem;
}
.toc-list {
  list-style: none; padding: 0; margin: 0;
}
.toc-list li {
  border-left: 2px solid var(--border);
  padding: .35rem .875rem;
  transition: border-color .2s;
}
.toc-list li:hover { border-left-color: var(--blue); }
.toc-list a {
  font-size: .875rem; color: var(--text-muted);
  text-decoration: none; transition: color .2s; line-height: 1.4;
  display: block;
}
.toc-list a:hover { color: var(--blue); }
