/* =============================================
   EIBO CAREER HUB - BLOG ARTICLE DETAIL PAGE
   ============================================= */

.article-page {
  background:
    radial-gradient(circle at 12% 8%, rgba(0, 207, 255, 0.1), transparent 28%),
    radial-gradient(circle at 88% 16%, rgba(249, 115, 22, 0.08), transparent 25%),
    #060a14;
}

.article-hero {
  padding: 152px 0 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.article-breadcrumb {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.article-breadcrumb a {
  color: var(--eibo-cyan);
  transition: var(--transition);
}

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

.article-hero-content {
  max-width: 900px;
}

.article-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.article-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.4vw, 3.35rem);
  line-height: 1.12;
  color: #fff;
  font-weight: 800;
  margin-bottom: 18px;
}

.article-hero-excerpt {
  font-size: 1.12rem;
  line-height: 1.78;
  color: #cbd5e1;
  margin-bottom: 24px;
}

.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.article-meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.article-meta-row i {
  color: var(--eibo-cyan);
}

.article-body-wrap {
  padding: 52px 0 84px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
}

.article-main {
  background: rgba(11, 16, 28, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  overflow: hidden;
}

.article-cover {
  width: 100%;
  max-height: 440px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: #090e1a;
}

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

.article-prose {
  padding: 40px;
}

.article-toc-inline {
  padding: 20px 24px;
  border-radius: 14px;
  background: rgba(30, 144, 255, 0.06);
  border: 1px solid rgba(30, 144, 255, 0.2);
  margin-bottom: 34px;
}

.article-toc-inline strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--eibo-cyan);
  margin-bottom: 12px;
}

.article-toc-inline ol {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.article-toc-inline a {
  color: #e2e8f0;
  font-size: 0.93rem;
  transition: var(--transition);
}

.article-toc-inline a:hover {
  color: var(--eibo-cyan);
}

.article-section {
  margin-bottom: 36px;
  scroll-margin-top: 112px;
}

.article-section:last-child {
  margin-bottom: 0;
}

.article-section h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.28;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.article-section h3 {
  font-family: var(--font-heading);
  font-size: 1.16rem;
  font-weight: 700;
  color: var(--eibo-cyan);
  margin: 22px 0 10px;
}

.article-section p {
  font-size: 1rem;
  line-height: 1.85;
  color: #d6e0ee;
  margin-bottom: 16px;
}

.article-section ul,
.article-section ol {
  padding-left: 24px;
  margin: 14px 0 18px;
}

.article-section ul {
  list-style: disc;
}

.article-section ol {
  list-style: decimal;
}

.article-section li {
  font-size: 0.98rem;
  line-height: 1.82;
  color: #d6e0ee;
  margin-bottom: 10px;
}

.article-section a {
  color: var(--eibo-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-section a:hover {
  color: #fff;
}

.article-section code {
  font-family: Consolas, Monaco, 'Courier New', monospace;
  font-size: 0.88em;
  background: rgba(0, 207, 255, 0.1);
  color: #7dd3fc;
  padding: 2px 6px;
  border-radius: 6px;
}

.article-section pre {
  background: #030712;
  border: 1px solid rgba(0, 207, 255, 0.22);
  border-radius: 14px;
  padding: 20px;
  overflow-x: auto;
  margin: 18px 0 22px;
}

.article-section pre code {
  background: transparent;
  color: #e2e8f0;
  padding: 0;
  font-size: 0.88rem;
  line-height: 1.68;
  display: block;
}

.article-callout {
  padding: 18px 22px;
  border-radius: 14px;
  background: rgba(249, 115, 22, 0.09);
  border-left: 4px solid var(--eibo-orange);
  color: #f1f5f9;
  line-height: 1.75;
  margin: 20px 0;
}

.article-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 20px 0 24px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  font-size: 0.91rem;
}

.article-table th {
  background: rgba(30, 144, 255, 0.14);
  color: #fff;
  text-align: left;
  padding: 13px 16px;
  font-family: var(--font-heading);
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.article-table td {
  padding: 13px 16px;
  color: #cbd5e1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: top;
  line-height: 1.6;
}

.article-table tbody tr:last-child td {
  border-bottom: 0;
}

.article-author-box {
  margin-top: 38px;
  padding: 24px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.article-author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--grad-blue);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.article-author-info h4 {
  font-family: var(--font-heading);
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 3px;
}

.article-author-role {
  display: block;
  font-size: 0.83rem;
  color: var(--eibo-cyan);
  margin-bottom: 8px;
}

.article-author-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: sticky;
  top: 108px;
}

.article-widget {
  padding: 24px;
  border-radius: 18px;
  background: rgba(11, 16, 28, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.article-widget h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: #fff;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.article-widget p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.related-article-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.related-article-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.related-article-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.related-article-item strong {
  font-size: 0.92rem;
  color: #e2e8f0;
  line-height: 1.45;
  transition: var(--transition);
}

.related-article-item:hover strong {
  color: var(--eibo-cyan);
}

.related-article-item small {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.related-bottom-section {
  padding: 10px 0 60px;
}

.related-bottom-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 24px;
}

.related-bottom-card {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(11, 16, 28, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition);
}

.related-bottom-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 207, 255, 0.35);
}

.related-bottom-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.related-bottom-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.related-bottom-body h4 {
  font-family: var(--font-heading);
  font-size: 1.04rem;
  color: #fff;
  line-height: 1.4;
}

.related-bottom-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 980px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    position: static;
  }
  .related-bottom-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .article-prose {
    padding: 24px 18px;
  }
  .article-author-box {
    flex-direction: column;
  }
}
