/* =====================================================================
   GOVT JOB NEWS — ARTICLE LAYOUT SYSTEM (SarkariMatch Theme)
   Clean Orange/White design • Mobile-first • Scrollable tables
   -----------------------------------------------------------------
   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: 8px;
  --ap-radius-sm: 5px;
  --ap-radius-xs: 4px;
  --ap-pad: 25px;
  --ap-pad-mobile: 16px;
  --ap-line-height: 1.8;
  --ap-font-body: 15px;
  --ap-font-body-mobile: 15px;
  --ap-font-body-small: 14px;

  /* Colour palette — SarkariMatch Orange */
  --ap-primary: #FF6B00;
  --ap-primary-dark: #e05e00;
  --ap-primary-light: #fff3e6;
  --ap-primary-lighter: #fff9f0;
  --ap-surface: #ffffff;
  --ap-surface-alt: #f5f5f5;
  --ap-text: #222222;
  --ap-text-body: #444444;
  --ap-text-muted: #999999;
  --ap-border: #e0e0e0;
  --ap-border-light: #f0f0f0;
  --ap-accent-red: #e63946;
  --ap-accent-green: #2d6a4f;
  --ap-accent-amber: #d97706;
  --ap-secondary: #1a1a2e;

  /* Shadows */
  --ap-shadow-card: 0 2px 8px rgba(0,0,0,0.08);
  --ap-shadow-elevated: 0 4px 16px rgba(0,0,0,0.12);

  /* 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;
}

/* ---------- Hero Banner ---------- */
.article-page .article-hero {
  background: linear-gradient(135deg, var(--ap-primary), var(--ap-primary-dark));
  color: #fff;
  padding: 36px var(--ap-pad) 32px;
  position: relative;
}

.article-page .category-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.18);
  color: #fff;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  min-height: auto;
}
.article-page .category-badge i { font-size: 0.72rem; }

.article-page .article-hero h1 {
  font-family: 'Roboto', 'Noto Sans Devanagari', sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 18px;
}

.article-page .article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.85rem;
  opacity: 0.9;
}
.article-page .article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: auto;
}
.article-page .article-meta i { font-size: 0.78rem; opacity: 0.8; 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 */
.article-page .article-content h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ap-secondary);
  margin-bottom: 16px;
  line-height: 1.4;
  padding: 10px 0 10px 15px;
  border-left: 4px solid var(--ap-primary);
  border-bottom: none;
  display: block;
  background: #fafafa;
  border-radius: 0 var(--ap-radius-sm) var(--ap-radius-sm) 0;
}
.article-page .article-content h2 i {
  margin-right: 10px;
  color: var(--ap-primary);
  font-size: 0.88em;
}

/* H3 */
.article-page .article-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ap-text);
  margin: 24px 0 12px;
  line-height: 1.4;
}

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

/* Body text */
.article-page .article-content p {
  color: var(--ap-text-body);
  margin-bottom: 16px;
  font-size: var(--ap-font-body);
  line-height: var(--ap-line-height);
}
.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: 14px;
  color: var(--ap-text-body);
  line-height: 1.7;
}
.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.72rem;
  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: 0.95rem;
  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.05rem !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.88rem;
  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.82rem;
  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: 14px;
  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: 14px;
  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: 14px;
  line-height: 1.7;
}
.article-page .ap-callout > i { font-size: 1.2rem; 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.05rem;
  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: 14px;
  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: 0.95rem; font-weight: 700; color: var(--ap-text); margin: 0 0 6px; }
.article-page .ap-eligibility-card p { margin-bottom: 0; font-size: 14px; 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: 0.95rem;
  color: var(--ap-text);
  margin-bottom: 4px;
}
.article-page .ap-step-body p { margin-bottom: 0; font-size: 14px; 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: 15px;
  font-weight: 700;
  color: var(--ap-secondary);
  transition: all 0.2s;
  font-family: 'Roboto', sans-serif;
}
.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.78rem; 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: 14px; 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.68rem;
  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: 0.92rem;
  font-weight: 700;
  color: var(--ap-text);
  margin: 0 0 6px;
  line-height: 1.4;
}
.article-page .ap-related-card p {
  font-size: 0.82rem;
  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: 16px;
  font-weight: 700;
  color: var(--ap-secondary);
  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: 0.95rem; }

