/* =============================================
   BLOG & PORTFOLIO STYLES — Ashcode Infotech
   ============================================= */

/* ── BLOG HERO ─────────────────────────────── */
.blog-hero {
  padding: 140px 0 80px;
  position: relative; overflow: hidden;
  background: var(--bg-primary);
}
.blog-hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,245,255,0.3), transparent);
}
.blog-hero-inner { max-width: 820px; margin: 0 auto; text-align: center; }

.blog-category-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 18px; border-radius: 50px;
  font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  margin-bottom: 24px;
}
.pill-seo    { background: rgba(0,245,255,0.1); color: #00f5ff; border: 1px solid rgba(0,245,255,0.25); }
.pill-ppc    { background: rgba(249,115,22,0.1); color: #f97316; border: 1px solid rgba(249,115,22,0.25); }
.pill-smm    { background: rgba(16,185,129,0.1); color: #10b981; border: 1px solid rgba(16,185,129,0.25); }
.pill-web    { background: rgba(124,58,237,0.1); color: #a78bfa; border: 1px solid rgba(124,58,237,0.25); }
.pill-data   { background: rgba(236,72,153,0.1); color: #ec4899; border: 1px solid rgba(236,72,153,0.25); }

.blog-hero-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 800; letter-spacing: -2px; line-height: 1.1;
  margin-bottom: 20px;
}
.blog-hero-meta {
  display: flex; align-items: center; justify-content: center; gap: 20px;
  font-size: 13px; color: var(--text-muted); flex-wrap: wrap; margin-bottom: 32px;
}
.blog-hero-meta span { display: flex; align-items: center; gap: 6px; }
.blog-hero-excerpt {
  font-size: 18px; color: var(--text-secondary); line-height: 1.75;
  max-width: 680px; margin: 0 auto;
}

/* ── BLOG BODY ─────────────────────────────── */
.blog-layout {
  display: grid; grid-template-columns: 1fr 340px;
  gap: 56px; max-width: 1200px; margin: 0 auto;
  padding: 60px 40px 100px;
}
.blog-article { min-width: 0; }

/* Featured image banner */
.blog-featured-img {
  width: 100%; height: 420px; border-radius: var(--radius-xl);
  overflow: hidden; margin-bottom: 56px; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.blog-featured-img .img-emoji { font-size: 96px; filter: drop-shadow(0 0 40px rgba(0,245,255,0.4)); }
.blog-featured-img::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
}
.fi-seo { background: linear-gradient(135deg, #050714 0%, #0a1630 50%, #051420 100%); }
.fi-ppc { background: linear-gradient(135deg, #1a0a00 0%, #2e1500 50%, #1a0500 100%); }
.fi-smm { background: linear-gradient(135deg, #001a10 0%, #002e1a 50%, #001808 100%); }

/* Article Typography */
.article-body { font-size: 16px; line-height: 1.85; color: var(--text-secondary); }
.article-body h2 {
  font-family: var(--font-display); font-size: 28px; font-weight: 800;
  color: var(--text-primary); margin: 52px 0 20px; letter-spacing: -0.8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}
.article-body h3 {
  font-family: var(--font-display); font-size: 20px; font-weight: 700;
  color: var(--text-primary); margin: 36px 0 14px; letter-spacing: -0.4px;
}
.article-body p { margin-bottom: 22px; }
.article-body ul, .article-body ol {
  padding-left: 0; margin-bottom: 24px; list-style: none;
}
.article-body ul li, .article-body ol li {
  position: relative; padding: 10px 0 10px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 15px;
}
.article-body ul li::before {
  content: '→'; position: absolute; left: 0;
  color: var(--accent-cyan); font-weight: 700;
}
.article-body ol { counter-reset: list-counter; }
.article-body ol li { counter-increment: list-counter; }
.article-body ol li::before {
  content: counter(list-counter);
  position: absolute; left: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--gradient-cyan); color: #000;
  font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  top: 12px;
}
.article-body strong { color: var(--text-primary); font-weight: 600; }
.article-body a { color: var(--accent-cyan); text-decoration: none; border-bottom: 1px solid rgba(0,245,255,0.3); }
.article-body a:hover { border-bottom-color: var(--accent-cyan); }

/* Callout / Highlight Box */
.callout {
  background: rgba(0,245,255,0.04);
  border: 1px solid rgba(0,245,255,0.15);
  border-left: 3px solid var(--accent-cyan);
  border-radius: 0 16px 16px 0;
  padding: 24px 28px; margin: 36px 0;
}
.callout-purple {
  background: rgba(124,58,237,0.05);
  border-color: rgba(124,58,237,0.2);
  border-left-color: #7c3aed;
}
.callout-green {
  background: rgba(16,185,129,0.05);
  border-color: rgba(16,185,129,0.2);
  border-left-color: #10b981;
}
.callout-orange {
  background: rgba(249,115,22,0.05);
  border-color: rgba(249,115,22,0.2);
  border-left-color: #f97316;
}
.callout-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--accent-cyan); margin-bottom: 8px;
}
.callout-purple .callout-label { color: #a78bfa; }
.callout-green .callout-label  { color: #10b981; }
.callout-orange .callout-label { color: #f97316; }
.callout p { margin-bottom: 0; font-size: 15px; }

/* Stat highlight strip */
.stat-strip {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin: 40px 0;
}
.stat-strip-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 16px; padding: 24px; text-align: center;
}
.stat-strip-num {
  font-family: var(--font-display); font-size: 34px; font-weight: 800;
  background: var(--gradient-cyan);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  display: block; line-height: 1; margin-bottom: 6px;
}
.stat-strip-label { font-size: 13px; color: var(--text-muted); }

/* Number strategy cards */
.strategy-grid { display: flex; flex-direction: column; gap: 20px; margin: 32px 0; }
.strategy-card {
  display: flex; gap: 20px; align-items: flex-start;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-subtle); border-radius: 18px; padding: 24px;
  transition: var(--transition);
}
.strategy-card:hover { border-color: rgba(0,245,255,0.18); transform: translateX(4px); }
.strategy-num {
  font-family: var(--font-display); font-size: 36px; font-weight: 800;
  background: var(--gradient-cyan); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1; flex-shrink: 0; min-width: 48px;
}
.strategy-content h4 { font-size: 17px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.strategy-content p  { font-size: 14px; color: var(--text-secondary); margin: 0; line-height: 1.65; }

/* Table */
.article-table { width: 100%; border-collapse: collapse; margin: 32px 0; font-size: 14px; }
.article-table th {
  padding: 12px 16px; text-align: left;
  background: rgba(0,245,255,0.06); color: var(--accent-cyan);
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  border-bottom: 1px solid rgba(0,245,255,0.2);
}
.article-table td {
  padding: 12px 16px; border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}
.article-table tr:hover td { background: rgba(255,255,255,0.02); }

/* Author box */
.author-box {
  display: flex; gap: 20px; align-items: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-subtle); border-radius: 20px; padding: 28px;
  margin: 56px 0 0;
}
.author-avatar {
  width: 72px; height: 72px; border-radius: 50%; flex-shrink: 0;
  background: var(--gradient-cyan);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 24px; font-weight: 800; color: #000;
}
.author-name { font-family: var(--font-display); font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.author-role { font-size: 13px; color: var(--accent-cyan); margin-bottom: 8px; }
.author-bio  { font-size: 14px; color: var(--text-secondary); margin: 0; line-height: 1.6; }

/* Tags */
.article-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 32px 0 0; }
.article-tag {
  padding: 6px 16px; border-radius: 20px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border-subtle);
  font-size: 12px; color: var(--text-muted); text-decoration: none; transition: var(--transition);
}
.article-tag:hover { border-color: var(--border-glow); color: var(--accent-cyan); }

/* ── SIDEBAR ────────────────────────────────── */
.blog-sidebar { position: sticky; top: 100px; align-self: start; }
.sidebar-widget {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 20px; padding: 28px; margin-bottom: 24px;
}
.sidebar-widget h3 {
  font-family: var(--font-display); font-size: 16px; font-weight: 700;
  margin-bottom: 20px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}
.toc-list { list-style: none; }
.toc-list li { margin-bottom: 4px; }
.toc-list a {
  display: block; padding: 8px 12px; border-radius: 8px;
  font-size: 13px; color: var(--text-secondary); text-decoration: none; transition: var(--transition);
  border-left: 2px solid transparent;
}
.toc-list a:hover, .toc-list a.active {
  background: rgba(0,245,255,0.06); color: var(--accent-cyan);
  border-left-color: var(--accent-cyan); padding-left: 16px;
}
.related-post {
  display: flex; gap: 12px; align-items: center; padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle); text-decoration: none; color: inherit;
  transition: var(--transition);
}
.related-post:last-child { border-bottom: none; }
.related-post:hover { transform: translateX(4px); }
.related-thumb {
  width: 56px; height: 56px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.related-title { font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--text-primary); }
.related-cat   { font-size: 11px; color: var(--text-muted); margin-top: 3px; }

.share-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.share-btn {
  flex: 1; min-width: 80px; padding: 10px 14px; border-radius: 10px;
  border: 1px solid var(--border-subtle); background: transparent;
  font-size: 13px; font-weight: 600; color: var(--text-secondary);
  cursor: pointer; transition: var(--transition); text-align: center; text-decoration: none;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.share-btn:hover { border-color: var(--border-glow); color: var(--accent-cyan); background: rgba(0,245,255,0.04); }

/* CTA in sidebar */
.sidebar-cta {
  background: linear-gradient(135deg, rgba(0,245,255,0.08), rgba(124,58,237,0.08));
  border: 1px solid rgba(0,245,255,0.15); border-radius: 20px; padding: 28px; text-align: center;
}
.sidebar-cta h4 { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.sidebar-cta p  { font-size: 13px; color: var(--text-secondary); margin-bottom: 20px; line-height: 1.6; }

/* ── BLOG INDEX ─────────────────────────────── */
.blog-index-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px; margin-top: 56px;
}
.blog-index-card {
  background: rgba(255,255,255,0.03); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl); overflow: hidden;
  transition: var(--transition); text-decoration: none; color: inherit; display: block;
}
.blog-index-card:hover { transform: translateY(-6px); border-color: rgba(0,245,255,0.15); box-shadow: 0 20px 50px rgba(0,0,0,0.4); }
.blog-index-thumb {
  height: 200px; display: flex; align-items: center; justify-content: center; font-size: 64px;
}
.blog-index-content { padding: 28px; }
.blog-index-cat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent-cyan); margin-bottom: 10px; display: block; }
.blog-index-title { font-family: var(--font-display); font-size: 18px; font-weight: 700; line-height: 1.4; margin-bottom: 10px; }
.blog-index-excerpt { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 18px; }
.blog-index-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--text-muted); flex-wrap: wrap; }

/* ── PORTFOLIO PAGE ─────────────────────────── */
.portfolio-hero {
  padding: 140px 0 80px; background: var(--bg-primary); position: relative; overflow: hidden;
}
.portfolio-filter-bar {
  display: flex; gap: 10px; justify-content: center;
  flex-wrap: wrap; margin: 40px 0;
}
.filter-btn {
  padding: 9px 22px; border-radius: 50px; border: 1px solid var(--border-subtle);
  background: transparent; color: var(--text-secondary);
  font-size: 13px; font-weight: 600; cursor: pointer; transition: var(--transition);
  font-family: var(--font-body);
}
.filter-btn.active, .filter-btn:hover {
  border-color: var(--border-glow); background: rgba(0,245,255,0.08); color: var(--accent-cyan);
}

/* Case study card */
.case-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 20px;
}
.case-card {
  background: rgba(255,255,255,0.03); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl); overflow: hidden;
  transition: var(--transition); display: block; text-decoration: none; color: inherit;
}
.case-card:hover { transform: translateY(-6px); border-color: rgba(0,245,255,0.18); box-shadow: 0 24px 60px rgba(0,0,0,0.5); }
.case-thumb {
  height: 220px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; font-size: 72px;
}
.case-thumb-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5,7,20,0.9) 0%, transparent 60%);
}
.case-result-badge {
  position: absolute; bottom: 16px; left: 16px;
  background: rgba(5,7,20,0.85); backdrop-filter: blur(10px);
  border: 1px solid rgba(0,245,255,0.2); border-radius: 30px;
  padding: 6px 16px; font-family: var(--font-display);
  font-size: 16px; font-weight: 800;
  background-clip: text; -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-image: var(--gradient-cyan);
}
.case-result-badge-wrap {
  position: absolute; bottom: 16px; left: 16px;
  background: rgba(5,7,20,0.85); backdrop-filter: blur(10px);
  border: 1px solid rgba(0,245,255,0.2); border-radius: 30px;
  padding: 7px 18px;
}
.case-result-text {
  font-family: var(--font-display); font-size: 16px; font-weight: 800;
  background: var(--gradient-cyan); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.case-content { padding: 28px; }
.case-service-tag {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--accent-cyan); margin-bottom: 10px; display: block;
}
.case-title { font-family: var(--font-display); font-size: 19px; font-weight: 700; line-height: 1.3; margin-bottom: 10px; }
.case-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.65; margin-bottom: 20px; }
.case-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.case-metric {
  background: rgba(255,255,255,0.04); border: 1px solid var(--border-subtle);
  border-radius: 10px; padding: 12px; text-align: center;
}
.case-metric-val { font-family: var(--font-display); font-size: 18px; font-weight: 800; color: var(--accent-cyan); display: block; }
.case-metric-key { font-size: 10px; color: var(--text-muted); margin-top: 3px; }

