/* =========================================================================
 * Job Assam WordPress theme — theme.css
 * ========================================================================= */

:root {
  --ja-accent: #c2211a;
  --ja-primary: #2563eb;
  --ja-dark: #0f172a;
  --ja-text: #1f2937;
  --ja-muted: #6b7280;
  --ja-border: #e5e7eb;
  --ja-bg: #f6f8fb;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ja-text);
  background: var(--ja-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ja-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; }

.ja-container { max-width: 1240px; margin: 0 auto; padding: 0 1rem; }

/* ============ HEADER ============ */
.ja-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--ja-border); }
.ja-header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.ja-logo-text { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; color: #111; text-decoration: none !important; display: inline-flex; align-items: baseline; }
.ja-logo-text em { font-style: normal; color: var(--ja-primary); }
.ja-logo-text .ja-logo-tld {
  font-style: normal;
  font-size: 20px;
  font-weight: 700;
  color: #6b7280;
  letter-spacing: -.3px;
  margin-left: 1px;
}
.custom-logo-link img, .ja-brand img { max-height: 44px; width: auto; }

.ja-primary-nav { display: flex; align-items: center; gap: 1.5rem; }
.ja-nav-menu { list-style: none; padding: 0; margin: 0; display: flex; align-items: center; gap: 1.4rem; }
.ja-nav-menu li a { color: #1f2937; font-weight: 500; font-size: 14.5px; text-decoration: none !important; transition: color .15s; }
.ja-nav-menu li a:hover, .ja-nav-menu li.current-menu-item a, .ja-nav-menu li.is-active a { color: var(--ja-accent); }

.ja-search-toggle, .ja-menu-toggle { background: transparent; border: 0; padding: .5rem; border-radius: 999px; cursor: pointer; color: #1f2937; }
.ja-search-toggle:hover, .ja-menu-toggle:hover { background: #f3f4f6; }
.ja-menu-toggle { display: none; }

.ja-search-panel { border-top: 1px solid var(--ja-border); background: #fff; }
.ja-search-panel form { display: flex; padding: .75rem 0; gap: .5rem; }
.ja-search-panel input { flex: 1; padding: .55rem .8rem; border: 1px solid #d1d5db; border-radius: 6px; font-size: 14px; }
.ja-search-panel button { padding: .55rem .9rem; background: var(--ja-primary); color: #fff; border: 0; border-radius: 6px; cursor: pointer; }

/* Mobile-only always-visible search bar in the header */
.ja-mobile-search { display: none; border-top: 1px solid var(--ja-border); background: #fafafa; }
.ja-mobile-search form { position: relative; padding: .5rem 0; }
.ja-mobile-search svg { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: #6b7280; }
.ja-mobile-search input { width: 100%; padding: .55rem .8rem .55rem 2.4rem; border: 1px solid #d1d5db; border-radius: 999px; background: #fff; font-size: 14px; }
.ja-mobile-search input:focus { outline: none; border-color: var(--ja-primary); }

/* ============ MAIN ============ */
.ja-main { min-height: 60vh; padding-bottom: 2rem; }
.ja-two-col { display: grid; grid-template-columns: 1fr 300px; gap: 1.5rem; margin-top: 1rem; }
.ja-primary-col { min-width: 0; }
.ja-sidebar { min-width: 0; }
.ja-home { padding-top: 1.25rem; }

/* ============ CTA row ============ */
.ja-cta-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: 0; }
.ja-cta { display: flex; align-items: center; justify-content: space-between; padding: .75rem 1rem; border: 2px solid; border-radius: 8px; background: #fff; text-decoration: none !important; transition: box-shadow .2s; }
.ja-cta:hover { box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.ja-cta span { display: inline-flex; align-items: center; gap: .5rem; color: #111; font-weight: 500; }
.ja-cta em { font-style: normal; font-weight: 600; color: #fff; padding: .3rem 1rem; border-radius: 4px; font-size: 13px; }
.ja-cta-green { border-color: #22c55e; }
.ja-cta-green em { background: #22c55e; }
.ja-cta-green svg { color: #16a34a; }
.ja-cta-red { border-color: #ef4444; }
.ja-cta-red em { background: #ef4444; }
.ja-cta-red svg { color: #dc2626; }

/* ============ Grid cards ============ */
.ja-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1rem; }
.ja-card { background: #fff; border: 1px solid var(--ja-border); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.ja-card-head { background: var(--ja-dark); color: #fff; text-align: center; padding: .75rem 1rem; }
.ja-card-head h3 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: .2px; }
.ja-list { list-style: none; margin: 0; padding: 0; flex: 1; }
.ja-list > li { border-bottom: 1px dashed #d1d5db; }
.ja-list > li:last-child { border-bottom: 0; }
.ja-list > li a { display: block; padding: .7rem 1rem; color: #111; text-decoration: none !important; font-size: 14px; line-height: 1.35; transition: color .15s, background .15s; }
.ja-list > li a:hover { color: var(--ja-primary); background: #f9fafb; }
.ja-icon-list > li a { display: flex; align-items: center; gap: .65rem; }
.ja-icon-list svg { width: 19px; height: 19px; color: #374151; flex-shrink: 0; }
.ja-view-more { display: flex; align-items: center; justify-content: center; gap: .35rem; padding: .75rem 1rem; background: #f3f4f6; color: #1f2937; font-weight: 500; font-size: 14px; text-decoration: none !important; border-top: 1px solid var(--ja-border); transition: background .15s; }
.ja-view-more:hover { background: #e5e7eb; }
.ja-view-more svg { width: 16px; height: 16px; }
.ja-empty { padding: 2.5rem 1rem; text-align: center; color: #6b7280; font-size: 14px; }

/* ============ About Job Assam ============ */
.ja-about { margin-top: 1.5rem; }
.ja-about-body { padding: 1.25rem; }
.ja-about-body p { margin: 0 0 .75rem; font-size: 14.5px; color: #374151; line-height: 1.7; }
.ja-about-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .5rem; }

/* ============ Buttons ============ */
.ja-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .55rem 1rem; border-radius: 6px; font-weight: 600; font-size: 14px; border: 0; cursor: pointer; text-decoration: none !important; transition: background .15s, color .15s; }
.ja-btn:hover { text-decoration: none; }
.ja-btn-primary { background: var(--ja-primary); color: #fff; }
.ja-btn-primary:hover { background: #1d4ed8; }
.ja-btn-green { background: #16a34a; color: #fff; }
.ja-btn-green:hover { background: #15803d; }
.ja-btn-outline { background: #fff; color: #111; border: 1px solid #d1d5db; }
.ja-btn-outline:hover { background: #f3f4f6; }

/* ============ Article layout ============ */
.ja-article { background: #fff; border: 1px solid var(--ja-border); border-radius: 8px; padding: 1.5rem; }
.ja-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: 13px; color: #6b7280; margin-bottom: .75rem; }
.ja-crumbs a { color: #6b7280; }
.ja-crumbs a:hover { color: var(--ja-primary); }
.ja-crumbs svg { width: 14px; height: 14px; }
.ja-article-title { font-size: 28px; line-height: 1.2; font-weight: 800; color: #111; margin: .5rem 0 .75rem; }
.ja-meta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; font-size: 13px; color: #6b7280; }
.ja-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.ja-meta svg { width: 14px; height: 14px; }
.ja-article-thumb { margin: 0 0 1.25rem; border-radius: 6px; overflow: hidden; }
.ja-article-content { font-size: 15.5px; line-height: 1.75; color: #1f2937; }
/* Auto blue-gradient banner for H2 headings inside article content */
.ja-article-content > h2,
.entry-content > h2 {
  background: linear-gradient(90deg, #1d4ed8 0%, #2563eb 50%, #3b82f6 100%);
  color: #fff !important;
  padding: .7rem 1.25rem;
  border-radius: 6px;
  font-size: 17px;
  font-weight: 700;
  margin: 1.5rem 0 .75rem;
  letter-spacing: .2px;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.ja-article-content > h3,
.entry-content > h3 { color: var(--ja-primary); font-size: 17px; margin: 1.25rem 0 .5rem; font-weight: 700; }
.ja-article-content ul, .ja-article-content ol { padding-left: 1.25rem; margin: .5rem 0 1rem; }
.ja-article-content li { margin-bottom: .35rem; }
.ja-article-content img { border-radius: 6px; margin: 1rem 0; }
.ja-article-content table,
.ja-info-table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 14.5px; background: #fff; border: 1px solid var(--ja-border); border-radius: 6px; overflow: hidden; }
.ja-article-content table th, .ja-article-content table td,
.ja-info-table th, .ja-info-table td { padding: .7rem 1rem; border: 1px solid var(--ja-border); text-align: left; vertical-align: top; }
.ja-article-content table th,
.ja-info-table th { background: #f3f4f6; font-weight: 600; color: #1f2937; width: 40%; }
.ja-info-table tr:nth-child(even) td { background: #f9fafb; }
.ja-apply-btn { display: inline-flex; align-items: center; gap: .3rem; background: var(--ja-primary); color: #fff !important; font-weight: 600; padding: .35rem .9rem; border-radius: 4px; text-decoration: none !important; font-size: 13px; }
.ja-apply-btn:hover { background: #1d4ed8; }

/* ============ Blue gradient section banner ============ */
.ja-banner { background: linear-gradient(90deg, #1d4ed8 0%, #2563eb 50%, #3b82f6 100%); border-radius: 6px; padding: .7rem 1.25rem; margin: 1.25rem 0 .75rem; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.ja-banner h2 { color: #fff; font-size: 17px; font-weight: 700; letter-spacing: .2px; margin: 0; }

/* ============ Share row ============ */
.ja-share { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--ja-border); font-size: 14px; }
.ja-share span { color: #6b7280; font-weight: 500; }
.ja-share a { display: inline-flex; align-items: center; gap: .3rem; padding: .35rem .7rem; border-radius: 6px; border: 1px solid var(--ja-border); color: #374151; }
.ja-share a:hover { border-color: var(--ja-primary); color: var(--ja-primary); text-decoration: none; }

/* ============ Widgets / sidebar ============ */
.ja-widget { background: #fff; border: 1px solid var(--ja-border); border-radius: 8px; overflow: hidden; margin-bottom: 1rem; }
.ja-widget-title { margin: 0; background: var(--ja-dark); color: #fff; padding: .6rem 1rem; font-size: 15px; text-align: center; font-weight: 600; }
.ja-widget .ja-list > li a { padding: .6rem 1rem; }

/* ============ Tool pages ============ */
.ja-tool-page .ja-tool-head { display: flex; align-items: center; gap: .75rem; margin-bottom: .5rem; }
.ja-tool-ico { width: 40px; height: 40px; border-radius: 8px; background: #dbeafe; color: var(--ja-primary); display: inline-flex; align-items: center; justify-content: center; }
.ja-tool-sub { color: #6b7280; font-size: 13px; margin: 2px 0 0; }
.ja-form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; background: #f9fafb; border: 1px solid var(--ja-border); border-radius: 8px; padding: 1rem; }
.ja-form-grid label { display: flex; flex-direction: column; gap: .35rem; font-size: 13px; font-weight: 600; color: #1f2937; }
.ja-form-grid .ja-full { grid-column: 1 / -1; }
.ja-form-grid input, .ja-form-grid textarea, .ja-form-grid select { padding: .55rem .75rem; border: 1px solid #d1d5db; border-radius: 6px; font-size: 14px; font-family: inherit; font-weight: 400; color: #111; background: #fff; }
.ja-form-grid input:focus, .ja-form-grid textarea:focus, .ja-form-grid select:focus { outline: none; border-color: var(--ja-primary); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.ja-tool-result { margin-top: 1rem; padding: 2rem; background: #f9fafb; border: 1px dashed #d1d5db; border-radius: 8px; text-align: center; color: #6b7280; }
.ja-tool-result.ok { background: #fff; border-style: solid; border-color: #bfdbfe; color: #111; text-align: left; }
.ja-tool-result h3 { margin: 0 0 .75rem; font-size: 17px; }
.ja-tool-result .big { background: #eff6ff; padding: .75rem; text-align: center; border-radius: 6px; font-size: 26px; font-weight: 800; color: #1d4ed8; margin-bottom: .75rem; }
.ja-tool-result .cells { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; text-align: center; }
.ja-tool-result .cells > div { border: 1px solid var(--ja-border); padding: .6rem; border-radius: 6px; }
.ja-tool-result .cells strong { display: block; font-size: 18px; }
.ja-tool-result .cells em { font-style: normal; font-size: 12px; color: #6b7280; }

/* Dropzone */
.ja-dropzone { display: block; text-align: center; padding: 2rem; border: 2px dashed #93c5fd; background: #eff6ff; border-radius: 8px; cursor: pointer; transition: background .15s; }
.ja-dropzone:hover { background: #dbeafe; }
.ja-dropzone svg { width: 32px; height: 32px; color: #2563eb; margin: 0 auto .5rem; }
.ja-dropzone strong { display: block; font-size: 14.5px; color: #111; }
.ja-dropzone small { font-size: 12.5px; color: #6b7280; }

/* Image resizer */
.ja-ir-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.ja-ir-preview { background: #fff; border: 1px solid var(--ja-border); border-radius: 6px; padding: .75rem; }
.ja-ir-preview img { max-height: 240px; margin: .5rem auto 0; object-fit: contain; }
.ja-ir-controls { background: #f9fafb; border: 1px solid var(--ja-border); border-radius: 8px; padding: 1rem; display: flex; flex-direction: column; gap: .75rem; }
.ja-check { display: flex; align-items: center; gap: .5rem; font-size: 13px; }
.ja-ir-output { margin-top: 1rem; background: #fff; border: 1px solid #bfdbfe; border-radius: 8px; padding: 1rem; display: flex; flex-direction: column; align-items: center; gap: .75rem; }
.ja-ir-output img { max-height: 300px; }

/* Images to PDF thumbs */
.ja-ip-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin: 1rem 0; }
.ja-ip-thumbs .ip-item { position: relative; border: 1px solid var(--ja-border); border-radius: 6px; overflow: hidden; background: #fff; }
.ja-ip-thumbs img { height: 110px; width: 100%; object-fit: cover; }
.ja-ip-thumbs .ip-name { padding: 2px 6px; font-size: 11px; color: #374151; }
.ja-ip-thumbs .ip-rm { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; border: 0; cursor: pointer; }

/* QR output */
.ja-qr-out { margin-top: 1rem; background: #fff; border: 1px solid #bfdbfe; border-radius: 8px; padding: 1.25rem; display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.ja-qr-out img { width: 280px; height: 280px; background: #fff; padding: 8px; border: 1px solid var(--ja-border); border-radius: 6px; }
.ja-qr-info { font-weight: 600; color: #111; }

/* Assamese type */
.ja-at-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ja-at-grid label { display: flex; flex-direction: column; gap: .35rem; font-size: 13px; font-weight: 600; }
.ja-at-grid textarea { padding: .55rem .75rem; border: 1px solid #d1d5db; border-radius: 6px; font-size: 15px; font-family: monospace; min-height: 240px; }
.ja-at-out { padding: .55rem .75rem; border: 1px solid #d1d5db; border-radius: 6px; background: #f9fafb; min-height: 240px; font-size: 17px; line-height: 1.7; white-space: pre-wrap; color: #111; }
.ja-at-actions { display: flex; gap: .5rem; margin-top: .75rem; }
.ja-notice { margin-top: 1rem; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 6px; padding: .75rem 1rem; font-size: 13px; color: #374151; }

/* Bio-Data preview */
.ja-bio-preview { margin-top: 1.25rem; background: #fff; border: 1px solid var(--ja-border); border-radius: 6px; padding: 1.5rem; }
.ja-bio-head { display: flex; gap: .75rem; align-items: center; border-bottom: 2px solid var(--ja-primary); padding-bottom: .75rem; margin-bottom: 1rem; }
.ja-bio-avatar { width: 46px; height: 46px; border-radius: 999px; background: #dbeafe; color: var(--ja-primary); display: inline-flex; align-items: center; justify-content: center; }
.ja-bio-head h2 { margin: 0; font-size: 22px; font-weight: 800; color: #111; }
.ja-bio-contact { font-size: 13px; color: #6b7280; }
.ja-bio-preview h3 { font-size: 15px; text-transform: uppercase; color: var(--ja-primary); margin: 1rem 0 .5rem; }
.ja-bio-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ja-bio-table th, .ja-bio-table td { padding: .35rem 0; border-bottom: 1px dashed #e5e7eb; text-align: left; }
.ja-bio-table th { width: 34%; font-weight: 600; color: #1f2937; }
.ja-bio-sign { display: flex; justify-content: space-between; margin-top: 2rem; font-size: 13px; color: #4b5563; }
[data-bd-section] { display: none; }
[data-bd-section].on { display: block; }

/* Print for bio-data */
@media print {
  .ja-header, .ja-footer, .ja-sidebar, .ja-crumbs, .ja-tool-head, .ja-banner, .ja-form-grid, .ja-bio-form, .ja-btn { display: none !important; }
  body, .ja-main, .ja-container, .ja-two-col, .ja-primary-col, .ja-article, .ja-tool-page { background: #fff !important; padding: 0 !important; margin: 0 !important; border: 0 !important; }
  .ja-bio-preview { border: 0 !important; padding: 0 !important; }
}

/* ============ Post grid (blog/archive) ============ */
.ja-post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.ja-post-card { background: #fff; border: 1px solid var(--ja-border); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.ja-post-thumb img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.ja-post-body { padding: 1rem; }
.ja-post-title { margin: 0 0 .35rem; font-size: 17px; line-height: 1.3; font-weight: 700; }
.ja-post-title a { color: #111; }
.ja-post-title a:hover { color: var(--ja-primary); text-decoration: none; }
.ja-post-meta { font-size: 12.5px; color: #6b7280; margin-bottom: .5rem; }
.ja-post-excerpt { font-size: 14px; color: #4b5563; margin-bottom: .5rem; }

.ja-pagination { margin: 1.5rem 0; text-align: center; }
.ja-pagination .page-numbers { display: inline-block; padding: .4rem .7rem; margin: 0 .1rem; border: 1px solid var(--ja-border); border-radius: 4px; color: #374151; font-size: 13px; }
.ja-pagination .current { background: var(--ja-primary); color: #fff; border-color: var(--ja-primary); }

/* ============ Footer ============ */
.ja-footer { margin-top: 3rem; background: var(--ja-dark); color: #d1d5db; }
.ja-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; padding: 2.5rem 1rem; }
.ja-footer-brand { color: #fff; font-size: 20px; font-weight: 700; }
.ja-footer-col p { margin: .75rem 0; color: #9ca3af; font-size: 13.5px; }
.ja-footer-col h4 { color: #fff; font-size: 15px; font-weight: 600; margin: 0 0 .75rem; }
.ja-footer-col ul { list-style: none; padding: 0; margin: 0; }
.ja-footer-col li { margin-bottom: .35rem; }
.ja-footer-col a { color: #9ca3af; font-size: 13.5px; }
.ja-footer-col a:hover { color: #fff; text-decoration: none; }
.ja-socials { display: flex; gap: .5rem; margin-bottom: .75rem; }
.ja-socials a { width: 36px; height: 36px; border: 1px solid #374151; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; color: #d1d5db; }
.ja-socials a:hover { background: rgba(255,255,255,.08); border-color: #fff; color: #fff; }
.ja-footer-note { font-size: 12.5px; color: #6b7280; margin-top: .5rem; }
.ja-copyright { border-top: 1px solid rgba(255,255,255,.08); padding: 1rem; text-align: center; font-size: 12.5px; color: #6b7280; }

/* ============ Quiz ============ */
.ja-quiz-intro { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 8px; padding: 1.5rem; text-align: center; }
.ja-quiz-intro svg { width: 40px; height: 40px; color: var(--ja-primary); margin: 0 auto .5rem; }
.ja-quiz-card { background: #fff; border: 1px solid var(--ja-border); border-radius: 8px; padding: 1.25rem; }
.ja-quiz-progress { height: 6px; background: #f3f4f6; border-radius: 999px; overflow: hidden; margin: .5rem 0 1rem; }
.ja-quiz-progress > span { display: block; height: 100%; background: var(--ja-primary); transition: width .3s; }
.ja-quiz-q { font-size: 17px; font-weight: 700; margin: 0 0 .75rem; color: #111; }
.ja-quiz-opts { display: flex; flex-direction: column; gap: .5rem; }
.ja-quiz-opts button { text-align: left; padding: .6rem 1rem; border: 1px solid var(--ja-border); background: #fff; border-radius: 6px; cursor: pointer; font-size: 14.5px; color: #1f2937; transition: border-color .15s, background .15s; }
.ja-quiz-opts button:hover { border-color: #93c5fd; background: rgba(219,234,254,.4); }
.ja-quiz-opts button.selected { border-color: var(--ja-primary); background: #eff6ff; color: #1d4ed8; }
.ja-quiz-nav { display: flex; justify-content: space-between; margin-top: 1rem; }
.ja-quiz-result { text-align: center; padding: 1.5rem; background: #fff; border: 1px solid #bfdbfe; border-radius: 8px; }
.ja-quiz-result .big { font-size: 34px; font-weight: 800; color: var(--ja-primary); }
.ja-quiz-review { margin-top: 1rem; display: flex; flex-direction: column; gap: .75rem; }
.ja-quiz-review .qi { background: #fff; border: 1px solid var(--ja-border); border-radius: 6px; padding: .75rem 1rem; }
.ja-quiz-review .opt-correct { background: #f0fdf4; color: #166534; padding: .3rem .5rem; border-radius: 4px; margin: 2px 0; display: block; }
.ja-quiz-review .opt-wrong { background: #fef2f2; color: #991b1b; padding: .3rem .5rem; border-radius: 4px; margin: 2px 0; display: block; }

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .ja-two-col { grid-template-columns: 1fr; }
  .ja-grid-3 { grid-template-columns: 1fr; }
  .ja-footer-grid { grid-template-columns: 1fr 1fr; }
  .ja-cta-row { grid-template-columns: 1fr; }
  .ja-ir-panel, .ja-at-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .ja-primary-nav .ja-nav-menu, .ja-search-toggle { display: none; }
  .ja-menu-toggle { display: inline-flex; }
  .ja-mobile-search { display: block; }
  .ja-form-grid, .ja-post-grid, .ja-ip-thumbs { grid-template-columns: 1fr; }
  .ja-footer-grid { grid-template-columns: 1fr; }
  .ja-tool-result .cells { grid-template-columns: repeat(2, 1fr); }

  /* Article mobile layout */
  .ja-article { padding: 1rem; border-radius: 6px; }
  .ja-article-title { font-size: 22px; line-height: 1.25; }
  .ja-article-content { font-size: 15px; line-height: 1.7; }
  .ja-article-content > h2,
  .entry-content > h2 { font-size: 15.5px; padding: .6rem 1rem; }
  .ja-article-content > h3,
  .entry-content > h3 { font-size: 15px; }
  .ja-article-content p,
  .entry-content p { font-size: 15px; }

  /* Responsive tables — turn every row into a stacked card on mobile */
  .ja-article-content table,
  .ja-info-table,
  .entry-content table { display: block; width: 100%; border: 0; overflow: hidden; }
  .ja-article-content table thead,
  .ja-info-table thead,
  .entry-content table thead { display: none; }
  .ja-article-content table tbody,
  .ja-info-table tbody,
  .entry-content table tbody { display: block; }
  .ja-article-content table tr,
  .ja-info-table tr,
  .entry-content table tr { display: block; margin: 0 0 .6rem; border: 1px solid var(--ja-border); border-radius: 6px; overflow: hidden; background: #fff; }
  .ja-article-content table th,
  .ja-article-content table td,
  .ja-info-table th,
  .ja-info-table td,
  .entry-content table th,
  .entry-content table td { display: block; width: 100% !important; border: 0; border-bottom: 1px solid #f1f5f9; padding: .55rem .8rem; font-size: 14px; }
  .ja-article-content table th,
  .ja-info-table th,
  .entry-content table th { background: #f3f4f6; font-weight: 700; color: #111; font-size: 13px; }
  .ja-article-content table td:last-child,
  .ja-info-table td:last-child,
  .entry-content table td:last-child { border-bottom: 0; }
  .ja-info-table tr:nth-child(even) td { background: #fff; }

  .ja-apply-btn { display: block; width: 100%; text-align: center; padding: .55rem .9rem; }

  /* Crumbs & meta stack cleanly */
  .ja-crumbs { font-size: 12.5px; }
  .ja-meta { font-size: 12.5px; gap: .75rem; }

  /* Container gets a bit more breathing room */
  .ja-container { padding: 0 .75rem; }
  .ja-header-inner { height: 56px; }
  .ja-logo-text { font-size: 22px; }
}


/* ============ Mobile drawer (off-canvas) ============ */
.ja-drawer,
.ja-drawer-overlay { display: none; }

.ja-drawer {
  position: fixed;
  top: 0; left: 0;
  width: min(86vw, 340px);
  height: 100vh;
  background: #ffffff;
  z-index: 100;
  box-shadow: 12px 0 40px rgba(15, 23, 42, .18);
  transform: translateX(-105%);
  transition: transform .32s cubic-bezier(.22, 1, .36, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ja-drawer[hidden] { display: flex; }
.ja-drawer.open { transform: translateX(0); }

.ja-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .55);
  backdrop-filter: blur(2px);
  z-index: 99;
  opacity: 0;
  transition: opacity .28s ease;
  pointer-events: none;
}
.ja-drawer-overlay[hidden] { display: block; }
.ja-drawer-overlay.open { opacity: 1; pointer-events: auto; }

/* Drawer head */
.ja-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.15rem .9rem;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  color: #111;
}
.ja-drawer-brand { display: flex; align-items: baseline; }
.ja-drawer-logo {
  color: #111 !important;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.5px;
  text-decoration: none !important;
  display: inline-flex;
  align-items: baseline;
}
.ja-drawer-logo em { font-style: normal; color: var(--ja-primary); }
.ja-drawer-tld {
  font-style: normal;
  font-size: 18px;
  font-weight: 700;
  color: #6b7280;
  letter-spacing: -.3px;
  margin-left: 1px;
}
.ja-drawer-close {
  background: #f3f4f6;
  border: 0;
  color: #374151;
  width: 38px; height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .18s, color .18s;
}
.ja-drawer-close:hover { background: #e5e7eb; color: #111; }

/* Drawer search */
.ja-drawer-search { padding: .9rem 1.15rem 0; }
.ja-drawer-search form {
  position: relative;
  display: flex;
  align-items: center;
  background: #f3f4f6;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: .55rem .9rem;
  transition: border-color .18s, background .18s;
}
.ja-drawer-search form:focus-within {
  background: #fff;
  border-color: var(--ja-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.ja-drawer-search svg { color: #6b7280; flex-shrink: 0; margin-right: .55rem; }
.ja-drawer-search input {
  flex: 1;
  border: 0;
  background: transparent;
  font-size: 14px;
  outline: none;
  color: #111827;
}

/* Drawer nav */
.ja-drawer-nav {
  flex: 1;
  overflow-y: auto;
  padding: .75rem 1rem 1rem;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.ja-drawer-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #9ca3af;
  padding: .25rem .35rem .55rem;
}
.ja-drawer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.ja-drawer-menu li { list-style: none; margin: 0; }
.ja-drawer-menu li a {
  display: flex;
  align-items: center;
  gap: .8rem;
  min-height: 52px;
  padding: .65rem .85rem .65rem .7rem;
  border: 1px solid #eef1f5;
  border-radius: 12px;
  background: #ffffff;
  color: #111827;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.1px;
  text-decoration: none !important;
  transition: border-color .18s, background .18s, color .18s, box-shadow .18s, transform .1s;
  -webkit-tap-highlight-color: transparent;
}
.ja-drawer-menu li a:hover,
.ja-drawer-menu li.current-menu-item a,
.ja-drawer-menu li.is-active a {
  border-color: #dbeafe;
  background: #f8faff;
  color: var(--ja-primary);
  box-shadow: 0 2px 8px -4px rgba(37, 99, 235, .18);
}
.ja-drawer-menu li a:active { transform: scale(.985); }
.ja-drawer-menu li a .ja-di {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: #eff6ff;
  color: var(--ja-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .18s, color .18s;
}
.ja-drawer-menu li a:hover .ja-di,
.ja-drawer-menu li.current-menu-item a .ja-di,
.ja-drawer-menu li.is-active a .ja-di {
  background: var(--ja-primary);
  color: #fff;
}
.ja-drawer-menu li a .ja-dl { flex: 1; }
.ja-drawer-menu li a .ja-dc {
  color: #9ca3af;
  display: inline-flex;
  align-items: center;
  transition: transform .18s, color .18s;
}
.ja-drawer-menu li a:hover .ja-dc { color: var(--ja-primary); transform: translateX(2px); }

/* Drawer footer — Telegram CTA — sticky at bottom */
.ja-drawer-foot {
  flex-shrink: 0;
  padding: .75rem 1rem 1rem;
  border-top: 1px solid #eef1f5;
  background: #ffffff;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
}

/* Social row */
.ja-drawer-social {
  display: flex;
  gap: .55rem;
  padding: .5rem 1.15rem .25rem;
  flex-wrap: wrap;
}
.ja-drawer-social .ja-ds {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4b5563;
  background: #f3f4f6;
  transition: transform .18s, background .18s, color .18s;
}
.ja-drawer-social .ja-ds:hover { transform: translateY(-2px); }
.ja-drawer-social .ja-ds-facebook:hover  { background: #1877f2; color: #fff; }
.ja-drawer-social .ja-ds-youtube:hover   { background: #ff0000; color: #fff; }
.ja-drawer-social .ja-ds-instagram:hover { background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af); color: #fff; }
.ja-drawer-social .ja-ds-twitter:hover   { background: #111; color: #fff; }

/* Drawer footer — Telegram CTA — sticky at bottom (old rule kept for reference, superseded above) */
.ja-drawer-cta {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .85rem 1rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #0088cc 0%, #229ed9 60%, #34aadf 100%);
  color: #fff !important;
  text-decoration: none !important;
  box-shadow: 0 10px 24px -8px rgba(0, 136, 204, .55);
  transition: transform .2s, box-shadow .2s;
}
.ja-drawer-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -10px rgba(0, 136, 204, .65);
}
.ja-drawer-cta:active { transform: translateY(0); }
.ja-drawer-cta-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ja-drawer-cta-text { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.ja-drawer-cta-text strong { font-size: 15px; font-weight: 700; }
.ja-drawer-cta-text em { font-style: normal; font-size: 12px; opacity: .88; }
.ja-drawer-cta-arrow {
  display: inline-flex;
  align-items: center;
  transition: transform .2s;
}
.ja-drawer-cta:hover .ja-drawer-cta-arrow { transform: translateX(3px); }

/* Lock body scroll when drawer is open */
body.ja-drawer-open { overflow: hidden; }

/* Show drawer bits only on small screens */
@media (min-width: 721px) {
  .ja-drawer, .ja-drawer-overlay, .ja-menu-toggle { display: none !important; }
}