/* 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: 14px;
}
.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: 15px;
  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.75rem; 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: 13px;
}
.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: 13px;
  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: 13px;
  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: 13px;
  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: 14px;
  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.85rem; 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.2rem;
}
.article-page .ap-author-info h4 { font-size: 0.95rem; color: var(--ap-text); margin-bottom: 3px; font-weight: 700; }
.article-page .ap-author-info p { font-size: 0.85rem; 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: 0.92rem;
  color: var(--ap-text-muted);
  margin-bottom: 8px;
}
.article-page .ap-disclaimer-box p {
  font-size: 0.84rem;
  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: 14px; 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.75rem; 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: 14px; 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.2rem; 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.2rem; 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.2rem; 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.2rem; 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.05rem; }
.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.75rem; 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: 14px; }

/* 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: 14px; 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: 15px; font-weight: 700; color: var(--ap-secondary); transition: all 0.2s; font-family: 'Roboto', sans-serif; }
.article-page .faq-question:hover { background: var(--ap-primary-light); }
.article-page .faq-question i { flex-shrink: 0; font-size: 0.78rem; 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: 14px; 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.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--ap-text-muted); margin-bottom: 3px; }
.article-page .highlight-value { font-size: 0.95rem; 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.05rem !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.88rem; 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.84rem; 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.2rem; }
.article-page .author-info h4 { font-size: 0.95rem; color: var(--ap-text); margin-bottom: 3px; font-weight: 700; }
.article-page .author-info p { font-size: 0.85rem; 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.05rem; margin-bottom: 4px !important; }
.article-page .apply-posts { color: var(--ap-primary); font-weight: 600; font-size: 1.2rem; margin-bottom: 8px !important; }
.article-page .apply-deadline { color: var(--ap-accent-red); font-weight: 600; font-size: 0.9rem; 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: 0.95rem; 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.88rem; 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: 14px; 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: 13px; 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: 0.92rem; 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 { font-size: 1.3rem; margin-bottom: 12px; }
  .article-page .article-meta { gap: 10px; font-size: 0.82rem; }
  .article-page .category-badge { font-size: 0.72rem; 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 { font-size: 18px; padding: 8px 0 8px 12px; }
  .article-page .article-content h3 { font-size: 1.08rem; margin: 18px 0 10px; }
  .article-page .article-content p { font-size: 15px; line-height: 1.8; }

  .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: 14px; 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: 0.9rem; }
  .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: 15px; }
  .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: 15px; }
  .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.6rem; }
  .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 { font-size: 1.12rem; line-height: 1.3; }
  .article-page .article-meta { flex-direction: column; gap: 6px; font-size: 0.78rem; }

  .article-page .article-content h2 { font-size: 16px; }
  .article-page .article-content h3 { font-size: 1rem; }
  .article-page .article-content p { font-size: 14px; }

  .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: 13px; }
  .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.85rem; }
  .article-page .step-number { width: 40px; height: 40px; font-size: 0.65rem; }

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

  .article-page .ap-widget h3, .article-page .sidebar-widget h3 { font-size: 15px; }
  .article-page .ap-faq-q, .article-page .faq-question { padding: 12px 14px; font-size: 14px; }
  .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.4rem; }
  .article-page .summary-label { font-size: 0.72rem; }
}

/* ============================
   19. RESPONSIVE — 360px
   ============================ */
@media (max-width: 360px) {
  .article-page { --ap-pad: 12px; }
  .article-page .article-hero h1 { font-size: 1.05rem; }
  .article-page .article-content h2 { font-size: 15px; }
  .article-page .article-content h3 { font-size: 0.95rem; }
  .article-page .article-content p { font-size: 14px; line-height: 1.75; }
  .article-page .category-badge { font-size: 0.68rem; padding: 3px 8px; }
  .article-page .data-table { min-width: 400px; font-size: 13px; }
}

/* ============================
   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: 13px;
  font-weight: 700;
  color: #1a1a2e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.sticky-apply-bar .sab-meta {
  font-size: 11px;
  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: 10px;
}
.sticky-apply-bar .sab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #FF6B00, #e05e00);
  color: #fff;
  font-size: 13px;
  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: 12px;
}
/* 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: 14px; }
  .sticky-apply-bar .sab-meta { font-size: 12px; }
  .sticky-apply-bar .sab-btn { padding: 10px 24px; font-size: 14px; }
}

@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.85rem;
  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: 0.95rem; }
.article-page .form-group .hint { font-size: 0.82rem; 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: 0.95rem; 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: 0.95rem; 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: 0.95rem; 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.05rem; 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.15rem; 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: 0.9rem; 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: 0.9rem; 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.78rem; }
  .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: 16px !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.2rem;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}
.acb-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #b91c1c;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.acb-detail {
  font-size: 0.85rem;
  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: 0.95rem; }
  .acb-detail { font-size: 0.8rem; }
}