/* Full Case Study */
.case-study-hero {
  padding: 140px 0 60px; background: var(--bg-primary); position: relative; overflow: hidden;
}
.case-study-layout { display: grid; grid-template-columns: 1fr 320px; gap: 56px; max-width: 1200px; margin: 0 auto; padding: 60px 40px 100px; }
.case-stat-sidebar {
  background: rgba(255,255,255,0.03); border: 1px solid var(--border-subtle); border-radius: 20px; padding: 28px;
  position: sticky; top: 100px; align-self: start;
}
.case-stat-item { padding: 16px 0; border-bottom: 1px solid var(--border-subtle); }
.case-stat-item:last-child { border-bottom: none; }
.case-stat-val { font-family: var(--font-display); font-size: 28px; font-weight: 800; background: var(--gradient-cyan); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.case-stat-key { font-size: 12px; color: var(--text-muted); margin-top: 3px; }

/* Chart bars inside article */
.bar-chart { margin: 36px 0; }
.bar-chart-title { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; }
.bar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.bar-label { font-size: 13px; min-width: 80px; color: var(--text-secondary); }
.bar-track { flex: 1; height: 8px; background: rgba(255,255,255,0.05); border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 4px; background: var(--gradient-cyan); transition: width 1.5s ease; }
.bar-value { font-size: 13px; font-weight: 600; color: var(--accent-cyan); min-width: 44px; text-align: right; }

/* Timeline */
.timeline { margin: 36px 0; }
.timeline-item { display: flex; gap: 20px; margin-bottom: 0; }
.timeline-line { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.timeline-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent-cyan); flex-shrink: 0; margin-top: 4px; box-shadow: 0 0 8px rgba(0,245,255,0.5); }
.timeline-connector { width: 1px; flex: 1; background: var(--border-subtle); margin: 4px 0; min-height: 24px; }
.timeline-content { padding-bottom: 28px; flex: 1; }
.timeline-month { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--accent-cyan); margin-bottom: 6px; }
.timeline-title { font-family: var(--font-display); font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.timeline-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

@media (max-width: 1024px) {
  .blog-layout, .case-study-layout { grid-template-columns: 1fr; }
  .blog-sidebar, .case-stat-sidebar { position: static; }
  .case-grid, .blog-index-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .blog-layout, .case-study-layout { padding: 32px 20px 60px; }
  .case-grid, .blog-index-grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr; }
  .strategy-card { flex-direction: column; }
}
