/* ==========================================================================
   APJ3D ENGINEERING ARTICLE STYLES (Clean Editorial Layout & Perfect Alignment)
   ========================================================================== */

.article-page {
  background-color: #ffffff;
  color: #1e293b;
  font-family: 'Figtree', sans-serif;
  margin: 0;
  padding: 0;
}

/* Editorial Hero Header */
.article-hero-section {
  padding-top: 155px;
  padding-bottom: 35px;
  background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
  text-align: center;
  position: relative;
  border-bottom: 1px solid rgba(11, 78, 174, 0.08);
}

.article-hero-container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Breadcrumb & Navigation Row */
.article-nav-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.article-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  color: #0B4EAE;
  text-decoration: none;
  background: rgba(11, 78, 174, 0.06);
  padding: 6px 14px;
  border-radius: 50px;
  border: 1px solid rgba(11, 78, 174, 0.15);
  transition: all 0.25s ease;
}

.article-back-link:hover {
  background: #0B4EAE;
  color: #ffffff;
  transform: translateX(-3px);
}

.article-category-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0B4EAE;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.35);
  padding: 6px 16px;
  border-radius: 50px;
}

/* Main Article Title */
.article-main-title {
  font-family: 'Figtree', sans-serif;
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  font-weight: 800;
  color: #1b1564;
  line-height: 1.24;
  margin: 0 auto 20px;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

/* Lead Subtitle */
.article-lead-subtitle {
  font-family: 'Figtree', sans-serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: #475569;
  line-height: 1.65;
  max-width: 760px;
  margin: 0 auto 26px;
}

/* Author & Meta Bar */
.article-author-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  padding: 6px 20px;
  border-radius: 50px;
  border: 1px solid rgba(11, 78, 174, 0.15);
  box-shadow: 0 4px 16px rgba(11, 78, 174, 0.06);
}

.article-author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: contain;
  background: #ffffff;
}

.article-author-details {
  text-align: left;
  line-height: 1.2;
}

.article-author-name {
  font-size: 0.9rem;
  font-weight: 800;
  color: #1b1564;
}

.article-author-meta {
  font-size: 0.8rem;
  color: #64748b;
  font-family: 'Figtree', sans-serif;
}

/* Featured Visual Frame */
.article-featured-wrapper {
  max-width: 940px;
  margin: 36px auto 45px;
  padding: 0 20px;
}

.article-featured-frame {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(11, 78, 174, 0.14), 0 4px 16px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(11, 78, 174, 0.16);
  background: #040814;
}

.article-featured-frame img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

/* Article Content Body */
.article-content-container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px 100px;
  font-family: 'Figtree', sans-serif;
  font-size: 1.12rem;
  line-height: 1.85;
  color: #334155;
}

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

.article-content-container p.lead-paragraph {
  font-size: 1.25rem;
  font-weight: 500;
  color: #1b1564;
  line-height: 1.7;
  margin-bottom: 2.2rem;
}

.article-content-container h2 {
  font-size: 1.85rem;
  font-weight: 800;
  color: #1b1564;
  margin-top: 3.2rem;
  margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.article-content-container h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0B4EAE;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  line-height: 1.35;
}

.article-content-container ul, 
.article-content-container ol {
  padding-left: 24px;
  margin-bottom: 2rem;
}

.article-content-container li {
  margin-bottom: 0.6rem;
  line-height: 1.8;
}

/* Engineering Callout Card */
.article-callout-box {
  background: linear-gradient(135deg, rgba(246, 250, 255, 0.95), #ffffff);
  border: 1px solid rgba(11, 78, 174, 0.18);
  border-left: 5px solid #0B4EAE;
  border-radius: 14px;
  padding: 24px 28px;
  margin: 2.5rem 0;
  box-shadow: 0 8px 24px rgba(11, 78, 174, 0.04);
}

.article-callout-box h4 {
  color: #1b1564;
  margin: 0 0 8px;
  font-weight: 800;
  font-size: 1.1rem;
}

.article-callout-box p {
  margin: 0 !important;
  color: #475569;
  font-size: 0.98rem;
  line-height: 1.65;
}

/* Comparison Table */
.article-table-wrap {
  overflow-x: auto;
  margin: 2.2rem 0;
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  border: 1px solid rgba(11, 78, 174, 0.15);
  border-radius: 12px;
  overflow: hidden;
}

.article-table th {
  background: #0B4EAE;
  color: #ffffff;
  text-align: left;
  padding: 14px 18px;
  font-weight: 700;
}

.article-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(11, 78, 174, 0.1);
}

.article-table tr:nth-child(even) td {
  background: rgba(246, 250, 255, 0.6);
}

/* Bottom CTA Card */
.article-bottom-cta {
  background: linear-gradient(135deg, #051952 0%, #0B4EAE 100%);
  border-radius: 20px;
  padding: 36px 40px;
  color: #ffffff;
  margin-top: 3.5rem;
  box-shadow: 0 16px 45px rgba(11, 78, 174, 0.25);
  text-align: center;
}

.article-bottom-cta h3 {
  color: #ffffff !important;
  font-size: 1.5rem !important;
  font-weight: 800 !important;
  margin-top: 0 !important;
  margin-bottom: 12px !important;
}

.article-bottom-cta p {
  color: #E0F2FE !important;
  font-size: 1.02rem !important;
  line-height: 1.6 !important;
  margin-bottom: 24px !important;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.article-bottom-cta .btn-cta {
  display: inline-block;
  background: #00E5FF;
  color: #040814;
  font-weight: 800;
  padding: 13px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px rgba(0, 229, 255, 0.4);
}

.article-bottom-cta .btn-cta:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 30px rgba(0, 229, 255, 0.6);
  background: #ffffff;
  color: #0B4EAE;
}
