/* ═══════════════════════════════════════════════════════
   CreativeTEKNOS — post.css  (merged v2)
   Site palette:
     --blue   #549CD1   (primary accent)
     --gold   #C9A84C   (secondary accent)
     --bg     #050d18   (post body background)
     --dark   #040d1a   (deepest dark)
     --navy   #0a1f35   (mid-dark)
   Font: Montserrat (already loaded via header.php)
═══════════════════════════════════════════════════════ */

/* ── CSS Variables ──────────────────────────────────── */
:root {
  --ct-blue:       #549CD1;
  --ct-blue-dim:   #3d87bd;
  --ct-blue-glow:  rgba(84,156,209,0.15);
  --ct-gold:       #C9A84C;
  --ct-gold-dim:   #b8953d;
  --ct-gold-glow:  rgba(201,168,76,0.15);
  --ct-bg:         #050d18;
  --ct-dark:       #040d1a;
  --ct-navy:       #0a1f35;
  --ct-navy-mid:   #0d2540;
  --ct-border:     rgba(84,156,209,0.15);
  --ct-text:       rgba(255,255,255,0.72);
  --ct-text-dim:   rgba(255,255,255,0.45);
  --ct-white:      #ffffff;
  --ct-radius:     6px;
  --ct-font:       'Montserrat', sans-serif;
}

/* ── Post Hero ──────────────────────────────────────── */
.post-hero {
  position: relative;
  background: #000;
  overflow: hidden;
  min-height: 420px;        
  display: flex;            
  align-items: flex-end;
}
.post-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 60px 40px;
}
.post-featured-img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  display: block;
  opacity: 0.75;
}
.post-featured-placeholder {
  width: 100%;
  height: 340px;
  background: linear-gradient(135deg, #040d1a 0%, #0a1f35 60%, #040d1a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.post-featured-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 22px,
    rgba(84,156,209,0.05) 22px,
    rgba(84,156,209,0.05) 23px
  );
}
.post-featured-placeholder::after {
  content: 'CreativeTeknos';
  font-family: var(--ct-font);
  font-size: 10px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: rgba(84,156,209,0.3);
  position: relative;
  z-index: 1;
}
.post-hero-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 30%, rgba(0,0,0,0.3) 100%); 
  pointer-events: none;
}
.post-hero-author {
  display: flex;
  align-items: center;
  gap: 8px;
}
.post-hero-meta {
  position: static;
  bottom: 0; left: 0; right: 0;
  padding: 0;
  margin-top: 12px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255,255,255,0.85);
  font-size: 13px;
}
.post-hero-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #549CD1, #C9A84C);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ct-font);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.post-hero-eyebrow {
  font-family: var(--ct-font);
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--ct-gold);
  margin-bottom: 12px;
  display: block;
}
.post-hero-title {
  font-family: var(--ct-font);
  font-size: 36px;
  font-weight: 900;
  color: var(--ct-white);
  line-height: 1.25;
  max-width: 760px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.6);
}

/* ── No-image fallback ──────────────────────────────── */
.post-header-noimg {
  background: #000;
  border-bottom: 1px solid var(--ct-border);
  padding: 60px 60px 40px;
}
.post-header-noimg .post-hero-eyebrow { position: static; }
.post-header-noimg .post-hero-title   { position: static; font-size: 32px; }

/* ── Post Body ──────────────────────────────────────── */
.post-body {
  background: var(--ct-bg);
  padding: 60px 60px 80px;
}
.post-body-inner {
  max-width: 760px;
  margin: 0 auto;
}

/* ── Base Content Typography ────────────────────────── */
.post-content {
  font-size: 16px;
  color: var(--ct-text);
  line-height: 1.9;
}
.post-content h2 {
  font-family: var(--ct-font);
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #C9A84C;
  margin: 40px 0 16px;
  font-size: 22px;
}
.post-content h3,
.post-content h4 {
  font-family: var(--ct-font);
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--ct-blue);
  margin: 40px 0 16px;
}
.post-content h3 { font-size: 18px; }
.post-content h4 { font-size: 15px; }
.post-content p  { margin-bottom: 20px; }
.post-content ul,
.post-content ol {
  padding-left: 24px;
  margin-bottom: 20px;
  color: rgba(255,255,255,0.65);
}
.post-content li     { margin-bottom: 8px; }
.post-content a      { color: var(--ct-blue); }
.post-content strong { color: var(--ct-white); font-weight: 600; }
.post-content em     { font-style: italic; color: rgba(255,255,255,0.6); }

