/* =====================================================================
   GOVT JOB NEWS — ARTICLE LAYOUT SYSTEM (Elevated Trust Theme 2026-2048)
   Warm Orange · Elevated Neutrals · Mobile-First
   -----------------------------------------------------------------
   Loaded AFTER style.css on ALL article pages.
   All selectors scoped via .article-page to prevent base conflicts.
   ===================================================================== */

/* ---------- DESIGN TOKENS ---------- */
.article-page {
  --ap-content-max: 780px;
  --ap-sidebar-w: 0px;
  --ap-gap: 25px;
  --ap-radius: 10px;
  --ap-radius-sm: 6px;
  --ap-radius-xs: 4px;
  --ap-pad: 24px;
  --ap-pad-mobile: 14px;
  --ap-line-height: 1.75;
  --ap-font-body: 1rem;
  --ap-font-body-mobile: 1rem;
  --ap-font-body-small: 0.875rem;

  /* Colour palette — Elevated Trust */
  --ap-primary: #E8590C;
  --ap-primary-dark: #C2410C;
  --ap-primary-light: #FFF7ED;
  --ap-primary-lighter: #FFFBF5;
  --ap-surface: #ffffff;
  --ap-surface-alt: #F8F6F3;
  --ap-text: #1A1A1A;
  --ap-text-body: #374151;
  --ap-text-muted: #6B7280;
  --ap-border: #E2DDD7;
  --ap-border-light: #F0ECE6;
  --ap-accent-red: #DC2626;
  --ap-accent-green: #059669;
  --ap-accent-amber: #D97706;
  --ap-secondary: #1E293B;

  /* Shadows — layered, softer */
  --ap-shadow-card: 0 1px 3px rgba(0,0,0,0.05), 0 4px 12px rgba(0,0,0,0.04);
  --ap-shadow-elevated: 0 4px 6px rgba(0,0,0,0.04), 0 10px 24px rgba(0,0,0,0.08);

  /* Transitions */
  --ap-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================
   1. CONTENT GRID LAYOUT
   ============================ */
.article-page .main-content {
  padding: 0 0 60px;
  background: var(--ap-surface-alt);
}

.article-page .content-grid {
  /* Single column — no sidebar */
  max-width: var(--ap-content-max);
  margin: 0 auto;
  padding: 20px 20px 0;
}

/* ============================
   2. ARTICLE CARD
   ============================ */
.article-page .article-content {
  background: var(--ap-surface);
  border-radius: var(--ap-radius);
  box-shadow: var(--ap-shadow-card);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--ap-border-light);
}

/* ---------- Hero Banner (Base) ---------- */
.article-page .article-hero {
  background: linear-gradient(135deg, #E8590C 0%, #C2410C 35%, #9A3412 70%, #7C2D12 100%);
  color: #fff;
  padding: 20px var(--ap-pad) 18px;
  position: relative;
}

.article-page .category-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
  min-height: auto;
}
.article-page .category-badge i { font-size: 0.7rem; }

.article-page .article-hero h1 {
  font-family: 'Plus Jakarta Sans', 'Noto Sans Devanagari', sans-serif;
  font-size: clamp(1.25rem, 4vw + 0.2rem, 1.5rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
}

.article-page .article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.88);
}
.article-page .article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: auto;
}
.article-page .article-meta i { font-size: 0.7rem; opacity: 0.75; margin-right: 0; }

/* ============================
   3. TYPOGRAPHY
   ============================ */
.article-page .article-content section,
.article-page .article-content > .ap-highlight-box,
.article-page .article-content > .ap-toc-box,
.article-page .article-content > .ap-disclaimer-box,
.article-page .article-content > .ap-author-box {
  padding: 0 var(--ap-pad);
  margin-bottom: 0;
}

.article-page .article-content section {
  padding-top: 28px;
  padding-bottom: 22px;
  border-top: 1px solid var(--ap-border-light);
}
.article-page .article-content section:first-of-type { border-top: none; }

/* H2 — fluid sizing: 15px @ 360px → 20px @ 780px — lighter, no background */
.article-page .article-content h2 {
  font-size: clamp(1.1rem, 3.5vw + 0.25rem, 1.25rem);
  font-weight: 700;
  color: var(--ap-text);
  margin-bottom: 16px;
  line-height: 1.4;
  padding: 8px 0 8px 14px;
  border-left: 3px solid var(--ap-primary);
  border-bottom: none;
  display: flex;
  align-items: center;
  gap: 0;
  background: transparent;
  border-radius: 0;
}
.article-page .article-content h2 i {
  margin-right: 10px;
  color: var(--ap-primary);
  font-size: 0.875rem;
  flex-shrink: 0;
}

/* H3 — fluid sizing */
.article-page .article-content h3 {
  font-size: clamp(1rem, 2.5vw + 0.25rem, 1.1rem);
  font-weight: 700;
  color: var(--ap-text);
  margin: 24px 0 12px;
  line-height: 1.4;
}

/* H4 */
.article-page .article-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ap-text-body);
  margin: 18px 0 10px;
}

/* Body text — fluid sizing */
.article-page .article-content p {
  color: var(--ap-text-body);
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.8;
}
.article-page .article-content p strong {
  color: var(--ap-text);
  font-weight: 700;
}
.article-page .article-content p a {
  color: var(--ap-primary);
  font-weight: 600;
}
.article-page .article-content p a:hover {
  color: var(--ap-primary-dark);
  text-decoration: underline;
}

/* Lists */
.article-page .article-content ul,
.article-page .article-content ol {
  margin: 12px 0 20px 0;
  padding-left: 0;
  list-style: none;
}
.article-page .article-content ul li,
.article-page .article-content ol li {
  position: relative;
  padding: 6px 0 6px 28px;
  font-size: 1rem;
  color: var(--ap-text-body);
  line-height: 1.75;
}
.article-page .article-content ul li::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 15px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ap-primary);
}
.article-page .article-content ol { counter-reset: ap-list; }
.article-page .article-content ol li { counter-increment: ap-list; }
.article-page .article-content ol li::before {
  content: counter(ap-list);
  position: absolute;
  left: 0;
  top: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ap-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}

/* ============================
   4. HIGHLIGHT BOX
   ============================ */
.article-page .ap-highlight-box {
  margin: 24px var(--ap-pad) 10px !important;
  padding: 24px !important;
  background: linear-gradient(135deg, #fff3e6, #fff9f0);
  border: 1px solid #ffd6a5;
  border-radius: var(--ap-radius);
  border-left: 4px solid var(--ap-primary);
}

.article-page .ap-highlight-box h2,
.article-page .ap-highlight-box h3 {
  font-size: 1.1rem !important;
  color: var(--ap-primary-dark) !important;
  border-bottom: none !important;
  border-left: none !important;
  background: none !important;
  margin-bottom: 18px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center;
  gap: 8px;
}

.article-page .ap-highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.article-page .ap-highlight-item {
  background: #fff;
  padding: 14px 16px;
  border-radius: var(--ap-radius-sm);
  border: 1px solid var(--ap-border);
}
.article-page .ap-highlight-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ap-text-muted);
  margin-bottom: 3px;
}
.article-page .ap-highlight-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ap-text);
}
.article-page .ap-highlight-value.accent { color: var(--ap-primary) !important; }
.article-page .ap-highlight-value.urgent { color: var(--ap-accent-red) !important; }

/* ============================
   5. TABLE OF CONTENTS
   ============================ */
.article-page .ap-toc-box {
  margin: 16px var(--ap-pad) 10px !important;
  padding: 22px !important;
  background: #fff;
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius);
}
.article-page .ap-toc-box h2 {
  font-size: 1.1rem !important;
  border-bottom: 2px solid var(--ap-border) !important;
  border-left: none !important;
  background: none !important;
  margin-bottom: 14px !important;
  padding: 0 0 10px 0 !important;
  display: flex !important;
  align-items: center;
  gap: 8px;
  color: var(--ap-text) !important;
}
.article-page .ap-toc-list {
  list-style: none;
  counter-reset: toc;
  columns: 2;
  column-gap: 24px;
  margin: 0;
  padding: 0;
}
.article-page .ap-toc-list li {
  counter-increment: toc;
  padding: 5px 0;
  break-inside: avoid;
}
.article-page .ap-toc-list li::before { display: none; }
.article-page .ap-toc-list li a {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--ap-text-muted);
  transition: all 0.2s;
  line-height: 1.5;
  font-weight: 500;
  text-decoration: none;
  min-height: auto;
}
.article-page .ap-toc-list li a:hover { color: var(--ap-primary); text-decoration: none; }
.article-page .ap-toc-list li a::before {
  content: counter(toc) '.';
  font-weight: 700;
  color: var(--ap-primary);
  font-size: 0.875rem;
  min-width: 20px;
}

/* ============================
   6. DATA TABLES
   ============================ */
.article-page .ap-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 16px 0 24px;
  border-radius: var(--ap-radius-sm);
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.15) transparent;
}
.article-page .ap-table-wrap::-webkit-scrollbar { height: 6px; }
.article-page .ap-table-wrap::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 3px; }
.article-page .ap-table-wrap::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 3px; }

.article-page .data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 1rem;
  background: #fff;
  border-radius: var(--ap-radius-sm);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid var(--ap-border);
}
.article-page .data-table thead {
  background: var(--ap-secondary);
  color: #fff;
}
.article-page .data-table th {
  padding: 10px 15px;
  font-weight: 600;
  text-align: left;
  font-size: 1rem;
  white-space: nowrap;
}
.article-page .data-table td {
  padding: 10px 15px;
  border-bottom: 1px solid var(--ap-border);
  color: var(--ap-text-body);
  vertical-align: middle;
}

/* Auto-wrap tables */
.article-page .article-content section {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.article-page .data-table tbody tr:hover { background: #fff3e6; }
.article-page .data-table tbody tr:nth-child(even) { background: #f9f9f9; }
.article-page .data-table tbody tr:nth-child(odd) { background: #fff; }
.article-page .data-table tbody tr:hover { background: #fff3e6; }
.article-page .data-table tbody tr:last-child td { border-bottom: none; }
.article-page .data-table tbody tr.highlight-row { background: #fef9c3; }
.article-page .data-table tbody tr.highlight-row td { font-weight: 700; color: var(--ap-accent-red); }
.article-page .data-table tfoot { background: var(--ap-primary-light); }
.article-page .data-table tfoot td { font-weight: 700; color: var(--ap-primary-dark); border-bottom: none; }
.article-page .vacancy-table td:nth-child(n+3),
.article-page .vacancy-table th:nth-child(n+3) { text-align: center; }

/* ============================
   7. CALLOUT BOXES
   ============================ */
.article-page .ap-callout {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--ap-radius-sm);
  margin: 18px 0;
  font-size: 1rem;
  line-height: 1.7;
}
.article-page .ap-callout > i { font-size: 1.25rem; margin-top: 2px; flex-shrink: 0; }
.article-page .ap-callout p { margin-bottom: 0; color: var(--ap-text); text-align: left; }

.article-page .ap-callout.info {
  background: #f0f9ff;
  border: 1px solid #b3d9f2;
  border-left: 4px solid #0088cc;
}
.article-page .ap-callout.info > i { color: #0088cc; }

.article-page .ap-callout.warning {
  background: #fffbeb;
  border: 1px solid #fbbf24;
  border-left: 4px solid #d97706;
}
.article-page .ap-callout.warning > i { color: #d97706; }

.article-page .ap-callout.danger {
  background: #fef2f2;
  border: 1px solid #f87171;
  border-left: 4px solid #dc2626;
}
.article-page .ap-callout.danger > i { color: #dc2626; }

.article-page .ap-callout.success {
  background: #f0fff4;
  border: 1px solid #a3d9a5;
  border-left: 4px solid #2d6a4f;
}
.article-page .ap-callout.success > i { color: #2d6a4f; }

/* ============================
   8. SUMMARY CARD
   ============================ */
.article-page .ap-summary-card {
  text-align: left;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius);
  box-shadow: var(--ap-shadow-card);
  margin: 16px 0;
}
.article-page .ap-summary-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ap-text);
  margin: 0 0 14px !important;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ap-border-light);
}
.article-page .ap-summary-card h3 i { color: var(--ap-primary); }
.article-page .ap-summary-card ul { margin: 0; padding: 0; list-style: none; }
.article-page .ap-summary-card ul li {
  padding: 8px 0;
  font-size: 1rem;
  color: var(--ap-text-body);
  border-bottom: 1px dashed var(--ap-border-light);
  text-align: left;
}
.article-page .ap-summary-card ul li::before { display: none; }
.article-page .ap-summary-card ul li:last-child { border-bottom: none; }
.article-page .ap-summary-card ul li strong { color: var(--ap-text); margin-right: 6px; }

/* ============================
   9. ELIGIBILITY CARDS
   ============================ */
.article-page .ap-eligibility-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 18px 0;
}
.article-page .ap-eligibility-card {
  background: #fff;
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius-sm);
  padding: 20px;
  border-top: 3px solid var(--ap-primary);
}
.article-page .ap-eligibility-card.eligible { border-top-color: var(--ap-accent-green); }
.article-page .ap-elig-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--ap-radius-sm);
  background: var(--ap-primary-light);
  color: var(--ap-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 12px;
}
.article-page .ap-eligibility-card.eligible .ap-elig-icon { background: #d1fae5; color: #2d6a4f; }
.article-page .ap-eligibility-card h4 { font-size: 1rem; font-weight: 700; color: var(--ap-text); margin: 0 0 6px; }
.article-page .ap-eligibility-card p { margin-bottom: 0; font-size: 1rem; text-align: left; }

/* ============================
   10. STEPS LIST
   ============================ */
.article-page .ap-steps-list { margin: 18px 0; }
.article-page .ap-step {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px dashed var(--ap-border);
  align-items: flex-start;
}
.article-page .ap-step:last-child { border-bottom: none; }
.article-page .ap-step-num {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  background: var(--ap-primary);
  color: #fff;
  border-radius: var(--ap-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  min-height: auto;
}
.article-page .ap-step-body strong {
  display: block;
  font-size: 1rem;
  color: var(--ap-text);
  margin-bottom: 4px;
}
.article-page .ap-step-body p { margin-bottom: 0; font-size: 1rem; text-align: left; color: var(--ap-text-muted); }

/* ============================
   11. FAQ ACCORDION
   ============================ */
.article-page .ap-faq-list { margin: 16px 0; }
.article-page .ap-faq-item {
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
  background: #fff;
}
.article-page .ap-faq-item:hover { box-shadow: var(--ap-shadow-card); }
.article-page .ap-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 20px;
  background: #fafafa;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ap-secondary);
  transition: all 0.2s;
  font-family: var(--font-sans);
}
.article-page .ap-faq-q:hover { background: var(--ap-primary-light); }
.article-page .ap-faq-q span { flex: 1; }
.article-page .ap-faq-q i { flex-shrink: 0; font-size: 0.8rem; transition: transform 0.3s; color: var(--ap-primary); }
.article-page .ap-faq-item.active { border-color: var(--ap-primary); }
.article-page .ap-faq-item.active .ap-faq-q { background: var(--ap-primary-light); color: var(--ap-primary-dark); }
.article-page .ap-faq-item.active .ap-faq-q i { transform: rotate(180deg); }
.article-page .ap-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 20px;
}
.article-page .ap-faq-item.active .ap-faq-a { max-height: 600px; padding: 16px 20px 20px; }
.article-page .ap-faq-a p { margin-bottom: 0; font-size: 1rem; color: var(--ap-text-body); text-align: left; }

/* ============================
   12. RELATED POSTS
   ============================ */
.article-page .ap-related-posts {
  padding: 28px var(--ap-pad) 32px;
  border-top: 1px solid var(--ap-border-light);
  background: var(--ap-surface-alt);
}
.article-page .ap-related-posts h2 {
  font-size: 1.1rem !important;
  border-bottom: none !important;
  border-left: none !important;
  background: none !important;
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px !important;
  padding: 0 !important;
}
.article-page .ap-related-posts h2 i { color: var(--ap-primary); }
.article-page .ap-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.article-page .ap-related-card {
  display: block;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius-sm);
  transition: all 0.2s;
  text-decoration: none;
}
.article-page .ap-related-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ap-shadow-elevated);
  text-decoration: none;
  border-color: var(--ap-primary);
}
.article-page .ap-related-category {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ap-primary);
  background: var(--ap-primary-light);
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 8px;
}
.article-page .ap-related-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ap-text);
  margin: 0 0 6px;
  line-height: 1.4;
}
.article-page .ap-related-card p {
  font-size: 0.875rem;
  color: var(--ap-text-muted);
  margin: 0;
  text-align: left;
  line-height: 1.55;
}

