/* ==========================================================================
   JEE MENIA Blog & Knowledge Vault — Gold/Ivory/Slate SEO Theme
   ========================================================================== */
:root {
  --jm-yellow: #ffc400;
  --jm-yellow-deep: #e5ad00;
  --jm-yellow-soft: #fff7db;
  --jm-ink: #111315;
  --jm-text: #17191c;
  --jm-muted: #586069;
  --jm-bg: #fdfbf7;
  --jm-card: #ffffff;
  --jm-border: #e8e2d2;
  --jm-container: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--jm-bg);
  color: var(--jm-text);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.jm-wrap { width: min(var(--jm-container), calc(100% - 36px)); margin-inline: auto; }

/* Reading Progress Bar */
.jm-reading-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, #e5ad00, #ffc400);
  z-index: 200; transition: width 0.1s linear;
}

/* Top Ticker & Header */
.jm-top-ticker {
  background: #111315; color: #f3f4f6; font-size: 12px;
  padding: 8px 0; border-bottom: 2px solid var(--jm-yellow);
}
.jm-ticker-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.jm-pill { background: var(--jm-yellow); color: #111; font-weight: 900; padding: 2px 8px; border-radius: 6px; margin-right: 6px; font-size: 10.5px; letter-spacing: .04em; }
.jm-ticker-links { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.jm-ticker-links a { color: #ffd84d; font-weight: 700; }

.jm-site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--jm-border);
}
.jm-nav-row { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.jm-brand-fallback { font-weight: 900; font-size: 22px; letter-spacing: -0.03em; color: #111315; }
.jm-brand-fallback span { color: var(--jm-yellow-deep); }
.jm-primary-nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.jm-primary-nav a { font-size: 13.5px; font-weight: 700; color: #374151; transition: color .15s; }
.jm-primary-nav a:hover, .jm-primary-nav a.is-active { color: #9a6700; }
.jm-mobile-nav-btn { display: none; background: #fff; border: 1px solid var(--jm-border); border-radius: 10px; padding: 8px 12px; font-weight: 800; cursor: pointer; }

/* Buttons */
.jm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px; font-weight: 800; font-size: 13.5px;
  border: 1px solid transparent; cursor: pointer; transition: transform .18s, box-shadow .18s;
}
.jm-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(17,19,21,.1); }
.jm-btn-sm { padding: 8px 14px; font-size: 12.5px; border-radius: 10px; }
.jm-btn-yellow { background: var(--jm-yellow); color: #111315 !important; border-color: var(--jm-yellow-deep); }
.jm-btn-dark { background: #111315; color: #ffffff !important; }
.jm-btn-outline-light { border-color: rgba(255,255,255,.35); color: #fff !important; background: rgba(255,255,255,.08); }

/* Hero */
.jm-blog-hero {
  padding: 44px 0 36px;
  background: radial-gradient(circle at 88% 12%, rgba(255,196,0,.22), transparent 44%), linear-gradient(180deg, #fffdf7 0%, #fdfbf7 100%);
  border-bottom: 1px solid var(--jm-border);
}
.jm-hero-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(290px, 0.95fr); gap: 28px; align-items: center; }
.jm-eyebrow { display: inline-block; font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: #9a6700; margin-bottom: 8px; }
.jm-blog-hero h1 { margin: 0 0 12px; font-size: clamp(26px, 3.4vw, 42px); line-height: 1.15; font-weight: 900; letter-spacing: -0.02em; color: #111315; }
.jm-hero-lead { margin: 0 0 20px; font-size: 15.5px; color: #4b5563; max-width: 640px; }
.jm-hero-search-box {
  position: relative; display: flex; align-items: center; max-width: 640px; margin-bottom: 18px;
}
.jm-hero-search-box input {
  width: 100%; height: 52px; padding: 0 110px 0 18px; border-radius: 14px;
  border: 1.5px solid #dfd4b8; background: #fff; font-size: 14.5px; color: #111;
  box-shadow: 0 6px 20px rgba(17,19,21,.04);
}
.jm-hero-search-box input:focus { outline: none; border-color: var(--jm-yellow-deep); }
.jm-search-count {
  position: absolute; right: 12px; background: var(--jm-yellow-soft); color: #855800;
  font-size: 11.5px; font-weight: 800; padding: 4px 10px; border-radius: 999px;
}
.jm-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.jm-hero-card {
  background: #fff; border: 1.5px solid #eedb9f; border-radius: 20px; padding: 22px 24px;
  box-shadow: 0 14px 36px rgba(17,19,21,.06);
}
.jm-badge-gold { display: inline-block; background: var(--jm-yellow-soft); color: #855800; border: 1px solid #f2d57e; font-size: 11px; font-weight: 900; padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }
.jm-hero-card h3 { margin: 0 0 12px; font-size: 18px; font-weight: 900; }
.jm-stack-list { margin: 0; padding-left: 18px; display: grid; gap: 9px; font-size: 13.5px; }
.jm-stack-list a { color: #111315; text-decoration: underline; text-decoration-color: var(--jm-yellow); text-underline-offset: 3px; }
.jm-hero-card-foot { margin-top: 16px; padding-top: 12px; border-top: 1px solid #f1ece0; display: flex; justify-content: space-between; font-size: 12px; color: var(--jm-muted); }
.jm-hero-card-foot a { color: #9a6700; font-weight: 800; }

/* Category Bar */
.jm-filter-bar-wrap { background: #fff; border-bottom: 1px solid var(--jm-border); padding: 12px 0; }
.jm-filter-bar { display: flex; gap: 8px; flex-wrap: wrap; }
.jm-cat-pill {
  padding: 7px 14px; border-radius: 999px; border: 1px solid #e5decb; background: #fdfbf7;
  color: #374151; font-size: 12.5px; font-weight: 800; cursor: pointer; transition: all .15s;
}
.jm-cat-pill:hover { border-color: var(--jm-yellow-deep); }
.jm-cat-pill.is-active { background: #111315; color: #ffd84d; border-color: #111315; }

/* Sections & Cards */
.jm-section { padding: 42px 0; }
.jm-section-alt { background: #f8f5ec; border-top: 1px solid var(--jm-border); border-bottom: 1px solid var(--jm-border); }
.jm-sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.jm-sec-head h2 { margin: 0; font-size: clamp(21px, 2.5vw, 28px); font-weight: 900; }
.jm-link-arrow { font-size: 13.5px; font-weight: 800; color: #9a6700; }

.jm-featured-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.jm-posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 18px; }
.jm-feat-card, .jm-post-card {
  background: #fff; border: 1px solid var(--jm-border); border-radius: 18px; padding: 20px;
  display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 6px 20px rgba(17,19,21,.035); transition: transform .18s, border-color .18s;
}
.jm-feat-card:hover, .jm-post-card:hover { transform: translateY(-3px); border-color: var(--jm-yellow-deep); }
.jm-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 11.5px; }
.jm-tag-cat { background: var(--jm-yellow-soft); color: #855800; font-weight: 800; padding: 3px 9px; border-radius: 999px; }
.jm-read-time, .jm-date { color: var(--jm-muted); font-weight: 600; font-size: 12px; }
.jm-feat-card h3, .jm-post-card h3 { margin: 0; font-size: 17px; line-height: 1.35; font-weight: 850; color: #111315; }
.jm-feat-card h3 a:hover, .jm-post-card h3 a:hover { color: #9a6700; }
.jm-feat-card p, .jm-post-card p { margin: 0; font-size: 13.5px; color: #4b5563; flex: 1; }
.jm-tag-row { display: flex; gap: 6px; flex-wrap: wrap; }
.jm-mini-tag { font-size: 11px; color: #64748b; background: #f1f5f9; padding: 2px 8px; border-radius: 6px; font-weight: 600; }
.jm-card-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px solid #f3efe4; margin-top: auto; }
.jm-read-more { font-size: 13px; font-weight: 850; color: #111315; }
.jm-read-more:hover { color: #9a6700; }

/* Reviews & Telegram Screenshot Wall */
.jm-reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.jm-review-card {
  background: #fff; border: 1.5px solid #eedb9f; border-radius: 16px; padding: 18px;
  display: flex; flex-direction: column; gap: 10px;
}
.jm-review-badge { align-self: flex-start; background: #dcfce7; color: #166534; font-size: 11.5px; font-weight: 850; padding: 3px 10px; border-radius: 999px; }
.jm-review-quote { margin: 0; font-size: 13.5px; color: #1f2937; font-style: italic; flex: 1; }
.jm-review-author strong { display: block; font-size: 13px; color: #111315; }
.jm-review-author span { font-size: 11.5px; color: var(--jm-muted); }

.jm-screenshots-head { margin: 28px 0 14px; }
.jm-screenshots-head h3 { margin: 0 0 4px; font-size: 18px; font-weight: 900; }
.jm-screenshots-head p { margin: 0; font-size: 13px; color: var(--jm-muted); }
.jm-screenshot-masonry { columns: 4 220px; column-gap: 14px; }
.jm-shot-card {
  break-inside: avoid; margin: 0 0 14px; background: #fff; border: 1px solid var(--jm-border);
  border-radius: 12px; overflow: hidden; cursor: zoom-in; box-shadow: 0 4px 12px rgba(0,0,0,.04);
}
.jm-shot-card.jm-shot-hidden { display: none; }
.jm-shot-card figcaption { padding: 7px 10px; font-size: 11.5px; color: #4b5563; font-weight: 600; }
.jm-feedback-drop-note {
  margin-top: 20px; padding: 16px 20px; border-radius: 14px;
  background: #fffdf5; border: 1.5px dashed #e5ad00; font-size: 13.5px; color: #374151;
}

/* Lightbox */
.jm-lightbox {
  position: fixed; inset: 0; z-index: 9999; background: rgba(11,13,16,.9);
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px;
}
.jm-lightbox[hidden] { display: none !important; }
.jm-lightbox img { max-height: 82vh; max-width: 92vw; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.jm-lightbox p { color: #f3f4f6; font-size: 13.5px; margin-top: 10px; }
.jm-lb-close {
  position: fixed; top: 18px; right: 22px; background: var(--jm-yellow); color: #111;
  border: 0; width: 40px; height: 40px; border-radius: 50%; font-weight: 900; font-size: 18px; cursor: pointer;
}

/* Article Page */
.jm-article-page { padding: 28px 0 54px; }
.jm-breadcrumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--jm-muted); margin-bottom: 16px; }
.jm-breadcrumbs a:hover { color: #9a6700; text-decoration: underline; }
.jm-article-header { max-width: 840px; margin-bottom: 28px; }
.jm-article-meta-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--jm-muted); margin-bottom: 10px; }
.jm-article-header h1 { margin: 0 0 12px; font-size: clamp(24px, 3.2vw, 38px); line-height: 1.18; font-weight: 900; letter-spacing: -0.02em; }
.jm-article-excerpt { margin: 0 0 14px; font-size: 16px; color: #4b5563; }

.jm-article-layout { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(260px, 0.85fr); gap: 30px; align-items: start; }
.jm-article-body { background: #fff; border: 1px solid var(--jm-border); border-radius: 20px; padding: clamp(20px, 3vw, 36px); box-shadow: 0 8px 26px rgba(17,19,21,.035); }
.jm-takeaways-box {
  background: #fffdf5; border: 1.5px solid #f0d78c; border-left: 5px solid var(--jm-yellow-deep);
  border-radius: 14px; padding: 16px 20px; margin-bottom: 24px;
}
.jm-takeaways-title { font-weight: 900; font-size: 14px; color: #855800; margin-bottom: 8px; }
.jm-takeaways-box ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 13.5px; }

.jm-prose-sec { margin-bottom: 26px; }
.jm-prose-sec h2 { margin: 0 0 10px; font-size: 21px; font-weight: 900; color: #111315; }
.jm-prose-sec p { margin: 0 0 12px; font-size: 15px; color: #1f2937; }
.jm-prose-sec ul, .jm-prose-sec ol { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 8px; font-size: 14.5px; color: #1f2937; }
.jm-prose-sec a { color: #9a6700; font-weight: 700; text-decoration: underline; text-decoration-color: var(--jm-yellow); }

.jm-blog-table-wrap { overflow-x: auto; margin: 14px 0; border: 1px solid var(--jm-border); border-radius: 12px; }
.jm-blog-table-wrap table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.jm-blog-table-wrap th { background: #111315; color: #ffd84d; text-align: left; padding: 10px 12px; font-weight: 800; }
.jm-blog-table-wrap td { padding: 10px 12px; border-top: 1px solid #eee8d8; }

.jm-inline-cta {
  margin: 28px 0; padding: 22px; border-radius: 16px;
  background: linear-gradient(120deg, #fffdf5 0%, #fff4cf 100%);
  border: 1.5px solid #e5ad00; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.jm-inline-cta h3 { margin: 4px 0; font-size: 18px; font-weight: 900; }
.jm-inline-cta p { margin: 0; font-size: 13.5px; color: #4b5563; max-width: 520px; }

.jm-faq-sec { margin-top: 28px; }
.jm-faq-sec h2 { font-size: 20px; font-weight: 900; margin-bottom: 12px; }
.jm-faq-list { display: grid; gap: 10px; }
.jm-faq-item { border: 1px solid var(--jm-border); border-radius: 12px; padding: 12px 16px; background: #fdfbf7; }
.jm-faq-item summary { font-weight: 800; font-size: 14px; cursor: pointer; }
.jm-faq-item p { margin: 8px 0 0; font-size: 13.5px; color: #4b5563; }

.jm-prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--jm-border); }
.jm-pn-card { padding: 14px; border-radius: 12px; border: 1px solid var(--jm-border); background: #fdfbf7; display: grid; gap: 4px; }
.jm-pn-card:hover { border-color: var(--jm-yellow-deep); }
.jm-pn-card small { font-size: 11.5px; color: #9a6700; font-weight: 800; }
.jm-pn-card strong { font-size: 13.5px; line-height: 1.35; }
.jm-pn-right { text-align: right; }

/* Article Sidebar */
.jm-article-sidebar { position: sticky; top: 88px; display: grid; gap: 16px; }
.jm-side-box { background: #fff; border: 1px solid var(--jm-border); border-radius: 16px; padding: 18px; }
.jm-side-gold { background: #fffdf5; border-color: #eedb9f; }
.jm-side-title { font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; color: #855800; margin-bottom: 10px; }
.jm-toc-list, .jm-suite-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13px; }
.jm-toc-list a, .jm-suite-links a { color: #374151; font-weight: 650; }
.jm-toc-list a:hover, .jm-suite-links a:hover { color: #9a6700; }

.jm-related-sec { margin-top: 42px; }
.jm-related-sec h2 { font-size: 22px; font-weight: 900; margin-bottom: 16px; }

/* Bottom CTA & Footer */
.jm-cta-banner-sec { padding: 24px 0 46px; }
.jm-cta-banner {
  background: #111315; color: #fff; border-radius: 22px; padding: 30px 32px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  border-bottom: 4px solid var(--jm-yellow);
}
.jm-cta-banner h2 { margin: 4px 0 8px; font-size: clamp(20px, 2.5vw, 28px); font-weight: 900; }
.jm-cta-banner p { margin: 0; color: #d1d5db; max-width: 600px; font-size: 14px; }
.jm-cta-banner-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.jm-site-footer { background: #111315; color: #d1d5db; padding: 44px 0 24px; border-top: 2px solid var(--jm-yellow); }
.jm-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; margin-bottom: 28px; }
.jm-footer-brand { font-size: 22px; font-weight: 900; color: #fff; margin-bottom: 10px; }
.jm-footer-brand span { color: var(--jm-yellow); }
.jm-footer-desc, .jm-footer-contact { font-size: 13.5px; color: #9ca3af; }
.jm-footer-contact a { color: #ffd84d; }
.jm-site-footer h4 { margin: 0 0 12px; color: #fff; font-size: 14px; font-weight: 800; }
.jm-site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13px; }
.jm-site-footer ul a:hover { color: #ffd84d; }
.jm-footer-bottom { padding-top: 18px; border-top: 1px solid #262a30; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12px; color: #9ca3af; }
.jm-footer-bottom a { color: #ffd84d; }

.jm-empty-box { text-align: center; padding: 36px 20px; background: #fff; border: 1px solid var(--jm-border); border-radius: 16px; }

@media (max-width: 920px) {
  .jm-hero-grid, .jm-article-layout, .jm-footer-grid { grid-template-columns: 1fr; }
  .jm-article-sidebar { position: static; }
  .jm-mobile-nav-btn { display: inline-flex; }
  .jm-primary-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding: 12px 0; }
  .jm-primary-nav.is-open { display: flex; }
  .jm-nav-row { flex-wrap: wrap; padding: 10px 0; }
  .jm-prev-next { grid-template-columns: 1fr; }
}

.jm-btn-outline-dark { border-color: #d6cbb0; color: #111315 !important; background: #fffdf5; }
.jm-btn-outline-dark:hover { border-color: var(--jm-yellow-deep); background: #fff7db; }