/* ── Divider ────────────────────────────────────────── */
.post-content .ct-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ct-border), transparent);
  margin: 44px 0;
}

/* ── Lead Paragraph ─────────────────────────────────── */
.post-content .lead-paragraph {
  font-size: 18px;
  font-weight: 600;
  color: var(--ct-white);
  line-height: 1.6;
  border-left: 3px solid var(--ct-blue);
  padding-left: 20px;
  margin-bottom: 28px;
}

/* ── Blockquote ─────────────────────────────────────── */
.post-content blockquote {
  margin: 36px 0;
  padding: 24px 28px;
  background: var(--ct-navy);
  border-left: 3px solid var(--ct-gold);
  border-radius: var(--ct-radius);
  font-size: 17px;
  font-style: italic;
  color: rgba(255,255,255,0.85);
  position: relative;
}
.post-content blockquote::before {
  content: '"';
  font-size: 64px;
  color: var(--ct-gold);
  opacity: 0.2;
  position: absolute;
  top: -8px; left: 12px;
  line-height: 1;
  font-family: Georgia, serif;
}

/* ══════════════════════════════════════════════════════
   CUSTOM CONTENT COMPONENTS
   All scoped inside .post-content to avoid bleed
══════════════════════════════════════════════════════ */

/* ── Cost Calculator Callout ────────────────────────── */
.post-content .cost-callout {
  background: var(--ct-dark);
  border: 1px solid var(--ct-border);
  border-top: 3px solid var(--ct-blue);
  border-radius: var(--ct-radius);
  padding: 32px;
  margin: 36px 0;
  position: relative;
  overflow: hidden;
}
.post-content .cost-callout::after {
  content: '$';
  position: absolute;
  bottom: -16px; right: 16px;
  font-size: 100px;
  font-weight: 900;
  color: var(--ct-blue);
  opacity: 0.04;
  font-family: var(--ct-font);
  line-height: 1;
}
.post-content .cost-callout h4 {
  font-family: var(--ct-font);
  font-size: 10px;
  font-weight: 600;
  color: var(--ct-blue);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 20px !important;
}
.post-content .cost-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  list-style: none;
  padding: 0;
}
.post-content .cost-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(84,156,209,0.05);
  border-radius: var(--ct-radius);
  border-left: 2px solid rgba(84,156,209,0.25);
  margin: 0;
}
.post-content .cost-row .task {
  font-size: 14px;
  color: var(--ct-text);
}
.post-content .cost-row .hours {
  font-size: 13px;
  font-weight: 600;
  color: var(--ct-gold);
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.post-content .cost-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px;
  background: var(--ct-gold-glow);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: var(--ct-radius);
}
.post-content .cost-total .label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ct-white);
  font-family: var(--ct-font);
  letter-spacing: 0.03em;
}
.post-content .cost-total .amount {
  font-size: 15px;
  font-weight: 700;
  color: var(--ct-gold);
  font-family: var(--ct-font);
}
.post-content .cost-bottom {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--ct-border);
  font-size: 14px;
  color: var(--ct-text-dim);
  line-height: 1.7;
  margin-bottom: 0;
}
.post-content .cost-bottom strong {
  color: var(--ct-blue);
}

/* ── Advantage Cards ────────────────────────────────── */
.post-content .advantage-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 28px 0;
  list-style: none;
  padding: 0;
}
.post-content .advantage-card {
  padding: 20px 22px;
  background: var(--ct-navy);
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius);
  transition: border-color 0.2s;
}
.post-content .advantage-card:hover {
  border-color: rgba(84,156,209,0.4);
}
.post-content .advantage-card .card-title {
  font-family: var(--ct-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ct-blue);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.post-content .advantage-card .card-title::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--ct-blue);
  border-radius: 50%;
  flex-shrink: 0;
}
.post-content .advantage-card p {
  font-size: 14px;
  color: var(--ct-text-dim);
  margin: 0;
  line-height: 1.65;
}