/* ============================
   13. SIDEBAR — STICKY
   ============================ */
/* Sidebar removed — hidden for safety */
.article-page .ap-sidebar { display: none; }

.article-page .ap-widget {
  background: #fff;
  border-radius: var(--ap-radius);
  box-shadow: var(--ap-shadow-card);
  overflow: hidden;
  margin-bottom: 20px;
}
.article-page .ap-widget:last-child { margin-bottom: 0; }

.article-page .ap-widget h3 {
  padding: 12px 15px;
  font-size: 1.1rem;
  border-left: 4px solid var(--ap-primary);
  background: #fafafa;
  border-bottom: 1px solid var(--ap-border);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
}
.article-page .ap-widget h3 i { color: var(--ap-primary); font-size: 1rem; }

/* Quick Apply Widget */
.article-page .ap-widget-apply {
  background: linear-gradient(135deg, var(--ap-primary), var(--ap-primary-dark));
  color: #fff;
  text-align: center;
  padding: 25px 20px;
}
.article-page .ap-widget-apply h3 { color: #fff; border: none; background: none; padding: 0; margin-bottom: 12px; }
.article-page .ap-widget-apply h3 i { color: #fff; }

.article-page .ap-apply-details { margin-bottom: 16px; }
.article-page .ap-apply-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  font-size: 1rem;
}
.article-page .ap-apply-row:last-child { border-bottom: none; }
.article-page .ap-apply-label { color: rgba(255,255,255,0.8); font-weight: 500; }
.article-page .ap-apply-val { color: #fff; font-weight: 700; text-align: right; }
.article-page .ap-apply-val.urgent { color: #fbbf24; }

.article-page .ap-apply-btn {
  display: block;
  background: #fff;
  color: var(--ap-primary) !important;
  padding: 13px 20px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 1rem;
  text-align: center;
  text-decoration: none !important;
  transition: all 0.2s;
  margin-bottom: 8px;
  min-height: auto;
}
.article-page .ap-apply-btn:hover { transform: scale(1.03); box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.article-page .ap-apply-btn i { margin-right: 6px; }

.article-page .ap-apply-note { font-size: 0.8rem; color: rgba(255,255,255,0.7); text-align: center; margin: 0; }

/* Sidebar Date/Checklist/Info/News Lists */
.article-page .ap-dates-list,
.article-page .ap-checklist,
.article-page .ap-info-list,
.article-page .ap-news-list { list-style: none; padding: 10px 15px; margin: 0; }

.article-page .ap-dates-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed var(--ap-border);
  font-size: 0.875rem;
}
.article-page .ap-dates-list li::before { display: none; }
.article-page .ap-dates-list li:last-child { border-bottom: none; }
.article-page .ap-date-event { color: var(--ap-text-body); font-weight: 500; }
.article-page .ap-date-val { font-weight: 700; color: var(--ap-text); text-align: right; }
.article-page .ap-date-val.urgent { color: var(--ap-accent-red); }

.article-page .ap-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
  font-size: 0.875rem;
  color: var(--ap-text-body);
  line-height: 1.5;
}
.article-page .ap-checklist li::before { display: none; }
.article-page .ap-checklist li i { margin-top: 3px; flex-shrink: 0; }

.article-page .ap-info-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--ap-border-light);
  font-size: 0.875rem;
  color: var(--ap-text-body);
}
.article-page .ap-info-list li::before { display: none; }
.article-page .ap-info-list li:last-child { border-bottom: none; }
.article-page .ap-info-list li strong { color: var(--ap-text); margin-right: 4px; }

.article-page .ap-news-list li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--ap-border);
}
.article-page .ap-news-list li::before { display: none; }
.article-page .ap-news-list li:last-child { border-bottom: none; }
.article-page .ap-news-list li a {
  font-size: 0.875rem;
  color: var(--ap-text-body);
  display: block;
  line-height: 1.5;
  font-weight: 500;
  text-decoration: none;
}
.article-page .ap-news-list li a:hover { color: var(--ap-primary); }

/* Sidebar Tool Links */
.article-page .ap-tool-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  margin: 0 15px 8px;
  background: var(--ap-surface-alt);
  border: 1px solid var(--ap-border-light);
  border-radius: var(--ap-radius-sm);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ap-text-body);
  text-decoration: none;
  transition: all 0.2s;
  min-height: auto;
}
.article-page .ap-tool-link:last-child { margin-bottom: 15px; }
.article-page .ap-tool-link:hover { background: var(--ap-primary-light); color: var(--ap-primary); text-decoration: none; }
.article-page .ap-tool-link i { color: var(--ap-primary); font-size: 0.875rem; width: 18px; text-align: center; }

