/*
 * Result / admit-card pages (one page per exam, dated updates newest first) - the AI writer's and the editor's
 * "Add update" blocks. Loaded by private/pages/result|admitcard/article*.php. Older hand-made pages do not use
 * these classes and look as before.
 *
 *   div.mmk-upd                 one update (the newest also carries mmk-upd--latest: the highlighted card)
 *     p.mmk-upd-badge           "अपडेट: 14/11/26 · अंतिम निकाल"
 *     h2, p                     the stage and a short text
 *     ul.mmk-facts > li         "<b>label</b> value" pairs
 *     p.mmk-btns > a.mmk-btn    the links (a.mmk-btn--main for the main one)
 *   div.mmk-page-end            after the last update: how to check / download (ol.mmk-howto) and the FAQ (div.mmk-faq: h3 + p)
 */
.mmk-upd { position: relative; margin: 18px 0; padding: 14px 16px 12px 18px; border: 1px solid #e3e8ef; border-left: 4px solid #a9b6c8; border-radius: 4px 12px 12px 4px; background: #fff; }
.mmk-upd h2 { margin: 6px 0 8px; font-size: 1.15rem; font-weight: 700; line-height: 1.4; color: #1b2a3a; }
.mmk-upd p { margin: 0 0 10px; line-height: 1.75; }
.mmk-upd-badge { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 4px !important; padding: 3px 12px; border-radius: 999px; background: #eef2f7; color: #3c4a5c; font-size: .82rem; font-weight: 700; line-height: 1.6 !important; }
.mmk-upd-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .7; }

/* the newest update: the card a reader sees first */
.mmk-upd--latest { border-color: #b9d3f2; border-left-color: #0d6efd; background: #f3f8ff; box-shadow: 0 6px 18px rgba(13, 110, 253, .08); }
.mmk-upd--latest .mmk-upd-badge { background: #0d6efd; color: #fff; }
.mmk-upd--latest .mmk-upd-badge::before { opacity: 1; background: #fff; animation: mmk-upd-pulse 1.8s ease-in-out infinite; }
@keyframes mmk-upd-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .mmk-upd--latest .mmk-upd-badge::before { animation: none; } }

/* key facts: label / value pairs in a tidy grid */
.mmk-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px; margin: 4px 0 12px; padding: 0; list-style: none; }
.mmk-facts li { margin: 0; padding: 8px 12px; border: 1px solid #e3e8ef; border-radius: 10px; background: rgba(255, 255, 255, .7); line-height: 1.5; font-size: .95rem; }
.mmk-facts li b { display: block; font-size: .78rem; font-weight: 600; color: #5b6b7f; letter-spacing: .01em; }

/* link buttons instead of "येथे क्लिक करा" */
.mmk-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 6px !important; }
.mmk-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border: 1px solid #0d6efd; border-radius: 999px; background: #fff; color: #0d6efd !important; font-weight: 600; font-size: .92rem; line-height: 1.3; text-decoration: none !important; transition: background .15s, color .15s; }
.mmk-btn::after { content: '\2197'; font-size: .85em; }
.mmk-btn:hover { background: #e7f0ff; }
.mmk-btn--main { background: #0d6efd; color: #fff !important; }
.mmk-btn--main:hover { background: #0b5ed7; }

/* after the updates: how to check / download, and the FAQ */
.mmk-page-end { margin: 22px 0 8px; }
.mmk-page-end h2 { margin: 18px 0 10px; font-size: 1.1rem; font-weight: 700; color: #1b2a3a; }
.mmk-howto { margin: 0 0 14px; padding: 0; list-style: none; counter-reset: mmk-step; }
.mmk-howto li { position: relative; margin: 0 0 8px; padding: 2px 0 2px 40px; line-height: 1.7; counter-increment: mmk-step; }
.mmk-howto li::before { content: counter(mmk-step); position: absolute; left: 0; top: 2px; width: 28px; height: 28px; border-radius: 50%; background: #e7f0ff; color: #0d6efd; font-weight: 700; font-size: .9rem; line-height: 28px; text-align: center; }
/* FAQ: one card, each question with a blue "प्र." mark and its answer under it with a soft "उ." mark.
   #post_body: the article template boxes every h3 (centred, rounded, !important margins) - undone here */
.mmk-faq { margin: 4px 0 16px; border: 1px solid #e3e8ef; border-radius: 14px; background: #fff; overflow: hidden; box-shadow: 0 2px 10px rgba(27, 42, 58, .04); }
.mmk-faq h3, #post_body .mmk-faq h3 { position: relative; margin: 0 !important; padding: 16px 18px 6px 58px !important; border: 0; border-top: 1px solid #eef1f5; border-radius: 0 !important; background: none; font-size: 1.02rem; font-weight: 700; line-height: 1.55; text-align: left; color: #1b2a3a; overflow: visible; }
.mmk-faq h3:first-child, #post_body .mmk-faq h3:first-child { border-top: 0; }
.mmk-faq h3::before { content: 'प्र.'; position: absolute; left: 16px; top: 14px; width: 30px; height: 30px; border-radius: 50%; background: #0d6efd; color: #fff; font-size: .78rem; font-weight: 700; line-height: 30px; text-align: center; }
.mmk-faq h3 + p { position: relative; margin: 0 !important; padding: 2px 18px 16px 58px; line-height: 1.8; color: #3c4a5c; }
.mmk-faq h3 + p::before { content: 'उ.'; position: absolute; left: 16px; top: 0; width: 30px; height: 30px; border-radius: 50%; background: #e7f0ff; color: #0d6efd; font-size: .78rem; font-weight: 700; line-height: 30px; text-align: center; }
.mmk-faq h3:nth-of-type(even), #post_body .mmk-faq h3:nth-of-type(even), .mmk-faq h3:nth-of-type(even) + p { background: #fafcff; }

@media (max-width: 575px) {
  .mmk-upd { padding: 12px 12px 10px 14px; }
  .mmk-btn { flex: 1 1 100%; justify-content: center; }
  .mmk-facts { grid-template-columns: 1fr 1fr; }
  .mmk-faq h3, #post_body .mmk-faq h3 { padding: 14px 14px 6px 50px !important; }
  .mmk-faq h3 + p { padding: 2px 14px 14px 50px; }
  .mmk-faq h3::before, .mmk-faq h3 + p::before { left: 12px; }
}