/* ── Task Cards ─────────────────────────────────────── */
.post-content .task-card {
  background: var(--ct-navy);
  border: 1px solid var(--ct-border);
  border-left: 3px solid var(--ct-blue);
  border-radius: var(--ct-radius);
  padding: 24px 26px;
  margin: 20px 0;
}
.post-content .task-card h3 {
  font-family: var(--ct-font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ct-blue);
  margin: 0 0 14px !important;
  display: flex;
  align-items: center;
  gap: 10px;
}
.post-content .task-card h3 .num {
  width: 26px; height: 26px;
  background: var(--ct-dark);
  border: 1px solid var(--ct-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--ct-blue);
  flex-shrink: 0;
}
.post-content .task-card p {
  font-size: 15px;
  color: var(--ct-text);
  margin-bottom: 12px;
  line-height: 1.75;
}
.post-content .task-card p:last-child { margin-bottom: 0; }
.post-content .task-card .quantum-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ct-dark);
  border: 1px solid var(--ct-border);
  color: var(--ct-blue);
  font-size: 11px;
  font-weight: 700;
  font-family: var(--ct-font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  margin-top: 4px;
}
.post-content .task-card .math-note {
  background: rgba(84,156,209,0.06);
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius);
  padding: 11px 14px;
  font-size: 13px;
  color: var(--ct-text-dim);
  margin-top: 10px;
  margin-bottom: 0;
  line-height: 1.6;
}
.post-content .task-card .math-note strong {
  color: var(--ct-blue);
}

/* ── Readiness Signals ──────────────────────────────── */
.post-content .signals-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 28px 0;
  list-style: none;
  padding: 0;
}
.post-content .signal-item {
  display: flex;
  gap: 18px;
  padding: 20px;
  background: var(--ct-navy);
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius);
  align-items: flex-start;
}
.post-content .signal-num {
  font-family: var(--ct-font);
  font-size: 11px;
  font-weight: 700;
  color: var(--ct-blue);
  background: var(--ct-dark);
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius);
  padding: 4px 9px;
  flex-shrink: 0;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--ct-blue);
}
.post-content .signal-item .signal-title {
  font-family: var(--ct-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ct-white);
  margin-bottom: 6px;
}
.post-content .signal-item p {
  font-size: 14px;
  color: var(--ct-text-dim);
  margin: 0;
  line-height: 1.65;
}
.post-content .signals-close {
  background: rgba(84,156,209,0.06);
  border: 1px solid var(--ct-border);
  border-left: 3px solid var(--ct-blue);
  border-radius: var(--ct-radius);
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ct-text);
  margin-top: 8px;
  font-family: var(--ct-font);
  letter-spacing: 0.02em;
}
.post-content .signals-close strong { color: var(--ct-blue); }

/* ── 5-Phase Timeline ───────────────────────────────── */
.post-content .phases {
  margin: 28px 0;
  position: relative;
  padding-left: 0;
  list-style: none;
}
.post-content .phases::before {
  content: '';
  position: absolute;
  left: 18px; top: 30px; bottom: 30px;
  width: 1px;
  background: linear-gradient(to bottom, var(--ct-blue), rgba(84,156,209,0.1));
}
.post-content .phase-item {
  display: flex;
  gap: 18px;
  margin-bottom: 12px;
  align-items: flex-start;
}
.post-content .phase-dot {
  width: 36px; height: 36px;
  background: var(--ct-dark);
  border: 1px solid var(--ct-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--ct-blue);
  flex-shrink: 0;
  font-family: var(--ct-font);
  letter-spacing: 0.04em;
  position: relative;
  z-index: 1;
}
.post-content .phase-content {
  padding: 12px 16px;
  background: var(--ct-navy);
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius);
  flex: 1;
  margin-top: 2px;
}
.post-content .phase-content .phase-name {
  font-family: var(--ct-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ct-blue);
  margin-bottom: 5px;
}
.post-content .phase-content p {
  font-size: 13px;
  color: var(--ct-text-dim);
  margin: 0;
  line-height: 1.6;
}