/* Share Widget */
.article-page .ap-share-buttons { display: flex; gap: 10px; padding: 15px; }
.article-page .ap-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--ap-radius-sm);
  font-size: 1rem;
  color: #fff !important;
  text-decoration: none !important;
  transition: all 0.2s;
  min-height: auto;
}
.article-page .ap-share-btn:hover { transform: translateY(-2px); opacity: 0.9; }
.article-page .ap-share-btn.twitter { background: #1da1f2; }
.article-page .ap-share-btn.facebook { background: #1877f2; }
.article-page .ap-share-btn.whatsapp { background: #25d366; }
.article-page .ap-share-btn.telegram { background: #0088cc; }

/* ============================
   14. AUTHOR & DISCLAIMER
   ============================ */
.article-page .ap-author-box {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 22px var(--ap-pad) 10px !important;
  padding: 22px !important;
  background: linear-gradient(135deg, #fff3e6, #fff9f0);
  border: 1px solid #ffd6a5;
  border-radius: var(--ap-radius);
}
.article-page .ap-author-avatar {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: var(--ap-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}
.article-page .ap-author-info h4 { font-size: 1rem; color: var(--ap-text); margin-bottom: 3px; font-weight: 700; }
.article-page .ap-author-info p { font-size: 0.875rem; color: var(--ap-text-muted); margin-bottom: 0; line-height: 1.55; text-align: left; }

.article-page .ap-disclaimer-box {
  margin: 10px var(--ap-pad) 28px !important;
  padding: 20px !important;
  background: var(--ap-surface-alt);
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius-sm);
}
.article-page .ap-disclaimer-box h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  color: var(--ap-text-muted);
  margin-bottom: 8px;
}
.article-page .ap-disclaimer-box p {
  font-size: 0.875rem;
  color: var(--ap-text-muted);
  margin-bottom: 0;
  line-height: 1.7;
  text-align: left;
}

/* ============================
   15. LEGACY COMPAT — Summary/Styled Lists/Callouts/Steps/Location/FAQ/Sidebar
   ============================ */

/* Summary grid */
.article-page .summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 20px 0; }
.article-page .summary-card { text-align: center; padding: 20px 14px; background: var(--ap-surface-alt); border: 1px solid var(--ap-border); border-radius: var(--ap-radius); }
.article-page .summary-card:hover { transform: translateY(-2px); box-shadow: var(--ap-shadow-elevated); }
.article-page .summary-number { font-size: 2rem; font-weight: 800; color: var(--ap-primary); line-height: 1.1; }
.article-page .summary-label { font-size: 0.8rem; color: var(--ap-text-muted); font-weight: 500; margin-top: 6px; }
.article-page .accent-card { background: linear-gradient(135deg, var(--ap-primary), var(--ap-primary-dark)); border-color: var(--ap-primary); }
.article-page .accent-card .summary-number { color: #fff; }
.article-page .accent-card .summary-label { color: rgba(255,255,255,0.85); }

/* Styled lists */
.article-page .styled-list { list-style: none; margin: 12px 0 20px; padding-left: 0; }
.article-page .styled-list li { position: relative; padding: 6px 0 6px 28px; font-size: 1rem; color: var(--ap-text-body); line-height: 1.7; }
.article-page .styled-list li::before { content: ''; position: absolute; left: 0; top: 13px; width: 8px; height: 8px; background: var(--ap-primary); border-radius: 50%; }
.article-page ol.styled-list { counter-reset: item; }
.article-page ol.styled-list li::before { content: counter(item); counter-increment: item; background: var(--ap-primary); color: #fff; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700; top: 9px; }
.article-page .check-list li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 0.7rem; background: var(--ap-accent-green); color: #fff; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; top: 12px; }

/* Legacy callouts */
.article-page .info-callout, .article-page .warning-callout, .article-page .danger-callout, .article-page .success-callout {
  display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--ap-radius-sm); margin: 18px 0; font-size: 1rem; line-height: 1.7;
}
.article-page .info-callout { background: #f0f9ff; border: 1px solid #b3d9f2; border-left: 4px solid #0088cc; }
.article-page .info-callout > i { color: #0088cc; font-size: 1.25rem; margin-top: 2px; flex-shrink: 0; }
.article-page .warning-callout { background: #fffbeb; border: 1px solid #fbbf24; border-left: 4px solid #d97706; }
.article-page .warning-callout > i { color: #d97706; font-size: 1.25rem; margin-top: 2px; flex-shrink: 0; }
.article-page .danger-callout { background: #fef2f2; border: 1px solid #fca5a5; border-left: 4px solid #dc2626; }
.article-page .danger-callout > i { color: #dc2626; font-size: 1.25rem; margin-top: 2px; flex-shrink: 0; }
.article-page .success-callout { background: #f0fdf4; border: 1px solid #86efac; border-left: 4px solid #2d6a4f; }
.article-page .success-callout > i { color: #2d6a4f; font-size: 1.25rem; margin-top: 2px; flex-shrink: 0; }
.article-page .info-callout p, .article-page .warning-callout p, .article-page .danger-callout p, .article-page .success-callout p { margin-bottom: 0; color: var(--ap-text); text-align: left; }

/* Legacy eligibility cards */
.article-page .eligibility-card { background: var(--ap-surface-alt); border: 1px solid var(--ap-border); border-radius: var(--ap-radius-sm); padding: 18px 20px; margin: 12px 0; }
.article-page .eligibility-card:hover { box-shadow: var(--ap-shadow-elevated); }
.article-page .eligibility-card h4 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; color: var(--ap-primary-dark); font-size: 1.1rem; }
.article-page .eligibility-card h4 i { color: var(--ap-primary); }
.article-page .eligibility-card p { margin-bottom: 0; }

/* Legacy steps */
.article-page .steps-container { margin: 20px 0; }
.article-page .step-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px dashed var(--ap-border); }
.article-page .step-item:last-child { border-bottom: none; }
.article-page .step-number { flex-shrink: 0; width: 48px; height: 48px; background: var(--ap-primary); color: #fff; border-radius: var(--ap-radius); display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 800; }
.article-page .step-content h4 { margin-top: 0; color: var(--ap-text); }
.article-page .step-content p { margin-bottom: 0; font-size: 1rem; }

/* Legacy location grid */
.article-page .location-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0; }
.article-page .location-card { background: var(--ap-surface-alt); border: 1px solid var(--ap-border); border-radius: var(--ap-radius); padding: 20px; text-align: center; }
.article-page .location-card h4 { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 12px; color: var(--ap-primary-dark); font-size: 1rem; }
.article-page .location-card h4 i { color: var(--ap-accent-red); }
.article-page .location-card ul { list-style: none; padding: 0; }
.article-page .location-card ul li { padding: 4px 0; font-size: 1rem; color: var(--ap-text-body); }

/* Legacy FAQ */
.article-page .faq-container { margin: 18px 0; }
.article-page .faq-item { border: 1px solid var(--ap-border); border-radius: var(--ap-radius-sm); margin-bottom: 10px; overflow: hidden; background: #fff; }
.article-page .faq-item:hover { box-shadow: var(--ap-shadow-card); }
.article-page .faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 20px; background: #fafafa; border: none; cursor: pointer; text-align: left; font-size: 1rem; font-weight: 700; color: var(--ap-secondary); transition: all 0.2s; font-family: var(--font-sans); }
.article-page .faq-question:hover { background: var(--ap-primary-light); }
.article-page .faq-question i { flex-shrink: 0; font-size: 0.8rem; transition: transform 0.3s; color: var(--ap-primary); }
.article-page .faq-item.active .faq-question { background: var(--ap-primary-light); color: var(--ap-primary-dark); }
.article-page .faq-item.active .faq-question i { transform: rotate(180deg); }
.article-page .faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease; padding: 0 20px; }
.article-page .faq-item.active .faq-answer { max-height: 600px; padding: 16px 20px 20px; }
.article-page .faq-answer p { margin-bottom: 0; font-size: 1rem; color: var(--ap-text-body); text-align: left; }

/* Legacy highlight/toc/disclaimer/author/sidebar boxes */
.article-page .highlight-box { margin: 24px var(--ap-pad) 10px !important; padding: 24px !important; background: linear-gradient(135deg, #fff3e6, #fff9f0); border: 1px solid #ffd6a5; border-radius: var(--ap-radius); border-left: 4px solid var(--ap-primary); }
.article-page .highlight-box h2 { font-size: 1.1rem !important; color: var(--ap-primary-dark) !important; border-bottom: none !important; border-left: none !important; background: none !important; margin-bottom: 18px !important; padding: 0 !important; display: flex !important; align-items: center; gap: 8px; }
.article-page .highlight-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.article-page .highlight-item { background: #fff; padding: 14px 16px; border-radius: var(--ap-radius-sm); border: 1px solid var(--ap-border); }
.article-page .highlight-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--ap-text-muted); margin-bottom: 3px; }
.article-page .highlight-value { font-size: 1rem; font-weight: 700; color: var(--ap-text); }
.article-page .highlight-accent { color: var(--ap-primary) !important; }
.article-page .highlight-urgent { color: var(--ap-accent-red) !important; }

.article-page .toc-box { margin: 16px var(--ap-pad) 10px !important; padding: 22px !important; background: #fff; border: 1px solid var(--ap-border); border-radius: var(--ap-radius); }
.article-page .toc-box h2 { font-size: 1.1rem !important; border-bottom: 2px solid var(--ap-border) !important; border-left: none !important; background: none !important; margin-bottom: 14px !important; padding: 0 0 10px 0 !important; display: flex !important; align-items: center; gap: 8px; color: var(--ap-text) !important; }
.article-page .toc-list { list-style: none; counter-reset: toc; columns: 2; column-gap: 24px; margin: 0; padding: 0; }
.article-page .toc-list li { counter-increment: toc; padding: 5px 0; break-inside: avoid; }
.article-page .toc-list li a { display: inline-flex; align-items: baseline; gap: 6px; font-size: 0.875rem; color: var(--ap-text-muted); transition: all 0.2s; line-height: 1.5; font-weight: 500; text-decoration: none; }
.article-page .toc-list li a:hover { color: var(--ap-primary); text-decoration: none; }

.article-page .disclaimer-box { margin: 10px var(--ap-pad) 28px !important; padding: 20px !important; background: var(--ap-surface-alt); border: 1px solid var(--ap-border); border-radius: var(--ap-radius-sm); }
.article-page .disclaimer-box h3 { display: flex; align-items: center; gap: 8px; font-size: 1rem; color: var(--ap-text-muted); margin-bottom: 10px; }
.article-page .disclaimer-box p { font-size: 0.875rem; color: var(--ap-text-muted); margin-bottom: 0; line-height: 1.7; text-align: left; }

.article-page .author-box { display: flex; gap: 16px; align-items: center; margin: 22px var(--ap-pad) 10px !important; padding: 22px !important; background: linear-gradient(135deg, #fff3e6, #fff9f0); border: 1px solid #ffd6a5; border-radius: var(--ap-radius); }
.article-page .author-avatar { flex-shrink: 0; width: 50px; height: 50px; background: var(--ap-primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }
.article-page .author-info h4 { font-size: 1rem; color: var(--ap-text); margin-bottom: 3px; font-weight: 700; }
.article-page .author-info p { font-size: 0.875rem; color: var(--ap-text-muted); margin-bottom: 0; line-height: 1.55; text-align: left; }

/* Legacy sidebar — hidden */
.article-page .sidebar { display: none; }

/* Quick Apply Card overrides */
.article-page .quick-apply-card { text-align: center; padding: 20px; }
.article-page .apply-org { font-weight: 700; color: var(--ap-text); font-size: 1.1rem; margin-bottom: 4px !important; }
.article-page .apply-posts { color: var(--ap-primary); font-weight: 600; font-size: 1.25rem; margin-bottom: 8px !important; }
.article-page .apply-deadline { color: var(--ap-accent-red); font-weight: 600; font-size: 1rem; margin-bottom: 18px !important; }
.article-page .apply-btn { display: block; background: var(--ap-primary); color: #fff !important; padding: 13px 20px; border-radius: var(--ap-radius-sm); font-weight: 700; font-size: 1rem; text-align: center; transition: all 0.2s; text-decoration: none !important; margin-bottom: 10px; }
.article-page .apply-btn:hover { background: var(--ap-primary-dark); }
.article-page .nats-btn { display: block; background: var(--ap-surface-alt); color: var(--ap-primary) !important; padding: 11px 20px; border-radius: var(--ap-radius-sm); font-weight: 600; font-size: 0.875rem; text-align: center; border: 2px solid var(--ap-primary); text-decoration: none !important; }
.article-page .nats-btn:hover { background: var(--ap-primary-light); }

.article-page .sidebar-list { list-style: none; padding: 10px 15px; margin: 0; }
.article-page .sidebar-list li { padding: 8px 0; border-bottom: 1px solid var(--ap-border-light); font-size: 1rem; color: var(--ap-text-body); }
.article-page .sidebar-list li::before { display: none; }
.article-page .sidebar-list li:last-child { border-bottom: none; }
.article-page .sidebar-list li strong { color: var(--ap-text); }

.article-page .sidebar-news { list-style: none; padding: 10px 15px; margin: 0; }
.article-page .sidebar-news li { padding: 8px 0; border-bottom: 1px dashed var(--ap-border); }
.article-page .sidebar-news li::before { display: none; }
.article-page .sidebar-news li:last-child { border-bottom: none; }
.article-page .sidebar-news li a { font-size: 0.875rem; color: var(--ap-text-body); display: block; line-height: 1.5; font-weight: 500; text-decoration: none; }
.article-page .sidebar-news li a:hover { color: var(--ap-primary); }

/* Legacy related section */
.article-page .related-section { padding: 28px var(--ap-pad) 32px !important; border-top: 1px solid var(--ap-border-light); }
.article-page .related-section h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 18px; color: var(--ap-text); }
.article-page .related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.article-page .related-card { display: block; padding: 16px 18px; background: var(--ap-surface-alt); border: 1px solid var(--ap-border); border-radius: var(--ap-radius-sm); transition: all 0.2s; text-decoration: none; }
.article-page .related-card:hover { transform: translateY(-2px); box-shadow: var(--ap-shadow-elevated); text-decoration: none; border-color: var(--ap-primary); }
.article-page .related-tag { display: inline-block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--ap-primary); background: var(--ap-primary-light); padding: 2px 8px; border-radius: 3px; margin-bottom: 8px; }
.article-page .related-card h4 { font-size: 1rem; color: var(--ap-text); margin: 0; line-height: 1.45; }

/* ============================
   16. RESPONSIVE — 1024px
   ============================ */
@media (max-width: 1024px) {
  .article-page .content-grid { grid-template-columns: 1fr; padding-top: 16px; }
  .article-page .ap-sidebar, .article-page .sidebar { position: static; max-height: none; overflow-y: visible; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .article-page .ap-widget, .article-page .sidebar-widget { margin-bottom: 0; }
  .article-page .ap-related-grid { grid-template-columns: repeat(3, 1fr); }
  .article-page .related-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================
   17. RESPONSIVE — 768px
   ============================ */
@media (max-width: 768px) {
  .article-page { --ap-pad: 18px; }
  .article-page .content-grid { padding: 14px 16px 0; gap: 20px; }

  .article-page .article-hero { padding: 26px var(--ap-pad) 22px; }
  .article-page .article-hero h1 { margin-bottom: 12px; }
  .article-page .article-meta { gap: 10px; font-size: 0.875rem; }
  .article-page .category-badge { font-size: 0.7rem; padding: 4px 10px; }

  .article-page .article-content section,
  .article-page .article-content > .ap-highlight-box,
  .article-page .article-content > .ap-toc-box,
  .article-page .article-content > .ap-disclaimer-box,
  .article-page .article-content > .ap-author-box,
  .article-page .article-content > .highlight-box,
  .article-page .article-content > .toc-box,
  .article-page .article-content > .disclaimer-box,
  .article-page .article-content > .author-box,
  .article-page .article-content > .related-section {
    padding-left: var(--ap-pad) !important;
    padding-right: var(--ap-pad) !important;
  }
  .article-page .article-content section { padding-top: 22px; padding-bottom: 18px; }
  .article-page .article-content h2 { padding: 8px 0 8px 12px; }
  .article-page .article-content h3 { margin: 18px 0 10px; }

  .article-page .ap-highlight-box, .article-page .highlight-box { margin: 18px var(--ap-pad) 8px !important; padding: 18px !important; }
  .article-page .ap-highlight-grid, .article-page .highlight-grid { grid-template-columns: 1fr; gap: 10px; }
  .article-page .ap-toc-box, .article-page .toc-box { margin: 12px var(--ap-pad) 8px !important; padding: 18px !important; }
  .article-page .ap-toc-list, .article-page .toc-list { columns: 1; }
  .article-page .ap-eligibility-cards { grid-template-columns: 1fr; }
  .article-page .ap-related-posts { padding: 22px var(--ap-pad) 26px; }
  .article-page .ap-related-grid { grid-template-columns: 1fr; }
  .article-page .related-grid { grid-template-columns: 1fr; }
  .article-page .related-section { padding: 22px var(--ap-pad) 26px !important; }

  .article-page .data-table { font-size: 1rem; min-width: 520px; }
  .article-page .data-table th, .article-page .data-table td { padding: 8px 10px; }

  .article-page .ap-step { gap: 12px; }
  .article-page .ap-step-num { width: 38px; height: 38px; font-size: 1rem; }
  .article-page .step-item { flex-direction: column; gap: 10px; }
  .article-page .step-number { width: 44px; height: 44px; font-size: 0.7rem; }

  .article-page .ap-sidebar, .article-page .sidebar { grid-template-columns: 1fr; }
  .article-page .ap-widget, .article-page .sidebar-widget { margin-bottom: 16px; }

  .article-page .ap-faq-q, .article-page .faq-question { padding: 14px 16px; font-size: 1rem; }
  .article-page .ap-faq-item.active .ap-faq-a { padding: 14px 16px 18px; }
  .article-page .faq-item.active .faq-answer { padding: 14px 16px 18px; }
  .article-page .ap-callout, .article-page .info-callout, .article-page .warning-callout { padding: 14px 16px; font-size: 1rem; }
  .article-page .summary-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .article-page .summary-card { padding: 16px 10px; }
  .article-page .summary-number { font-size: 1.75rem; }
  .article-page .location-grid { grid-template-columns: 1fr; }
  .article-page .ap-author-box, .article-page .author-box { margin: 18px var(--ap-pad) 8px !important; padding: 18px !important; }
  .article-page .ap-disclaimer-box, .article-page .disclaimer-box { margin: 8px var(--ap-pad) 24px !important; padding: 16px !important; }
  .article-page .main-content { padding: 0 0 40px; }
}

/* ============================
   18. RESPONSIVE — 480px
   ============================ */
@media (max-width: 480px) {
  .article-page { --ap-pad: 14px; }
  .article-page .content-grid { padding: 10px 10px 0; }

  .article-page .article-hero { padding: 20px var(--ap-pad) 18px; }
  .article-page .article-hero h1 { line-height: 1.3; }
  .article-page .article-meta { flex-direction: column; gap: 6px; font-size: 0.8rem; }

  .article-page .ap-highlight-box, .article-page .highlight-box { padding: 14px !important; }
  .article-page .ap-toc-box, .article-page .toc-box { padding: 14px !important; }
  .article-page .ap-summary-card, .article-page .summary-card { padding: 16px; }
  .article-page .data-table { min-width: 440px; font-size: 0.875rem; }
  .article-page .data-table th, .article-page .data-table td { padding: 7px 8px; }

  .article-page .ap-step-num { width: 34px; height: 34px; font-size: 0.875rem; }
  .article-page .step-number { width: 40px; height: 40px; font-size: 0.7rem; }

  .article-page .ap-related-card { padding: 14px; }
  .article-page .ap-related-card h3 { font-size: 0.875rem; }

  .article-page .ap-widget h3, .article-page .sidebar-widget h3 { font-size: 1rem; }
  .article-page .ap-faq-q, .article-page .faq-question { padding: 12px 14px; font-size: 1rem; }
  .article-page .ap-author-box, .article-page .author-box { flex-direction: column; text-align: center; gap: 10px; }
  .article-page .summary-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .article-page .summary-number { font-size: 1.5rem; }
  .article-page .summary-label { font-size: 0.7rem; }
}

/* ============================
   19. RESPONSIVE — 360px
   ============================ */
@media (max-width: 360px) {
  .article-page { --ap-pad: 12px; }
  .article-page .article-hero h1 { /* clamp handles sizing */ }
  .article-page .category-badge { font-size: 0.7rem; padding: 3px 8px; }
  .article-page .data-table { min-width: 400px; font-size: 0.875rem; }
}

/* ============================
   20. TOUCH / PRINT
   ============================ */
@media (hover: none) and (pointer: coarse) {
  .article-page .ap-highlight-item:hover, .article-page .highlight-item:hover { transform: none; box-shadow: none; }
  .article-page .ap-eligibility-card:hover { transform: none; }
  .article-page .ap-summary-card:hover, .article-page .summary-card:hover { transform: none; }
  .article-page .ap-related-card:hover, .article-page .related-card:hover { transform: none; }
  .article-page .ap-faq-item:hover, .article-page .faq-item:hover { box-shadow: none; }
  .article-page .ap-widget:hover, .article-page .sidebar-widget:hover { box-shadow: var(--ap-shadow-card); }
  .article-page .ap-related-card:active, .article-page .related-card:active { transform: scale(0.98); }
  .article-page .ap-apply-btn:active, .article-page .apply-btn:active { transform: scale(0.97); }
  .article-page .ap-faq-q:active, .article-page .faq-question:active { background: var(--ap-primary-light); }
}

/* ============================
   21. STICKY APPLY NOW BAR (Mobile-first)
   ============================ */
.sticky-apply-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: #ffffff;
  border-top: 1px solid #e0e0e0;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.sticky-apply-bar.visible {
  transform: translateY(0);
}
.sticky-apply-bar .sab-info {
  flex: 1;
  min-width: 0;
}
.sticky-apply-bar .sab-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #1a1a2e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.sticky-apply-bar .sab-meta {
  font-size: 0.7rem;
  color: #888;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sticky-apply-bar .sab-meta i {
  color: #e63946;
  margin-right: 3px;
  font-size: 0.625rem;
}
.sticky-apply-bar .sab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #FF6B00, #e05e00);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(255,107,0,0.25);
}
.sticky-apply-bar .sab-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255,107,0,0.35);
}
.sticky-apply-bar .sab-btn:active {
  transform: scale(0.97);
}
.sticky-apply-bar .sab-btn i {
  font-size: 0.8rem;
}
/* Expired / closed variant */
.sticky-apply-bar .sab-btn.sab-btn--closed {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  box-shadow: 0 2px 8px rgba(99,102,241,0.25);
}
.sticky-apply-bar .sab-btn.sab-btn--closed:hover {
  box-shadow: 0 4px 14px rgba(99,102,241,0.35);
}
/* Guide variant — no apply, just link back */
.sticky-apply-bar .sab-btn.sab-btn--guide {
  background: linear-gradient(135deg, #2d6a4f, #1b4332);
  box-shadow: 0 2px 8px rgba(45,106,79,0.25);
}

/* Add bottom padding to body so sticky bar doesn't cover content */
.article-page body { padding-bottom: 68px; }

/* Larger screens — wider bar */
@media (min-width: 769px) {
  .sticky-apply-bar {
    padding: 12px 24px;
  }
  .sticky-apply-bar .sab-title { font-size: 1rem; }
  .sticky-apply-bar .sab-meta { font-size: 0.8rem; }
  .sticky-apply-bar .sab-btn { padding: 10px 24px; font-size: 1rem; }
}

@media print {
  .article-page .ap-sidebar, .article-page .sidebar, .article-page .ap-related-posts, .article-page .related-section,
  .article-page .ap-widget-apply, .sticky-apply-bar { display: none !important; }
  .article-page .content-grid { grid-template-columns: 1fr; }
  .article-page .article-content { box-shadow: none; }
  .article-page .article-hero { background: #fff !important; color: #000 !important; }
  .article-page .ap-faq-a, .article-page .faq-answer { max-height: none !important; padding: 16px 20px !important; }
}

/* ============================
   22. ELIGIBILITY CHECKER TOOL (Interactive Form)
   ============================ */
.article-page .checker-form {
  background: var(--ap-surface);
  border: 2px solid var(--ap-primary);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--ap-shadow-elevated);
}
.article-page .form-step { display: none; animation: checkerFadeIn 0.3s ease; }
.article-page .form-step.active-step { display: block; }
@keyframes checkerFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.article-page .step-indicator { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.article-page .step-dot {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.875rem;
  background: var(--ap-surface-alt); color: var(--ap-text-muted);
  border: 2px solid var(--ap-border); transition: all 0.3s var(--ap-ease);
}
.article-page .step-dot.active { background: var(--ap-primary); color: #fff; border-color: var(--ap-primary); }
.article-page .step-dot.done { background: var(--ap-accent-green); color: #fff; border-color: var(--ap-accent-green); }

.article-page .form-group { margin-bottom: 1.25rem; }
.article-page .form-group label { display: block; font-weight: 600; margin-bottom: 0.4rem; color: var(--ap-text); font-size: 1rem; }
.article-page .form-group .hint { font-size: 0.875rem; color: var(--ap-text-muted); margin-top: 0.2rem; }
.article-page .form-group select,
.article-page .form-group input {
  width: 100%; padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--ap-border); border-radius: 8px;
  font-size: 1rem; font-family: inherit;
  background: var(--ap-surface); transition: border-color 0.2s var(--ap-ease);
}
.article-page .form-group select:focus,
.article-page .form-group input:focus { outline: none; border-color: var(--ap-primary); box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.12); }

.article-page .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.article-page .btn-row { display: flex; gap: 0.75rem; margin-top: 1.5rem; flex-wrap: wrap; }
.article-page .btn-primary {
  background: var(--ap-primary); color: #fff; border: none;
  padding: 0.7rem 1.5rem; border-radius: 8px;
  font-weight: 600; font-size: 1rem; cursor: pointer; transition: background 0.2s;
}
.article-page .btn-primary:hover { background: var(--ap-primary-dark); }
.article-page .btn-secondary {
  background: var(--ap-surface-alt); color: var(--ap-text);
  border: 1.5px solid var(--ap-border); padding: 0.7rem 1.5rem;
  border-radius: 8px; font-weight: 600; font-size: 1rem; cursor: pointer;
}
.article-page .btn-check {
  background: linear-gradient(135deg, #059669, #10b981); color: #fff; border: none;
  padding: 0.85rem 2rem; border-radius: 10px;
  font-weight: 700; font-size: 1.1rem; cursor: pointer;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3); transition: transform 0.2s var(--ap-ease);
}
.article-page .btn-check:hover { transform: translateY(-2px); }

/* Result Box */
.article-page .result-box {
  background: var(--ap-surface); border-radius: 16px;
  padding: 2rem; margin-bottom: 2rem;
  box-shadow: var(--ap-shadow-elevated); display: none;
}
.article-page .result-box.show { display: block; animation: checkerFadeIn 0.4s ease; }
.article-page .result-header {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.25rem; border-radius: 12px;
  margin-bottom: 1.5rem; font-size: 1.25rem; font-weight: 700;
}
.article-page .result-header.eligible { background: #d1fae5; color: #065f46; border: 2px solid #059669; }
.article-page .result-header.not-eligible { background: #fde8ea; color: #9b1c1c; border: 2px solid #e63946; }
.article-page .result-header.conditional { background: #fef3c7; color: #92400e; border: 2px solid #d97706; }
.article-page .result-header i { font-size: 1.5rem; }

.article-page .check-item {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.85rem 0; border-bottom: 1px solid var(--ap-border-light);
}
.article-page .check-item:last-child { border-bottom: none; }
.article-page .check-icon {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 0.8rem; font-weight: 700;
}
.article-page .check-icon.pass { background: #d1fae5; color: #059669; }
.article-page .check-icon.fail { background: #fde8ea; color: #e63946; }
.article-page .check-icon.warn { background: #fef3c7; color: #d97706; }
.article-page .check-icon.info { background: #e0f2fe; color: #0284c7; }
.article-page .check-label { font-weight: 600; color: var(--ap-text); }
.article-page .check-detail { color: var(--ap-text-body); font-size: 1rem; margin-top: 0.15rem; }

.article-page .vacancy-result { margin-top: 1.5rem; }
.article-page .vacancy-result h4 { margin-bottom: 0.75rem; }
.article-page .mini-table { width: 100%; border-collapse: collapse; font-size: 1rem; margin-top: 0.5rem; }
.article-page .mini-table th,
.article-page .mini-table td { padding: 0.5rem 0.75rem; border: 1px solid var(--ap-border); text-align: center; }
.article-page .mini-table th { background: var(--ap-primary-light); font-weight: 600; color: var(--ap-primary-dark); }
.article-page .mini-table .highlight-cell { background: #d1fae5; font-weight: 700; color: #065f46; }

.article-page .fee-result,
.article-page .checklist-result,
.article-page .timeline-result {
  margin-top: 1.5rem; padding: 1.25rem;
  background: var(--ap-surface-alt); border-radius: 10px;
  border-left: 4px solid var(--ap-primary);
}
.article-page .fee-result h4,
.article-page .checklist-result h4,
.article-page .timeline-result h4 { margin: 0 0 0.75rem; color: var(--ap-primary-dark); }

/* Checker Mobile Responsive */
@media (max-width: 600px) {
  .article-page .form-row { grid-template-columns: 1fr; }
  .article-page .checker-form { padding: 1.25rem; }
  .article-page .step-indicator { gap: 0.4rem; }
  .article-page .step-dot { width: 32px; height: 32px; font-size: 0.8rem; }
  .article-page .btn-row { flex-direction: column; }
  .article-page .btn-primary,
  .article-page .btn-secondary,
  .article-page .btn-check { width: 100%; text-align: center; justify-content: center; min-height: 44px; }
  .article-page .form-group select,
  .article-page .form-group input { font-size: 1rem !important; min-height: 44px; padding: 0.7rem 0.85rem; }
  .article-page .result-box { padding: 1.25rem; }
  .article-page .result-header { padding: 1rem; font-size: 1rem; flex-direction: column; text-align: center; }
  .article-page .check-item { gap: 0.5rem; }
  .article-page .check-icon { width: 24px; height: 24px; font-size: 0.7rem; }
  .article-page .mini-table { font-size: 0.8rem; }
  .article-page .mini-table th,
  .article-page .mini-table td { padding: 0.4rem 0.5rem; }
  .article-page .fee-result,
  .article-page .checklist-result,
  .article-page .timeline-result { padding: 1rem; }
}

/* ====== Applications Closed Banner ====== */
.app-closed-banner {
  margin: 0 0 24px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fef2f2 0%, #fff7ed 100%);
  border: 2px solid #fca5a5;
  overflow: hidden;
  animation: acb-pulse 3s ease-in-out infinite;
}
@keyframes acb-pulse {
  0%, 100% { border-color: #fca5a5; }
  50% { border-color: #f87171; }
}
.acb-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
}
.acb-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}
.acb-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #b91c1c;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.acb-detail {
  font-size: 0.875rem;
  color: #92400e;
  line-height: 1.55;
}
.acb-detail strong { color: #b91c1c; }

@media (max-width: 600px) {
  .acb-inner { flex-direction: column; text-align: center; gap: 10px; padding: 14px 16px; }
  .acb-icon { width: 40px; height: 40px; font-size: 1rem; }
  .acb-title { font-size: 1rem; }
  .acb-detail { font-size: 0.8rem; }
}


/* =====================================================================
   ADVANCED LAYOUT SYSTEM 2026-2048 — NEW FEATURES
   Added: March 2026
   All new classes are ADDITIVE. Existing classes are NEVER modified.
   ===================================================================== */

/* ============================
   23. FOCUS-VISIBLE ACCESSIBILITY (WCAG 2.2)
   ============================ */
.article-page :focus-visible {
  outline: 2px solid var(--ap-primary);
  outline-offset: 2px;
  border-radius: 4px;
}
.article-page .ap-faq-q:focus-visible,
.article-page .faq-question:focus-visible {
  outline-offset: -2px;
  border-radius: var(--ap-radius-sm);
}
.article-page a:focus-visible {
  outline-offset: 3px;
  border-radius: 2px;
}
.article-page .ap-apply-btn:focus-visible,
.article-page .apply-btn:focus-visible,
.article-page .sab-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--ap-primary);
}

/* ============================
   24. SCROLL-DRIVEN ANIMATIONS
   Sections fade/slide in as user scrolls
   ============================ */
@supports (animation-timeline: view()) {
  .article-page .article-content section {
    animation: ap-fadeSlideUp 0.6s linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 25%;
  }

  .article-page .highlight-box,
  .article-page .ap-highlight-box,
  .article-page .highlight-box-v2 {
    animation: ap-slideInLeft 0.5s linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 20%;
  }

  .article-page .toc-box,
  .article-page .ap-toc-box {
    animation: ap-fadeSlideUp 0.5s linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 20%;
  }

  .article-page .ap-callout,
  .article-page .info-callout,
  .article-page .warning-callout,
  .article-page .danger-callout,
  .article-page .success-callout {
    animation: ap-fadeSlideUp 0.4s linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 20%;
  }

  .article-page .ap-eligibility-card,
  .article-page .eligibility-card,
  .article-page .summary-card {
    animation: ap-scaleIn 0.4s linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 25%;
  }

  .article-page .ap-step {
    animation: ap-slideInLeft 0.4s linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 25%;
  }

  .article-page .ap-faq-item,
  .article-page .faq-item {
    animation: ap-fadeSlideUp 0.35s linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 20%;
  }

  .article-page .ap-timeline-item {
    animation: ap-slideInLeft 0.4s linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 25%;
  }

  .article-page .ap-compare-card {
    animation: ap-scaleIn 0.4s linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 25%;
  }

  .article-page .ap-salary-row {
    animation: ap-slideInLeft 0.35s linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 25%;
  }
}

@keyframes ap-fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes ap-slideInLeft {
  from { opacity: 0; transform: translateX(-28px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes ap-scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

/* Disable scroll animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .article-page .article-content section,
  .article-page .highlight-box,
  .article-page .ap-highlight-box,
  .article-page .highlight-box-v2,
  .article-page .toc-box,
  .article-page .ap-toc-box,
  .article-page .ap-callout,
  .article-page .info-callout,
  .article-page .warning-callout,
  .article-page .danger-callout,
  .article-page .success-callout,
  .article-page .ap-eligibility-card,
  .article-page .eligibility-card,
  .article-page .summary-card,
  .article-page .ap-step,
  .article-page .ap-faq-item,
  .article-page .faq-item,
  .article-page .ap-timeline-item,
  .article-page .ap-compare-card,
  .article-page .ap-salary-row {
    animation: none !important;
  }
}

/* ============================
   25. TABLE SCROLL HINT (Mobile)
   Gradient edge + swipe indicator for touch
   ============================ */
@media (hover: none) and (pointer: coarse) {
  .article-page .ap-table-wrap::before {
    content: '\2190 Swipe to scroll \2192';
    display: block;
    text-align: center;
    font-size: 0.7rem;
    color: var(--ap-text-muted);
    padding: 4px 4px 6px;
    font-weight: 600;
    letter-spacing: 0.3px;
    background: var(--ap-surface-alt);
    border-radius: var(--ap-radius-xs);
  }
}

/* ============================
   26. KEY DATES TIMELINE (.ap-timeline)
   Vertical timeline for Important Dates
   ============================ */
.article-page .ap-timeline {
  position: relative;
  padding-left: 36px;
  margin: 20px 0;
}
.article-page .ap-timeline::before {
  content: '';
  position: absolute;
  left: 13px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--ap-primary), var(--ap-border));
  border-radius: 1px;
}
.article-page .ap-timeline-item {
  position: relative;
  padding: 14px 0;
}
.article-page .ap-timeline-item::before {
  content: '';
  position: absolute;
  left: -27px;
  top: 20px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ap-primary);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--ap-primary);
  z-index: 1;
}
.article-page .ap-timeline-item.past::before {
  background: var(--ap-accent-green);
  box-shadow: 0 0 0 2px var(--ap-accent-green);
}
.article-page .ap-timeline-item.active::before {
  background: var(--ap-primary);
  box-shadow: 0 0 0 2px var(--ap-primary);
  animation: ap-timelinePulse 2s ease-in-out infinite;
}
.article-page .ap-timeline-item.urgent::before {
  background: var(--ap-accent-red);
  box-shadow: 0 0 0 2px var(--ap-accent-red);
  animation: ap-timelinePulse 1.5s ease-in-out infinite;
}
.article-page .ap-timeline-item.upcoming::before {
  background: var(--ap-border);
  box-shadow: 0 0 0 2px var(--ap-border);
}
@keyframes ap-timelinePulse {
  0%, 100% { box-shadow: 0 0 0 2px currentColor; }
  50% { box-shadow: 0 0 0 6px rgba(255, 107, 0, 0.2); }
}
.article-page .ap-timeline-item.urgent::before {
  animation-name: ap-timelinePulseRed;
}
@keyframes ap-timelinePulseRed {
  0%, 100% { box-shadow: 0 0 0 2px var(--ap-accent-red); }
  50% { box-shadow: 0 0 0 7px rgba(230, 57, 70, 0.2); }
}
.article-page .ap-timeline-date {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ap-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}
.article-page .ap-timeline-item.past .ap-timeline-date { color: var(--ap-accent-green); }
.article-page .ap-timeline-item.urgent .ap-timeline-date { color: var(--ap-accent-red); }
.article-page .ap-timeline-item.upcoming .ap-timeline-date { color: var(--ap-text-muted); }
.article-page .ap-timeline-label {
  font-size: 1rem;
  color: var(--ap-text);
  font-weight: 600;
  line-height: 1.4;
}
.article-page .ap-timeline-note {
  font-size: 0.875rem;
  color: var(--ap-text-muted);
  margin-top: 2px;
  line-height: 1.45;
}
.article-page .ap-timeline-item.past .ap-timeline-label {
  color: var(--ap-text-muted);
  text-decoration: line-through;
  text-decoration-color: var(--ap-border);
}
@media (max-width: 480px) {
  .article-page .ap-timeline { padding-left: 30px; }
  .article-page .ap-timeline-item::before { left: -21px; width: 10px; height: 10px; }
  .article-page .ap-timeline::before { left: 10px; }
  .article-page .ap-timeline-label { font-size: 0.875rem; }
}

/* ============================
   27. CONTAINER QUERIES (Component-Level Responsiveness)
   ============================ */
.article-page .article-content {
  container-type: inline-size;
  container-name: article;
}
@container article (max-width: 520px) {
  .ap-highlight-grid,
  .highlight-grid {
    grid-template-columns: 1fr !important;
  }
  .ap-eligibility-cards {
    grid-template-columns: 1fr !important;
  }
  .summary-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .ap-related-grid {
    grid-template-columns: 1fr !important;
  }
  .related-grid {
    grid-template-columns: 1fr !important;
  }
  .ap-compare {
    grid-template-columns: 1fr !important;
  }
  .location-grid {
    grid-template-columns: 1fr !important;
  }
}
@container article (max-width: 380px) {
  .summary-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ============================
   28. READING PROGRESS BAR
   Pure CSS scroll-linked indicator (enhances JS fallback)
   ============================ */
.article-page .reading-progress,
.article-page .ap-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  z-index: 1001;
  background: linear-gradient(90deg, var(--ap-primary), var(--ap-primary-dark));
  transform-origin: left;
  transition: width 0.1s linear;
  pointer-events: none;
}
/* Pure CSS version via scroll-timeline (progressively enhances the JS approach) */
.article-page .reading-progress::before,
.article-page .ap-reading-progress::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--ap-primary), var(--ap-primary-dark), #ff8533);
  transform-origin: left;
  transform: scaleX(0);
}
@supports (animation-timeline: scroll()) {
  .article-page .reading-progress::before,
  .article-page .ap-reading-progress::before {
    animation: ap-readingProgress linear;
    animation-timeline: scroll(root);
  }
  /* Hide the JS-driven width approach in favor of CSS animation */
  .article-page .ap-reading-progress {
    width: 100% !important;
    background: transparent;
  }
}
@keyframes ap-readingProgress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
/* (JS fallback handles browsers without scroll-timeline support) */

/* ============================
   29. FAQ ACCORDION — SMOOTH HEIGHT (interpolate-size)
   ============================ */
@supports (interpolate-size: allow-keywords) {
  .article-page .ap-faq-list,
  .article-page .faq-container {
    interpolate-size: allow-keywords;
  }
  /* Override the max-height approach with smooth height: auto */
  .article-page .ap-faq-a,
  .article-page .faq-answer {
    max-height: none;
    height: 0;
    overflow: hidden;
    transition: height 0.35s ease, padding 0.35s ease;
    padding: 0 20px;
  }
  .article-page .ap-faq-item.active .ap-faq-a,
  .article-page .faq-item.active .faq-answer {
    height: auto;
    padding: 16px 20px 20px;
  }
}

/* ============================
   30. DARK MODE — REMOVED (not required)
   ============================ */
/* Dark mode removed per user request */

/* ============================
   31. GLASS CARD HIGHLIGHT BOX V2
   Modern glassmorphism variant
   ============================ */
.article-page .highlight-box-v2 {
  margin: 24px var(--ap-pad) 10px;
  padding: 24px;
  background: rgba(255, 243, 230, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 214, 165, 0.5);
  border-radius: 16px;
  border-left: 4px solid var(--ap-primary);
  box-shadow:
    0 4px 24px rgba(255, 107, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  position: relative;
  overflow: hidden;
}
.article-page .highlight-box-v2::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 60%;
  height: 120%;
  background: radial-gradient(circle, rgba(255,107,0,0.06) 0%, transparent 65%);
  pointer-events: none;
}
.article-page .highlight-box-v2 h2,
.article-page .highlight-box-v2 h3 {
  font-size: 1.1rem !important;
  color: var(--ap-primary-dark) !important;
  border-bottom: none !important;
  border-left: none !important;
  background: none !important;
  margin-bottom: 18px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center;
  gap: 8px;
  position: relative;
}
.article-page .highlight-box-v2 .highlight-grid,
.article-page .highlight-box-v2 .ap-highlight-grid {
  position: relative;
}
.article-page .highlight-box-v2 .highlight-item,
.article-page .highlight-box-v2 .ap-highlight-item {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,214,165,0.35);
  border-radius: 10px;
  transition: transform 0.2s var(--ap-ease), box-shadow 0.2s var(--ap-ease);
}
.article-page .highlight-box-v2 .highlight-item:hover,
.article-page .highlight-box-v2 .ap-highlight-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255,107,0,0.12);
}
@media (max-width: 768px) {
  .article-page .highlight-box-v2 { margin: 18px var(--ap-pad) 8px; padding: 18px; border-radius: 12px; }
}

/* ============================
   32. COMPARE CARDS (.ap-compare)
   Side-by-side comparison for exam/salary/etc
   ============================ */
.article-page .ap-compare {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 20px 0;
}
.article-page .ap-compare-card {
  background: #fff;
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius);
  padding: 22px;
  border-top: 3px solid var(--ap-primary);
  transition: box-shadow 0.2s var(--ap-ease);
}
.article-page .ap-compare-card:nth-child(2) {
  border-top-color: var(--ap-accent-green);
}
.article-page .ap-compare-card:nth-child(3) {
  border-top-color: #0088cc;
}
.article-page .ap-compare-card:nth-child(4) {
  border-top-color: var(--ap-accent-amber);
}
.article-page .ap-compare-card:hover {
  box-shadow: var(--ap-shadow-elevated);
}
.article-page .ap-compare-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ap-text);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ap-border-light);
  display: flex;
  align-items: center;
  gap: 8px;
}
.article-page .ap-compare-card h4 i { color: var(--ap-primary); }
.article-page .ap-compare-card:nth-child(2) h4 i { color: var(--ap-accent-green); }
.article-page .ap-compare-card ul { margin: 0; padding: 0; list-style: none; }
.article-page .ap-compare-card ul li {
  padding: 7px 0;
  font-size: 1rem;
  color: var(--ap-text-body);
  border-bottom: 1px dashed var(--ap-border-light);
  line-height: 1.55;
}
.article-page .ap-compare-card ul li::before { display: none; }
.article-page .ap-compare-card ul li:last-child { border-bottom: none; }
.article-page .ap-compare-card ul li strong { color: var(--ap-text); margin-right: 4px; }

/* Compare label tag */
.article-page .ap-compare-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.article-page .ap-compare-card:first-child .ap-compare-tag {
  background: var(--ap-primary-light);
  color: var(--ap-primary-dark);
}
.article-page .ap-compare-card:nth-child(2) .ap-compare-tag {
  background: #d1fae5;
  color: #065f46;
}

@media (max-width: 600px) {
  .article-page .ap-compare { grid-template-columns: 1fr; }
  .article-page .ap-compare-card { padding: 18px; }
}

/* ============================
   33. SALARY BREAKDOWN BAR (.ap-salary-bar)
   Visual horizontal bar component
   ============================ */
.article-page .ap-salary-bar {
  margin: 20px 0;
}
.article-page .ap-salary-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.article-page .ap-salary-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ap-text);
  min-width: 110px;
  flex-shrink: 0;
  line-height: 1.3;
}
.article-page .ap-salary-track {
  flex: 1;
  height: 26px;
  background: var(--ap-surface-alt);
  border-radius: 13px;
  overflow: hidden;
  border: 1px solid var(--ap-border-light);
}
.article-page .ap-salary-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--ap-primary), var(--ap-primary-dark));
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  min-width: fit-content;
  transition: width 0.6s var(--ap-ease);
}
/* Variant fills */
.article-page .ap-salary-fill.green {
  background: linear-gradient(90deg, #2d6a4f, #1b4332);
}
.article-page .ap-salary-fill.blue {
  background: linear-gradient(90deg, #0088cc, #005fa3);
}
.article-page .ap-salary-fill.amber {
  background: linear-gradient(90deg, #d97706, #b45309);
}
.article-page .ap-salary-amount {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ap-text);
  min-width: 80px;
  text-align: right;
  flex-shrink: 0;
}
@media (max-width: 480px) {
  .article-page .ap-salary-row { flex-wrap: wrap; gap: 6px; }
  .article-page .ap-salary-label { min-width: 100%; font-size: 0.875rem; }
  .article-page .ap-salary-track { height: 22px; }
  .article-page .ap-salary-amount { min-width: auto; }
}

/* ============================
   34. STATUS BADGE (Inline text badges)
   Use inside tables/lists for status indicators
   ============================ */
.article-page .ap-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  letter-spacing: 0.3px;
  white-space: nowrap;
  line-height: 1.4;
}
.article-page .ap-badge.live {
  background: #d1fae5;
  color: #065f46;
}
.article-page .ap-badge.upcoming {
  background: #e0f2fe;
  color: #0369a1;
}
.article-page .ap-badge.closed {
  background: #fde8ea;
  color: #9b1c1c;
}
.article-page .ap-badge.new {
  background: #fef3c7;
  color: #92400e;
}

/* ============================
   35. NOTIFICATION STRIP (Top of article alert)
   For breaking news / last updated / correction notices
   ============================ */
.article-page .ap-notice-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
}
.article-page .ap-notice-strip i {
  font-size: 1rem;
  flex-shrink: 0;
}
.article-page .ap-notice-strip.update {
  background: #e0f2fe;
  color: #0369a1;
  border-bottom: 1px solid #b3d9f2;
}
.article-page .ap-notice-strip.breaking {
  background: #fef2f2;
  color: #9b1c1c;
  border-bottom: 1px solid #fca5a5;
}
.article-page .ap-notice-strip.correction {
  background: #fef3c7;
  color: #92400e;
  border-bottom: 1px solid #fbbf24;
}

/* ============================
   36. PRINT MODE — Enhanced
   ============================ */
@media print {
  .article-page .reading-progress,
  .article-page .ap-reading-progress { display: none !important; }
  .article-page .ap-timeline-item.urgent::before,
  .article-page .ap-timeline-item.active::before { animation: none !important; }
  .article-page .ap-mini-toc,
  .article-page .ap-bottom-sheet,
  .article-page .ap-notif-bell,
  .article-page .ap-section-feedback { display: none !important; }
}


/* =====================================================================
   2026-2048 MEGA REDESIGN — ALL 32 FEATURES (8 ZONES)
   Added: March 2026 — Mobile-first, Gen Z optimised, future-proof
   All new classes are ADDITIVE. Existing classes are NEVER broken.
   ===================================================================== */


/* =====================================================================
   ZONE 1: COMPACT E-E-A-T HERO (2026-2048 Redesign)
   Compact Hero | Quick Stats Strip | Urgency Bar | Cross-Hue Gradient
   ===================================================================== */

/* --- Compact Hero: cross-hue gradient, reduced padding, no animation on mobile --- */
.article-page .article-hero.compact-hero {
  background: linear-gradient(135deg, #E8590C 0%, #C2410C 35%, #9A3412 70%, #7C2D12 100%);
  color: #fff;
  padding: 20px var(--ap-pad) 18px;
  position: relative;
  overflow: hidden;
}
/* Subtle geometric pattern overlay */
.article-page .article-hero.compact-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(255,255,255,0.08) 0%, transparent 50%),
    radial-gradient(circle at 15% 80%, rgba(255,200,120,0.06) 0%, transparent 40%);
  pointer-events: none;
}
.article-page .hero-inner {
  position: relative;
  z-index: 1;
}

/* Category badges in hero */
.article-page .hero-category {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.article-page .hero-cat-badge,
.article-page .hero-org-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  white-space: nowrap;
}
.article-page .hero-cat-badge i { font-size: 0.625rem; }

/* Hero headline — compact */
.article-page .article-hero.compact-hero h1 {
  font-family: 'Plus Jakarta Sans', 'Noto Sans Devanagari', sans-serif;
  font-size: clamp(1.25rem, 4vw + 0.2rem, 1.5rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
}

/* Single-line meta row */
.article-page .hero-meta-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.88);
  flex-wrap: wrap;
  line-height: 1.6;
}
.article-page .hero-meta-line a {
  color: inherit;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
}
.article-page .hero-meta-line a:hover { color: #fff; }
.article-page .hero-meta-line .meta-sep {
  color: rgba(255,255,255,0.45);
  font-weight: 400;
}
.article-page .hero-fact-check {
  color: #A7F3D0;
  font-weight: 600;
}
.article-page .hero-fact-check i {
  font-size: 0.7rem;
  margin-right: 2px;
}

/* Mobile hero — even more compact */
@media (max-width: 640px) {
  .article-page .article-hero.compact-hero {
    padding: 16px var(--ap-pad-mobile) 14px;
  }
  .article-page .article-hero.compact-hero h1 {
    font-size: clamp(1.1rem, 4.5vw, 1.25rem);
    margin-bottom: 8px;
  }
  .article-page .hero-category { margin-bottom: 8px; }
  .article-page .hero-meta-line { font-size: 0.7rem; }
}

/* --- Quick Stats Strip — below hero, not inside --- */
.article-page .quick-stats-strip {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: var(--ap-surface);
  border-bottom: 1px solid var(--ap-border-light);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.article-page .quick-stats-strip::-webkit-scrollbar { display: none; }
.article-page .qs-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  min-width: 0;
  border-right: 1px solid var(--ap-border-light);
}
.article-page .qs-item:last-child { border-right: none; }
.article-page .qs-item i {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--ap-primary-light);
  color: var(--ap-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}
.article-page .qs-value {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ap-text);
  line-height: 1.2;
  display: block;
}
.article-page .qs-label {
  font-size: 0.625rem;
  color: var(--ap-text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  display: block;
}
.article-page .qs-item .qs-value + .qs-label { margin-top: 0; }
/* Stack value/label vertically */
.article-page .qs-item {
  flex-wrap: wrap;
}
.article-page .qs-item > i + .qs-value {
  flex: 1;
  min-width: 0;
}
@media (max-width: 640px) {
  .article-page .qs-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8px 10px;
    min-width: 80px;
    flex-shrink: 0;
    gap: 4px;
  }
  .article-page .qs-value { font-size: 0.8rem; }
  .article-page .qs-label { font-size: 0.625rem; }
}

/* --- Urgency Indicator Bar --- */
.article-page .urgency-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.article-page .urgency-bar .urgency-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  animation: ap-urgencyPulse 1.5s ease-in-out infinite;
}
@keyframes ap-urgencyPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.article-page .urgency-bar.open {
  background: #D1FAE5;
  color: #065F46;
}
.article-page .urgency-bar.open .urgency-dot { background: #059669; }
.article-page .urgency-bar.closing {
  background: #FEF3C7;
  color: #92400E;
}
.article-page .urgency-bar.closing .urgency-dot { background: #D97706; }
.article-page .urgency-bar.closed {
  background: #FEE2E2;
  color: #991B1B;
}
.article-page .urgency-bar.closed .urgency-dot {
  background: #DC2626;
  animation-duration: 0.8s;
}
.article-page .urgency-bar.today {
  background: linear-gradient(90deg, #FEE2E2, #FEF3C7);
  color: #991B1B;
}
.article-page .urgency-bar.today .urgency-dot {
  background: #DC2626;
  animation-duration: 0.6s;
}


/* =====================================================================
   ZONE 2: CONTENT ARCHITECTURE
   #5 Card-Based Sections | #6 Section Mini-Headers | #7 Collapsible
   #8 Floating Mini-TOC
   ===================================================================== */

/* --- #5: Card-Based Sections --- */
.article-page .article-content.card-sections section {
  background: var(--ap-surface);
  border-radius: 12px;
  margin: 0 12px 10px;
  padding: 24px 20px 20px !important;
  border-top: none;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  transition: box-shadow 0.25s var(--ap-ease);
  border: 1px solid var(--ap-border-light);
}
.article-page .article-content.card-sections section:hover {
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}
.article-page .article-content.card-sections section:nth-child(even) {
  background: var(--ap-surface);
}
@media (max-width: 640px) {
  .article-page .article-content.card-sections section {
    margin: 0 6px 8px;
    padding: 18px 14px 16px !important;
    border-radius: 10px;
  }
}

/* --- #6: Section Mini-Headers with Icon Badge --- */
.article-page .section-header-v2 {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  background: none !important;
  border-left: none !important;
  padding: 0 !important;
}
.article-page .section-header-v2 .sh-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  background: var(--ap-primary-light);
  color: var(--ap-primary);
}
.article-page .section-header-v2 .sh-text h2 {
  font-size: 1.1rem !important;
  margin-bottom: 2px !important;
  padding: 0 !important;
  border-left: none !important;
  background: none !important;
  border-radius: 0 !important;
  line-height: 1.35;
}
.article-page .section-header-v2 .sh-subtitle {
  font-size: 0.8rem;
  color: var(--ap-text-muted);
  font-weight: 500;
}

/* --- #7: Collapsible Read-More Sections (Mobile) --- */
.article-page .section-collapsible {
  position: relative;
}
.article-page .section-collapsible .section-collapse-content {
  overflow: hidden;
  transition: max-height 0.5s ease;
}
.article-page .section-collapsible.collapsed .section-collapse-content {
  max-height: 200px;
}
.article-page .section-collapsible.collapsed::after {
  content: '';
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), var(--ap-surface));
  pointer-events: none;
}
.article-page .section-collapse-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px;
  border: 1px dashed var(--ap-border);
  border-radius: 8px;
  background: var(--ap-surface-alt);
  color: var(--ap-primary);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s;
  font-family: inherit;
}
.article-page .section-collapse-btn:hover {
  background: var(--ap-primary-light);
}
.article-page .section-collapse-btn i {
  transition: transform 0.3s;
  font-size: 0.7rem;
}
.article-page .section-collapsible:not(.collapsed) .section-collapse-btn i {
  transform: rotate(180deg);
}

