/* ==========================================================================
   4Achievers Junior — Dedicated Blog & SEO Resource Hub Stylesheet (blog.css)
   Seamlessly inherits tokens from style.css. 100% Responsive & Non-Destructive.
   ========================================================================== */

/* Blog Hub Layout */
.blog-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  color: #ffffff;
  padding: 4.5rem 1rem 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(234, 88, 12, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.blog-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(234, 88, 12, 0.18);
  border: 1px solid rgba(234, 88, 12, 0.35);
  border-radius: var(--radius-full);
  color: #ff8a4c;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.blog-hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #ffffff;
}

.blog-hero-title span {
  background: var(--accent-orange-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.blog-hero-subtitle {
  font-size: 1.1rem;
  color: #cbd5e1;
  max-width: 680px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

/* Category Filter Bar */
.blog-filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.blog-filter-btn {
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.25s ease;
  cursor: pointer;
}

.blog-filter-btn:hover,
.blog-filter-btn.active {
  color: #ffffff;
  background: var(--primary-orange);
  border-color: var(--primary-orange);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.3);
}

/* Blog Grid & Cards */
.blog-section {
  padding: 4rem 1rem;
  background: #f8fafc;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.blog-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
  border-color: #cbd5e1;
}

.blog-card-thumb {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: #0f172a;
}

.blog-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-thumb img {
  transform: scale(1.05);
}

.blog-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--accent-orange-gradient);
  color: #ffffff;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.blog-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.blog-card-title {
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--navy-header);
  margin-bottom: 0.75rem;
  transition: color 0.2s ease;
}

.blog-card:hover .blog-card-title {
  color: var(--primary-orange);
}

.blog-card-excerpt {
  font-size: 0.92rem;
  color: var(--navy-sub);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-orange);
}

.blog-card-footer .read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* ==========================================================================
   Single Article Layout
   ========================================================================== */
.article-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  color: #ffffff;
  padding: 3.5rem 1rem 3rem;
  text-align: left;
}

.article-header-container {
  max-width: 860px;
  margin: 0 auto;
}

.article-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 1.25rem;
}

.article-breadcrumb a {
  color: #cbd5e1;
  text-decoration: underline;
  text-decoration-color: rgba(203, 213, 225, 0.4);
}

.article-breadcrumb a:hover {
  color: #ff8a4c;
}

.article-title {
  font-size: clamp(2rem, 3.5vw, 2.85rem);
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.article-author-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
  color: #cbd5e1;
}

.author-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.author-pill img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--primary-orange);
}

/* Article Body & Typography */
.article-body-wrapper {
  background: #ffffff;
  padding: 3.5rem 1rem 5rem;
}

.article-layout {
  max-width: 860px;
  margin: 0 auto;
}

.article-content {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #1e293b;
}

.article-content h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--navy-header);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e2e8f0;
  line-height: 1.3;
}

.article-content h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  margin: 1.75rem 0 0.75rem;
  line-height: 1.35;
}

.article-content p {
  margin-bottom: 1.35rem;
}

.article-content ul,
.article-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content strong {
  color: #0f172a;
  font-weight: 700;
}

/* Key Takeaway Box */
.takeaway-box {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border-left: 4px solid var(--primary-orange);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.08);
}

.takeaway-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #9a3412;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.takeaway-box ul {
  margin: 0 0 0 1.25rem;
  color: #7c2d12;
  font-size: 0.95rem;
}

.takeaway-box li {
  margin-bottom: 0.4rem;
}

/* Table of Contents */
.toc-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 2rem 0;
}

.toc-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy-header);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc-list li {
  margin-bottom: 0.5rem;
}

.toc-list a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.toc-list a:hover {
  color: var(--primary-orange);
  transform: translateX(4px);
}

/* Comparison Tables in Articles */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  border: 1px solid #e2e8f0;
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.article-table th {
  background: #0f172a;
  color: #ffffff;
  padding: 0.9rem 1.1rem;
  font-weight: 700;
  border-bottom: 2px solid var(--primary-orange);
}

.article-table td {
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  background: #ffffff;
}

.article-table tr:nth-child(even) td {
  background: #f8fafc;
}

/* Lead Magnet Card (In-Article High Converting Block) */
.lead-magnet-card {
  background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  margin: 3rem 0;
  text-align: center;
  border: 2px solid rgba(234, 88, 12, 0.4);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.25);
  position: relative;
  overflow: hidden;
}

.lead-magnet-card::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(234, 88, 12, 0.3) 0%, transparent 70%);
  pointer-events: none;
}

.lead-magnet-badge {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  background: rgba(234, 88, 12, 0.25);
  border: 1px solid rgba(234, 88, 12, 0.5);
  border-radius: var(--radius-full);
  color: #ff8a4c;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.lead-magnet-title {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: #ffffff;
  line-height: 1.3;
}

.lead-magnet-desc {
  font-size: 1rem;
  color: #cbd5e1;
  max-width: 620px;
  margin: 0 auto 1.75rem;
  line-height: 1.6;
}

.lead-magnet-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  background: var(--accent-orange-gradient);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.4);
  transition: all 0.25s ease;
  cursor: pointer;
}

.lead-magnet-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(234, 88, 12, 0.55);
}

.lead-magnet-perks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.25rem;
  font-size: 0.82rem;
  color: #94a3b8;
}

.lead-magnet-perk {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Author Credentials Card */
.article-author-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.75rem;
  background: #f8fafc;
  border-radius: var(--radius-lg);
  border: 1px solid #e2e8f0;
  margin-top: 3.5rem;
}

.author-card-avatar {
  flex-shrink: 0;
}

.author-card-avatar img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid var(--primary-orange);
  object-fit: cover;
}

.author-card-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy-header);
  margin-bottom: 0.25rem;
}

.author-card-role {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-orange);
  margin-bottom: 0.5rem;
}

.author-card-bio {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.5;
}

/* Floating Sticky Demo CTA on Mobile */
.mobile-sticky-demo-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(8px);
  padding: 0.75rem 1rem;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
  z-index: 999;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 768px) {
  .mobile-sticky-demo-bar {
    display: flex;
  }
  .blog-hero {
    padding: 3rem 1rem 2rem;
  }
  .article-header {
    padding: 2.5rem 1rem 2rem;
  }
  .article-author-card {
    flex-direction: column;
    text-align: center;
  }
}