/* ── Agent Suite Cards ──────────────────────────────── */
.post-content .agents-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 24px 0;
  list-style: none;
  padding: 0;
}
.post-content .agent-card {
  background: var(--ct-dark);
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius);
  padding: 20px;
  transition: border-color 0.2s, transform 0.2s;
}
.post-content .agent-card:hover {
  border-color: rgba(84,156,209,0.4);
  transform: translateY(-2px);
}
.post-content .agent-card.live {
  border-top: 2px solid var(--ct-blue);
}
.post-content .agent-card.coming {
  border-top: 2px solid rgba(255,255,255,0.1);
}
.post-content .agent-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.post-content .agent-name {
  font-family: var(--ct-font);
  font-size: 14px;
  font-weight: 700;
  color: var(--ct-white);
  letter-spacing: 0.04em;
}
.post-content .agent-badge {
  font-size: 9px;
  font-weight: 700;
  font-family: var(--ct-font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 100px;
}
.post-content .badge-live {
  background: rgba(84,156,209,0.15);
  color: var(--ct-blue);
}
.post-content .badge-soon {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.35);
}
.post-content .agent-desc {
  font-size: 13px;
  color: var(--ct-text-dim);
  line-height: 1.55;
  margin-bottom: 10px;
}
.post-content .agent-price {
  font-size: 12px;
  font-weight: 600;
  color: var(--ct-gold);
  font-family: var(--ct-font);
  letter-spacing: 0.04em;
}

/* ── CTA Block ──────────────────────────────────────── */
.post-content .cta-block {
  background: var(--ct-dark);
  border: 1px solid var(--ct-border);
  border-top: 3px solid var(--ct-gold);
  border-radius: var(--ct-radius);
  padding: 40px 36px;
  text-align: center;
  margin: 48px 0 32px;
  position: relative;
  overflow: hidden;
}
.post-content .cta-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(201,168,76,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.post-content .cta-block .cta-kicker {
  font-family: var(--ct-font);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ct-gold);
  margin-bottom: 14px;
  display: block;
}
.post-content .cta-block h3 {
  font-family: var(--ct-font);
  font-size: 22px;
  font-weight: 900;
  color: var(--ct-white);
  text-transform: none;
  letter-spacing: 0;
  margin: 0 0 12px !important;
  color: var(--ct-white) !important;
}
.post-content .cta-block p {
  font-size: 14px;
  color: var(--ct-text-dim);
  max-width: 440px;
  margin: 0 auto 28px;
  line-height: 1.7;
}
.post-content .cta-btn {
  display: inline-block;
  background: var(--ct-blue);
  color: var(--ct-dark);
  font-family: var(--ct-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--ct-radius);
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  position: relative;
}
.post-content .cta-btn:hover {
  background: var(--ct-blue-dim);
  color: var(--ct-white);
  transform: translateY(-1px);
  text-decoration: none;
}
.post-content .cta-guarantee {
  margin-top: 16px;
  font-size: 11px;
  font-family: var(--ct-font);
  letter-spacing: 0.05em;
  color: var(--ct-text-dim);
  text-transform: uppercase;
}

/* ── Article Footer (byline) ────────────────────────── */
.post-content .article-footer-note {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--ct-border);
  font-size: 12px;
  font-family: var(--ct-font);
  letter-spacing: 0.04em;
  color: var(--ct-text-dim);
  text-align: center;
  line-height: 1.8;
}
.post-content .article-footer-note strong { color: var(--ct-blue); }

/* ── Back Link ──────────────────────────────────────── */
.back-link {
  font-family: var(--ct-font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ct-blue);
  text-decoration: none;
  margin-top: 52px;
  border-top: 1px solid var(--ct-border);
  padding-top: 28px;
  display: block;
}
.back-link:hover { color: var(--ct-gold); text-decoration: none; }

.fade-up { opacity:0; transform:translateY(20px); transition:opacity .6s ease, transform .6s ease; }
.fade-up.visible { opacity:1; transform:translateY(0); }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 768px) {
  .post-hero-inner,
  .post-hero-meta,
  .post-header-noimg      { padding-left: 20px; padding-right: 20px; }
  .post-hero-title        { font-size: 24px; }
  .post-body              { padding: 40px 20px 60px; }
  .post-content .agents-grid { grid-template-columns: 1fr; }
  .post-content .cost-callout,
  .post-content .cta-block   { padding: 24px 20px; }
  .post-content .signal-item { flex-direction: column; gap: 10px; }
  .post-content .phase-item  { gap: 12px; }
}