/* --- #8: Floating Mini-TOC (Scroll Spy Pill Bar) --- */
/* Mobile: sticky bottom pill bar */
.article-page .ap-mini-toc {
  position: fixed;
  bottom: 64px; /* above sticky apply bar */
  left: 0;
  right: 0;
  z-index: 998;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--ap-border-light);
  box-shadow: 0 -2px 8px rgba(0,0,0,0.06);
  padding: 8px 12px;
  transform: translateY(120%);
  transition: transform 0.35s var(--ap-ease);
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.article-page .ap-mini-toc::-webkit-scrollbar { display: none; }
.article-page .ap-mini-toc.visible { transform: translateY(0); }
.article-page .ap-mini-toc-pill {
  flex-shrink: 0;
  scroll-snap-align: start;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ap-text-muted);
  background: var(--ap-surface-alt);
  border: 1px solid var(--ap-border-light);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s var(--ap-ease);
  cursor: pointer;
}
.article-page .ap-mini-toc-pill:hover {
  color: var(--ap-primary);
  border-color: var(--ap-primary);
}
.article-page .ap-mini-toc-pill.active {
  background: var(--ap-primary);
  color: #fff;
  border-color: var(--ap-primary);
}
/* Desktop: sidebar mini-nav */
@media (min-width: 1100px) {
  .article-page .ap-mini-toc {
    position: fixed;
    top: 50%;
    transform: translateY(-50%) translateX(-120%);
    bottom: auto;
    left: max(calc((100vw - 780px) / 2 - 220px), 20px);
    right: auto;
    width: 190px;
    flex-direction: column;
    background: rgba(255,255,255,0.96);
    border-radius: 12px;
    border: 1px solid var(--ap-border-light);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 14px 10px;
    gap: 4px;
    overflow-x: visible;
    overflow-y: auto;
    max-height: 60vh;
    transition: transform 0.35s var(--ap-ease), opacity 0.35s;
    opacity: 0;
  }
  .article-page .ap-mini-toc.visible {
    transform: translateY(-50%) translateX(0);
    opacity: 1;
  }
  .article-page .ap-mini-toc-pill {
    width: 100%;
    text-align: left;
    border-radius: 8px;
    font-size: 0.7rem;
    padding: 7px 12px;
  }
}
@media print { .article-page .ap-mini-toc { display: none !important; } }


/* =====================================================================
   ZONE 3: KEY DATA PRESENTATION
   #9 Bento Grid | #10 Countdown Timer | #11 Vacancy Donut | #12 Salary Slider
   ===================================================================== */

/* --- #9: Bento Grid Layout for Key Highlights --- */
.article-page .bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 10px;
  margin: 20px 0;
}
.article-page .bento-card {
  background: #fff;
  border: 1px solid var(--ap-border-light);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 0.2s var(--ap-ease), box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.article-page .bento-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.article-page .bento-card .bento-emoji {
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 4px;
}
.article-page .bento-card .bento-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  margin-bottom: 6px;
  background: var(--ap-primary-light);
  color: var(--ap-primary);
}
.article-page .bento-card .bento-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ap-text);
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.article-page .bento-card .bento-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--ap-text-muted);
}
/* Large card spanning 2 cols */
.article-page .bento-card.bento-lg {
  grid-column: span 2;
  padding: 20px;
}
.article-page .bento-card.bento-lg .bento-value {
  font-size: 2rem;
}
/* Accent variant */
.article-page .bento-card.bento-accent {
  background: linear-gradient(135deg, var(--ap-primary), var(--ap-primary-dark));
  border-color: var(--ap-primary);
}
.article-page .bento-card.bento-accent .bento-value,
.article-page .bento-card.bento-accent .bento-emoji { color: #fff; }
.article-page .bento-card.bento-accent .bento-label { color: rgba(255,255,255,0.8); }
.article-page .bento-card.bento-accent .bento-icon { background: rgba(255,255,255,0.2); color: #fff; }
/* Urgent variant */
.article-page .bento-card.bento-urgent {
  border-color: var(--ap-accent-red);
  border-width: 2px;
}
.article-page .bento-card.bento-urgent .bento-value { color: var(--ap-accent-red); }

@media (max-width: 640px) {
  .article-page .bento-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .article-page .bento-card { padding: 12px; border-radius: 10px; }
  .article-page .bento-card .bento-value { font-size: 1.1rem; }
  .article-page .bento-card.bento-lg .bento-value { font-size: 1.5rem; }
}
@media (max-width: 360px) {
  .article-page .bento-card.bento-lg { grid-column: span 2; }
  .article-page .bento-card .bento-value { font-size: 1rem; }
}

/* --- #10: Countdown Timer --- */
.article-page .countdown-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--ap-primary-light);
  color: var(--ap-primary-dark);
  border: 1px solid rgba(255,107,0,0.2);
}
.article-page .countdown-badge i { font-size: 0.7rem; }
.article-page .countdown-badge .cd-num {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}
.article-page .countdown-badge.cd-warning {
  background: #fef3c7;
  color: #92400e;
  border-color: rgba(217,119,6,0.25);
}
.article-page .countdown-badge.cd-danger {
  background: #fde8ea;
  color: #9b1c1c;
  border-color: rgba(220,38,38,0.25);
  animation: ap-cdPulse 1.5s ease-in-out infinite;
}
@keyframes ap-cdPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220,38,38,0.15); }
  50% { box-shadow: 0 0 0 6px rgba(220,38,38,0); }
}

/* --- #11: Vacancy Distribution Donut Chart (CSS-only) --- */
.article-page .vacancy-donut-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 16px 0;
  flex-wrap: wrap;
}
.article-page .vacancy-donut {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  /* Each segment uses conic-gradient — set via inline style */
}
.article-page .vacancy-donut-center {
  position: absolute;
  inset: 20px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.article-page .vacancy-donut-center .donut-total {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ap-text);
  line-height: 1.1;
}
.article-page .vacancy-donut-center .donut-label {
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--ap-text-muted);
  text-transform: uppercase;
}
.article-page .vacancy-donut-legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 140px;
}
.article-page .donut-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--ap-text-body);
}
.article-page .donut-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}
.article-page .donut-legend-item strong {
  margin-left: auto;
  color: var(--ap-text);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 480px) {
  .article-page .vacancy-donut-wrap { flex-direction: column; align-items: flex-start; }
  .article-page .vacancy-donut { width: 90px; height: 90px; }
  .article-page .vacancy-donut-center { inset: 16px; }
  .article-page .vacancy-donut-center .donut-total { font-size: 1rem; }
}

/* --- #12: Salary Comparison Slider --- */
.article-page .salary-compare {
  margin: 16px 0;
  border: 1px solid var(--ap-border-light);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.article-page .salary-compare-tabs {
  display: flex;
  border-bottom: 1px solid var(--ap-border-light);
}
.article-page .salary-compare-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ap-text-muted);
  background: var(--ap-surface-alt);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.article-page .salary-compare-tab.active {
  background: #fff;
  color: var(--ap-primary);
  box-shadow: inset 0 -2px 0 var(--ap-primary);
}
.article-page .salary-compare-body {
  padding: 16px;
}
.article-page .salary-compare-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed var(--ap-border-light);
  font-size: 0.875rem;
}
.article-page .salary-compare-row:last-child { border-bottom: none; }
.article-page .salary-compare-row .sc-label { color: var(--ap-text-body); font-weight: 500; }
.article-page .salary-compare-row .sc-value {
  font-weight: 700;
  color: var(--ap-text);
  font-variant-numeric: tabular-nums;
}
.article-page .salary-compare-row .sc-value.highlight { color: var(--ap-primary); }
.article-page .salary-compare-row .sc-value.total {
  font-size: 1.1rem;
  color: var(--ap-accent-green);
}


/* =====================================================================
   ZONE 4: TYPOGRAPHY & READABILITY
   #13 Variable Fonts | #14 Semantic Highlighting | #15 Pull Quotes
   #16 Smart Spacing
   ===================================================================== */

/* --- #13: Variable Font Upgrade --- */
/* Note: Fonts loaded in <head> of dynamic-article.ts */
.article-page .article-content {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.article-page .article-hero h1 {
  font-family: var(--font-sans);
  font-optical-sizing: auto;
}
.article-page .article-content p,
.article-page .article-content li,
.article-page .article-content td {
  font-family: var(--font-sans);
  font-optical-sizing: auto;
}

/* --- #14: Semantic Text Highlighting --- */
.article-page .text-highlight {
  background: linear-gradient(to bottom, transparent 55%, rgba(255,214,165,0.45) 55%);
  padding: 0 2px;
  border-radius: 2px;
}
.article-page .text-important {
  font-weight: 700;
  color: var(--ap-text);
  position: relative;
}
.article-page .text-important::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ap-primary);
  border-radius: 1px;
}
.article-page .text-code {
  font-family: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  font-size: 0.875rem;
  background: var(--ap-surface-alt);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid var(--ap-border-light);
  color: var(--ap-primary-dark);
  font-weight: 600;
}
.article-page .text-amount {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--ap-accent-green);
  letter-spacing: 0.2px;
}

/* --- #15: Pull Quotes --- */
.article-page .pull-quote {
  position: relative;
  margin: 28px 0;
  padding: 24px 28px 24px 28px;
  text-align: center;
  font-size: clamp(1rem, 3vw, 1.1rem);
  font-weight: 600;
  font-style: italic;
  color: var(--ap-text);
  line-height: 1.6;
  background: linear-gradient(135deg, var(--ap-primary-lighter), rgba(255,243,230,0.5));
  border-left: 4px solid var(--ap-primary);
  border-radius: 0 12px 12px 0;
}
.article-page .pull-quote::before {
  content: '\201C';
  position: absolute;
  top: -5px;
  left: 12px;
  font-size: 3rem;
  font-style: normal;
  color: var(--ap-primary);
  opacity: 0.3;
  line-height: 1;
  font-family: Georgia, serif;
}
.article-page .pull-quote cite {
  display: block;
  margin-top: 10px;
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 700;
  color: var(--ap-primary);
}

/* --- #16: Smart Paragraph Spacing --- */
.article-page .article-content p {
  text-wrap: pretty;
  overflow-wrap: break-word;
  word-break: break-word;
}
@supports (hyphens: auto) {
  @media (max-width: 400px) {
    .article-page .article-content p {
      hyphens: auto;
      -webkit-hyphens: auto;
    }
  }
}


/* =====================================================================
   ZONE 5: INTERACTIVE COMPONENTS
   #17 Swipeable Eligibility | #18 Vertical Stepper | #19 FAQ Search
   #20 Table Card View Toggle
   ===================================================================== */

/* --- #17: Swipeable Eligibility Cards (Mobile Carousel) --- */
@media (max-width: 640px) {
  .article-page .ap-eligibility-cards.swipeable {
    display: flex !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 10px;
    padding-bottom: 16px;
    scrollbar-width: none;
    grid-template-columns: unset !important;
  }
  .article-page .ap-eligibility-cards.swipeable::-webkit-scrollbar { display: none; }
  .article-page .ap-eligibility-cards.swipeable .ap-eligibility-card {
    flex-shrink: 0;
    width: 78%;
    scroll-snap-align: center;
  }
  .article-page .swipe-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: -8px;
    margin-bottom: 12px;
  }
  .article-page .swipe-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ap-border);
    transition: all 0.2s;
  }
  .article-page .swipe-dot.active {
    background: var(--ap-primary);
    width: 18px;
    border-radius: 3px;
  }
}
@media (min-width: 641px) {
  .article-page .swipe-dots { display: none; }
}

/* --- #18: Vertical Stepper (Connected Steps) --- */
.article-page .ap-stepper {
  margin: 20px 0;
  position: relative;
}
.article-page .ap-stepper-item {
  display: flex;
  gap: 16px;
  padding-bottom: 20px;
  position: relative;
}
.article-page .ap-stepper-item:last-child { padding-bottom: 0; }
/* Connecting line */
.article-page .ap-stepper-item::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 36px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--ap-primary), var(--ap-border));
}
.article-page .ap-stepper-item:last-child::before { display: none; }
/* Dot */
.article-page .ap-stepper-dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 800;
  flex-shrink: 0;
  z-index: 1;
  background: var(--ap-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(255,107,0,0.25);
}
.article-page .ap-stepper-item.completed .ap-stepper-dot {
  background: var(--ap-accent-green);
  box-shadow: 0 2px 8px rgba(45,106,79,0.25);
}
.article-page .ap-stepper-item.upcoming .ap-stepper-dot {
  background: var(--ap-surface-alt);
  color: var(--ap-text-muted);
  border: 2px solid var(--ap-border);
  box-shadow: none;
}
.article-page .ap-stepper-item.completed::before {
  background: var(--ap-accent-green);
}
.article-page .ap-stepper-body {
  flex: 1;
  min-width: 0;
  padding-top: 6px;
}
.article-page .ap-stepper-body strong {
  display: block;
  font-size: 1rem;
  color: var(--ap-text);
  margin-bottom: 3px;
}
.article-page .ap-stepper-body p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ap-text-muted);
  line-height: 1.5;
}
/* Expandable sub-steps */
.article-page .ap-stepper-substeps {
  margin-top: 8px;
  padding-left: 12px;
  border-left: 2px solid var(--ap-border-light);
  display: none;
}
.article-page .ap-stepper-item.expanded .ap-stepper-substeps { display: block; }
.article-page .ap-stepper-substeps li {
  font-size: 0.875rem;
  color: var(--ap-text-body);
  padding: 3px 0;
  line-height: 1.5;
}
.article-page .ap-stepper-substeps li::before { display: none; }

/* --- #19: FAQ Search/Filter --- */
.article-page .faq-search-wrap {
  margin-bottom: 14px;
  position: relative;
}
.article-page .faq-search-input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border: 1.5px solid var(--ap-border);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.2s;
}
.article-page .faq-search-input:focus {
  outline: none;
  border-color: var(--ap-primary);
  box-shadow: 0 0 0 3px rgba(255,107,0,0.08);
}
.article-page .faq-search-wrap i {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ap-text-muted);
  font-size: 0.875rem;
}
.article-page .faq-no-results {
  text-align: center;
  padding: 20px;
  color: var(--ap-text-muted);
  font-size: 0.875rem;
  display: none;
}
.article-page .faq-no-results.show { display: block; }
.article-page .faq-item.faq-hidden,
.article-page .ap-faq-item.faq-hidden { display: none; }

/* --- #20: Table Card View Toggle --- */
.article-page .table-view-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 10px;
  background: var(--ap-surface-alt);
  border-radius: 8px;
  padding: 3px;
  width: fit-content;
}
.article-page .table-view-btn {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  background: transparent;
  color: var(--ap-text-muted);
  transition: all 0.2s;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 4px;
}
.article-page .table-view-btn.active {
  background: #fff;
  color: var(--ap-primary);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
/* Card view for tables */
.article-page .table-card-view {
  display: none;
}
.article-page .table-card-view.active {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.article-page .table-card-item {
  background: #fff;
  border: 1px solid var(--ap-border-light);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.article-page .table-card-item:nth-child(even) { background: #fafafa; }
.article-page .table-card-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 0.875rem;
}
.article-page .table-card-row .tcr-label {
  font-weight: 600;
  color: var(--ap-text-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  flex-shrink: 0;
  max-width: 40%;
}
.article-page .table-card-row .tcr-value {
  color: var(--ap-text);
  font-weight: 600;
  text-align: right;
  flex: 1;
  min-width: 0;
}
/* Hide table, show cards on mobile when toggled */
.article-page .ap-table-wrap.card-mode { display: none; }
.article-page .ap-table-wrap.card-mode + .table-card-view { display: flex; }


/* =====================================================================
   ZONE 6: TRUST & ENGAGEMENT SIGNALS
   #21 Inline Source Badges | #22 Last Updated Badge | #23 Social Proof
   #24 Micro-Feedback
   ===================================================================== */

/* --- #21: Inline Source Badge --- */
.article-page .source-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #0369a1;
  background: #e0f2fe;
  padding: 2px 8px;
  border-radius: 4px;
  text-decoration: none;
  vertical-align: middle;
  margin-left: 4px;
  transition: background 0.2s;
  white-space: nowrap;
}
.article-page .source-badge:hover {
  background: #bae6fd;
  text-decoration: none;
}
.article-page .source-badge i { font-size: 0.625rem; }

/* --- #22: Last Updated Floating Badge --- */
.article-page .freshness-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  margin: 8px var(--ap-pad) 0;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--ap-surface-alt);
  border: 1px solid var(--ap-border-light);
  white-space: nowrap;
  color: var(--ap-text-muted);
}
.article-page .freshness-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.article-page .freshness-badge.fresh { color: #065f46; }
.article-page .freshness-badge.fresh .freshness-dot { background: #059669; }
.article-page .freshness-badge.aging { color: #92400e; }
.article-page .freshness-badge.aging .freshness-dot { background: #d97706; }
.article-page .freshness-badge.stale { color: #6b7280; }
.article-page .freshness-badge.stale .freshness-dot { background: #9ca3af; }

/* --- Social Proof Strip (relocated below article body) --- */
.article-page .social-proof-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px 16px;
  background: var(--ap-primary-light);
  border: 1px solid var(--ap-border-light);
  border-radius: var(--ap-radius-sm);
  margin: 0 var(--ap-pad) 16px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ap-text-muted);
  flex-wrap: wrap;
}
.article-page .social-proof-strip span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.article-page .social-proof-strip i {
  font-size: 0.7rem;
  color: var(--ap-primary);
}
.article-page .social-proof-strip strong {
  font-weight: 700;
  color: var(--ap-text-body);
}
@media (max-width: 480px) {
  .article-page .social-proof-strip { gap: 10px; font-size: 0.7rem; }
}

/* --- #24: Section Micro-Feedback --- */
.article-page .ap-section-feedback {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px dashed var(--ap-border-light);
}
.article-page .ap-section-feedback span {
  font-size: 0.7rem;
  color: var(--ap-text-muted);
  font-weight: 500;
}
.article-page .ap-feedback-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--ap-border);
  background: #fff;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.2s;
  color: var(--ap-text-muted);
}
.article-page .ap-feedback-btn:hover {
  border-color: var(--ap-primary);
  color: var(--ap-primary);
  background: var(--ap-primary-light);
}
.article-page .ap-feedback-btn.voted {
  background: var(--ap-primary);
  border-color: var(--ap-primary);
  color: #fff;
  pointer-events: none;
}


/* =====================================================================
   ZONE 7: MOBILE-SPECIFIC ENHANCEMENTS
   #25 Bottom Sheet | #26 Thumb-Zone | #27 Skeleton Loading | #28 Offline
   ===================================================================== */

/* --- #25: Bottom Navigation Sheet (Swipeable) --- */
.article-page .ap-bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: #fff;
  border-top: 1px solid var(--ap-border-light);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.1);
  border-radius: 16px 16px 0 0;
  transition: transform 0.35s var(--ap-ease);
  transform: translateY(100%);
  touch-action: pan-y;
}
.article-page .ap-bottom-sheet.visible { transform: translateY(0); }
.article-page .ap-bottom-sheet.half-expanded { transform: translateY(0); }
.article-page .ap-bottom-sheet .bs-handle {
  display: flex;
  justify-content: center;
  padding: 10px;
  cursor: grab;
}
.article-page .ap-bottom-sheet .bs-handle::after {
  content: '';
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--ap-border);
}
.article-page .ap-bottom-sheet .bs-collapsed {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 12px;
  gap: 12px;
}
.article-page .ap-bottom-sheet .bs-collapsed .sab-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ap-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}
.article-page .ap-bottom-sheet .bs-collapsed .sab-meta {
  font-size: 0.7rem;
  color: var(--ap-text-muted);
}
.article-page .ap-bottom-sheet .bs-expanded {
  display: none;
  padding: 0 16px 20px;
}
.article-page .ap-bottom-sheet.half-expanded .bs-expanded { display: block; }
.article-page .bs-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed var(--ap-border-light);
  font-size: 0.875rem;
}
.article-page .bs-detail-row:last-child { border-bottom: none; }
.article-page .bs-detail-row .bs-label { color: var(--ap-text-muted); }
.article-page .bs-detail-row .bs-value { font-weight: 700; color: var(--ap-text); }
@media (min-width: 769px) {
  /* On desktop, bottom sheet behaves like existing sticky bar */
  .article-page .ap-bottom-sheet { border-radius: 0; }
  .article-page .ap-bottom-sheet .bs-handle { display: none; }
}

/* --- #26: Thumb-Zone Optimised Touch Targets --- */
@media (hover: none) and (pointer: coarse) {
  .article-page .ap-faq-q,
  .article-page .faq-question,
  .article-page .ap-feedback-btn,
  .article-page .section-collapse-btn,
  .article-page .table-view-btn,
  .article-page .salary-compare-tab {
    min-height: 48px;
  }
  .article-page .chip-tag { min-height: 36px; padding: 8px 14px; }
  .article-page .ap-mini-toc-pill { min-height: 38px; padding: 8px 16px; }
}

/* Floating Share FAB (bottom-right) */
.article-page .share-fab {
  position: fixed;
  bottom: 80px;
  right: 16px;
  z-index: 997;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ap-primary);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 16px rgba(255,107,0,0.3);
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.article-page .share-fab:active { transform: scale(0.92); }
@media (max-width: 768px) {
  .article-page .share-fab.visible { display: flex; }
}
.article-page .share-fab-menu {
  position: fixed;
  bottom: 136px;
  right: 16px;
  z-index: 997;
  display: none;
  flex-direction: column;
  gap: 8px;
}
.article-page .share-fab-menu.open { display: flex; }
.article-page .share-fab-item {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.875rem;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: transform 0.15s;
}
.article-page .share-fab-item:active { transform: scale(0.9); }
.article-page .share-fab-item.wa { background: #25D366; }
.article-page .share-fab-item.tg { background: #0088cc; }
.article-page .share-fab-item.tw { background: #1da1f2; }
.article-page .share-fab-item.cp { background: #6b7280; }

/* --- #27: Skeleton Loading State --- */
.article-page .skeleton {
  position: relative;
  overflow: hidden;
  background: var(--ap-surface-alt);
  border-radius: 8px;
}
.article-page .skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  animation: ap-shimmer 1.5s infinite;
}
@keyframes ap-shimmer {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}
.article-page .skeleton-hero { height: 180px; border-radius: 0; }
.article-page .skeleton-line { height: 14px; margin-bottom: 10px; border-radius: 4px; }
.article-page .skeleton-line.short { width: 60%; }
.article-page .skeleton-line.medium { width: 80%; }
.article-page .skeleton-card { height: 100px; border-radius: 12px; margin-bottom: 10px; }
.article-page .skeleton-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 10px 0;
}
.article-page .skeleton-grid .skeleton { height: 70px; }

/* --- #28: Offline / Poor Connectivity Hint --- */
.article-page .offline-hint {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.8rem;
  font-weight: 600;
  border-bottom: 1px solid #fbbf24;
}
.article-page .offline-hint.show { display: flex; }
.article-page .offline-hint i { font-size: 0.875rem; }
.article-page .offline-save-btn {
  padding: 4px 10px;
  border-radius: 6px;
  background: #fff;
  color: #92400e;
  border: 1px solid #d97706;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  margin-left: 8px;
  font-family: inherit;
}


/* =====================================================================
   ZONE 8: NEW COMPONENTS
   #29 Exam Calendar | #30 Quick-Compare Widget | #31 Related Carousel
   #32 Notification Bell CTA
   ===================================================================== */

/* --- #29: Exam Calendar Mini-Widget --- */
.article-page .exam-calendar {
  margin: 20px 0;
  background: #fff;
  border: 1px solid var(--ap-border-light);
  border-radius: 12px;
  padding: 18px;
  overflow: hidden;
}
.article-page .exam-calendar h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ap-text);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.article-page .exam-calendar h4 i { color: var(--ap-primary); }
.article-page .exam-cal-track {
  position: relative;
  display: flex;
  align-items: flex-start;
  padding: 10px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  gap: 0;
}
.article-page .exam-cal-track::-webkit-scrollbar { display: none; }
/* Connecting line */
.article-page .exam-cal-track::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
  height: 3px;
  background: var(--ap-border);
  border-radius: 2px;
  z-index: 0;
}
.article-page .exam-cal-point {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 90px;
  position: relative;
  z-index: 1;
  scroll-snap-align: center;
  text-align: center;
}
.article-page .exam-cal-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ap-border);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--ap-border);
  margin-bottom: 8px;
}
.article-page .exam-cal-point.past .exam-cal-dot {
  background: var(--ap-accent-green);
  box-shadow: 0 0 0 2px var(--ap-accent-green);
}
.article-page .exam-cal-point.current .exam-cal-dot {
  background: var(--ap-primary);
  box-shadow: 0 0 0 2px var(--ap-primary);
  animation: ap-calPulse 2s infinite;
}
@keyframes ap-calPulse {
  0%, 100% { box-shadow: 0 0 0 2px var(--ap-primary); }
  50% { box-shadow: 0 0 0 6px rgba(255,107,0,0.2); }
}
.article-page .exam-cal-point.future .exam-cal-dot {
  background: var(--ap-surface-alt);
  box-shadow: 0 0 0 2px var(--ap-border);
}
.article-page .exam-cal-date {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ap-text);
  margin-bottom: 2px;
}
.article-page .exam-cal-event {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--ap-text-muted);
  line-height: 1.3;
  max-width: 90px;
}
.article-page .exam-cal-point.past .exam-cal-date {
  color: var(--ap-text-muted);
  text-decoration: line-through;
}
.article-page .exam-cal-point.current .exam-cal-date { color: var(--ap-primary); }

/* --- #30: Quick-Compare Widget (Swipeable Comparison) --- */
.article-page .quick-compare {
  margin: 20px 0;
  position: relative;
}
.article-page .quick-compare-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.article-page .quick-compare-header h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ap-text);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.article-page .quick-compare-header h4 i { color: var(--ap-primary); }
.article-page .quick-compare-header .qc-hint {
  font-size: 0.7rem;
  color: var(--ap-text-muted);
}
.article-page .quick-compare-cards {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.article-page .quick-compare-cards::-webkit-scrollbar { display: none; }
.article-page .qc-card {
  flex-shrink: 0;
  width: 260px;
  background: #fff;
  border: 1px solid var(--ap-border-light);
  border-radius: 12px;
  padding: 16px;
  scroll-snap-align: start;
  border-top: 3px solid var(--ap-primary);
  transition: box-shadow 0.2s;
}
.article-page .qc-card:nth-child(2) { border-top-color: var(--ap-accent-green); }
.article-page .qc-card:nth-child(3) { border-top-color: #0088cc; }
.article-page .qc-card:hover { box-shadow: var(--ap-shadow-elevated); }
.article-page .qc-card-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ap-text);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--ap-border-light);
}
.article-page .qc-card-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 0.875rem;
}
.article-page .qc-card-row .qc-label { color: var(--ap-text-muted); }
.article-page .qc-card-row .qc-val { font-weight: 700; color: var(--ap-text); }
@media (min-width: 769px) {
  .article-page .qc-card { width: calc(50% - 6px); }
}

/* --- #31: Related Jobs Carousel --- */
.article-page .related-carousel-wrap {
  position: relative;
}
.article-page .related-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  scrollbar-width: none;
}
.article-page .related-carousel::-webkit-scrollbar { display: none; }
.article-page .related-carousel .related-card {
  flex-shrink: 0;
  width: 240px;
  scroll-snap-align: start;
}
.article-page .related-carousel .related-card .rc-stats {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  font-size: 0.7rem;
  color: var(--ap-text-muted);
}
.article-page .related-carousel .related-card .rc-stats span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.article-page .related-see-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ap-primary);
  text-decoration: none;
}
.article-page .related-see-all:hover { text-decoration: underline; }

/* --- #32: Notification Bell CTA (Slide-in) --- */
.article-page .ap-notif-bell {
  position: fixed;
  bottom: 80px;
  right: -320px;
  z-index: 996;
  width: 300px;
  background: #fff;
  border-radius: 14px 0 0 14px;
  box-shadow: -4px 4px 20px rgba(0,0,0,0.12);
  padding: 16px 18px;
  transition: right 0.4s var(--ap-ease);
  border: 1px solid var(--ap-border-light);
  border-right: none;
}
.article-page .ap-notif-bell.show { right: 0; }
.article-page .ap-notif-bell .nb-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: var(--ap-surface-alt);
  color: var(--ap-text-muted);
  font-size: 0.7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.article-page .ap-notif-bell .nb-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.article-page .ap-notif-bell .nb-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--ap-primary-light);
  color: var(--ap-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  animation: ap-bellRing 2s ease infinite;
}
@keyframes ap-bellRing {
  0%, 70%, 100% { transform: rotate(0); }
  5%  { transform: rotate(14deg); }
  10% { transform: rotate(-12deg); }
  15% { transform: rotate(10deg); }
  20% { transform: rotate(-8deg); }
  25% { transform: rotate(0); }
}
.article-page .ap-notif-bell .nb-text p {
  margin: 0 0 8px;
  font-size: 0.875rem;
  color: var(--ap-text-body);
  line-height: 1.45;
}
.article-page .ap-notif-bell .nb-text strong {
  color: var(--ap-text);
}
.article-page .nb-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--ap-primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
}
.article-page .nb-cta-btn:hover { background: var(--ap-primary-dark); }
.article-page .nb-cta-btn i { font-size: 0.7rem; }
@media (max-width: 400px) {
  .article-page .ap-notif-bell { width: 260px; padding: 14px; }
}
@media print { .article-page .ap-notif-bell { display: none !important; } }


/* =====================================================================
   ZONE 2 / 8 BONUS: Enhanced related-grid as carousel on all screens
   ===================================================================== */
@media (max-width: 768px) {
  .article-page .related-grid.carousel-mobile {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding-bottom: 8px;
    scrollbar-width: none;
  }
  .article-page .related-grid.carousel-mobile::-webkit-scrollbar { display: none; }
  .article-page .related-grid.carousel-mobile .related-card {
    flex-shrink: 0;
    width: 220px;
    scroll-snap-align: start;
  }
}
