/*
 Theme Name: GeneratePress NRI Child (Safe v5.3)
 Template: generatepress
 Version: 5.3
 Description: Cleaned & fixed CSS. Balanced responsive headings, mobile full-width, button pagination, category/tag/search lists.
 Author: Umesh
*/

/* ===== Vars ===== */
:root{
  --nri-border:#333;
  --nri-blue:#0b5ed7;
  --nri-soft:#f6f7f9;
  --nri-black:#08090a;
  --primary:#0b5ed7;
  --primary-600:#0a4ec0;
  --ink:#0f172a;
  --muted:#475569;
  --bg:#f7f9fc;
  --card:#ffffff;
  --ring:#dbeafe;
  --border:#e5e7eb;
  --radius:16px;
  --shadow:0 6px 18px rgba(2,8,23,.06);
}

/* ===== Layout Utils ===== */
.nri-wrap{margin:0 auto;padding:0px;}
.nri-row{display:flex;flex-wrap:wrap;gap:12px;margin:12px 0;}
.nri-col{flex:1 1 48%;background:#fff;border:2px solid var(--nri-black);border-radius:8px;padding:12px}
.nri-col h3{
  margin:-12px -12px 10px -12px;background:#4b206e;color:#fff;
  padding:8px 10px;font-size:20px;font-weight:700;text-align:center;
}

/* Single: meta under title */
.nri-meta{font-size:13px;color:#af0c0c;margin:0px 0px 14px 5px; font-weight:500; border-bottom: 2px solid #eee; padding-bottom:8px;}
.nri-meta strong{font-weight:700;color:#000;}
.p-meta{font-size:13px;color:#af0c0c;margin:0px 0px 14px 5px; font-weight:500; padding-bottom:8px; margin-lef:10px;}
.p-meta strong{font-weight:700;color:#000;}

/* ===== Category/Tag/Search Block ===== */
.nri-cat-block{width:100%;margin:20px auto;border-radius:8px;overflow:hidden;background:#fff}
.nri-cat-block .head{
  background:#0b5ed7;color:#fff;font-weight:700;padding:12px 20px;
  font-size:16px;text-align:center;
}
.nri-cat-list{list-style:none;margin:0;padding:0}
.nri-cat-list li{padding:12px 16px;border-bottom:1px dashed var(--nri-border);font-size:18px}
.nri-cat-list li:last-child{border-bottom:none}
.nri-cat-list li a{text-decoration:none;color:#165af3;}
.nri-cat-list li a:hover{color:var(--nri-blue)}

/* NEW badge */
.nri-badge-new{
  display:inline-block;background:#ffeb3b;color:#000;font-size:10px;font-weight:700;
  padding:1px;border-radius:3px;margin-left:8px;border:1px solid var(--nri-border);vertical-align:middle;
}

/* Small meta + description under list items */
.nri-meta-mini{font-size:13px;color:#e30c0c;margin:0 0 6px}
.nri-meta-mini .sep{opacity:.6;margin:0 6px}
.nri-desc{color:#111;margin:4px 0 12px}

/* ===== Pagination (buttons + centered) ===== */
.nav-links{text-align:center;padding-bottom:5px}
.navigation.pagination{display:flex;justify-content:center;margin:30px 0 40px}
.page-numbers{
  display:inline-block;margin:0 6px;padding:8px 16px;background:#0b5ed7;color:#fff;
  font-weight:600;font-size:15px;border-radius:4px;text-decoration:none;border:1px solid #0b5ed7;transition:.2s;
}
.page-numbers:hover{background:#fff;color:#0b5ed7}
.page-numbers.current{background:#111;border-color:#111;color:#fff}
.page-numbers.prev,.page-numbers.next{background:#0b5ed7;border-color:#0b5ed7}
.page-numbers.prev:hover,.page-numbers.next:hover{background:#fff;color:#0b5ed7}

/* ===== Headings (balanced responsive) ===== */
h1.entry-title{font-size:32px;line-height:1.3;margin-bottom:8px;color:#000eee;}
h2{font-size:26px;line-height:1.3;margin:0px 0 10px}
h3{font-size:22px;line-height:1.3;margin:14px 0 8px;font-weight:600}

/* ===== Tag pills on single ===== */
.post-tags{margin-left:24px;padding-top:12px;border-top:1px solid #e6e6e6;font-size:14px}
.post-tags strong{margin-right:8px;color:#333}
.post-tags a{
  display:inline-block;margin:3px 6px 3px 0;padding:5px 10px;background:#dbdbdb;
  border-radius:5px;text-decoration:none;color:#0a6ebd;line-height:1;border:2px solid #000;
}
.post-tags a:hover{background:#0a6ebd;color:#fff}

/* ===== Tiles (404/landing helpers) ===== */
#mhp-tiles{--gap:12px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--gap);margin:12px 0 20px}
#mhp-tiles a{
  display:flex;align-items:center;justify-content:center;padding:12px 10px;min-height:56px;border-radius:16px;
  color:#fff;font-weight:700;text-align:center;text-decoration:none;box-shadow:0 2px 8px rgba(0,0,0,.06);word-break:break-word;
}
#mhp-tiles .g{background:#1a7a3c}
#mhp-tiles .b{background:#0b5ed7}
#mhp-tiles .r{background:#c62828}
#mhp-tiles .p{background:#7b1fa2}
#mhp-tiles .k{background:#111}
#mhp-tiles .o{background:#6b7a1a}
#mhp-tiles .t{background:#00838f}
#mhp-tiles br{display:none!important}

/* ===== NRI boxes (black head, bordered) ===== */
.nri-boxgrid{display:flex;flex-wrap:wrap;gap:14px;margin:14px 0}
.nri-boxgrid .col{flex:1 1 32%;display:flex}
.nri-box{width:100%;background:#fff;border:2px solid #111;border-radius:2px;overflow:hidden}
.nri-box .head{
  background:#111;color:#fff;font-weight:700;padding:10px 12px;font-size:16px;
  text-transform:none;letter-spacing:.2px;text-align:center;
}
.nri-box .body{padding:8px 0}
.nri-box ul{margin:0;padding:0;list-style:none}
.nri-box li{margin:0;padding:8px 12px;border-bottom:1px solid #111}
.nri-box li:last-child{border-bottom:0}
.nri-box a{color:#1a73e8;text-decoration:none}
.nri-box a:hover{text-decoration:underline}

/* ===== Theme compat helpers ===== */
.one-container .site-content{max-width:1200px;margin:0 auto}
.entry-content:not(:first-child),.entry-summary:not(:first-child),.page-content:not(:first-child){margin-top:1em}
.site-content{display:block}

/* ===== Utilities ===== */
.umesh{background:#0a0a6e;border-left:2px solid red;padding:3px;color:#FFF;text-align:center;font-size:18px;font-family:Times New Roman;font-weight:700}
.umesh2{border-left:2px solid red;padding:3px;color:#000;text-align:center;font-size:14px;font-family:Times New Roman;font-weight:700;border-bottom:1px solid #000;border-right:1px solid #000;border-top:1px solid #000}
.umesh3{border:1px solid #000;padding:6px;color:#000;font-size:20px}

/* ===== Mobile / Small screens ===== */
@media (max-width:900px){
 #mhp-tiles{grid-template-columns:repeat(2,1fr);}
}

@media (max-width:768px){
  /* site edge-to-edge feel with safe padding */
  .nri-wrap{max-width:100%!important;padding-left:8px;padding-right:8px}
  .nri-col{flex:1 1 100%;margin-bottom:12px} /* was 48% → now full width on mobile */
  .inside-article,.entry-content{padding-left:8px;padding-right:8px}
  .nri-boxgrid {gap:12px;}
  .nri-boxgrid .col {flex:1 1 100%;}
  .nri-box {width:100%;}
}

@media (max-width:768px){
   /* smaller headings */
  h1.entry-title{font-size:24px;line-height:1.4}
  h2{font-size:20px;line-height:1.4}
  h3{font-size:18px;line-height:1.4}
}
 

  /* list items slightly smaller */
  .nri-cat-list li{font-size:16px; font-weight: 500;}

  .nri-meta-mini{font-size:12px}
  


@media (max-width:520px){
  #mhp-tiles a{padding:10px;min-height:50px;border-radius:12px;font-size:14px}
}
.separate-containers .comments-area, .separate-containers .inside-article, .separate-containers .page-header, .separate-containers .paging-navigation
 {
    padding: 12px;
}
.footmenu{font-weight:600;}
.footmenu a{text-decoration:none;}

/* Q: और Question को एक ही लाइन में रखें */
.qsm-qline .qprefix { font-weight:700; }
/* QSM जो भी अंदर span/div बनाता है, उसे inline जैसा ट्रीट करो */
.qsm-qline * { display:inline; margin:0; padding:0; }
/* नंबर/टाइटल spans भी एक लाइन में */
.qsm-question-title-description,
.qsm-result-question-title,
.mlw_qmn_question_number { display:inline; }

.qsm-text-correct-option,
.qsm_user_correct_answer {
    display: inline !important;
}

.mlw_qmn_question .qmn_user_incorrect_answer{
    display:inline !important; }

.mlw_qmn_question_number::before {
    content: "Q-";
    font-weight: bold;
    margin-right: 1px; }
    
.quiz_section
 {
    display: block;
    border: 0;
    margin: 0;
    padding: 15px 0 15px 0;
    border-bottom: 1px solid #cfcfcf !important;
}

/* QSM का स्वागत/इंट्रो/कॉन्टैक्ट/स्टार्ट सेक्शन छुपाएँ */
.qsm-quiz-container .qsm-quiz-welcome,
.qsm-quiz-container .qsm-quiz-intro,
.qsm-quiz-container .qsm-contact-form,
.qsm-quiz-container .qsm-start-container,
.qsm-quiz-container .qsm-start-btn { display:none !important; }

/* QSM Home or category */


/* Base */
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--ink);font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif}
a{color:inherit;text-decoration:none}
.container{max-width:1200px;margin:auto;padding:0px}
.btn{
  display:inline-block;padding:12px 18px;border-radius:10px;
  background:var(--primary);color:#fff;font-weight:700;
  box-shadow:var(--shadow);transition:transform .15s ease, background .2s ease
}
a.btn{color:#f5f5f5;}
.btn:hover{background:var(--primary-600);transform:translateY(-1px)}
.btn-outline{color:var(--primary);border:1px solid var(--primary)}

/* Hero */
.hero{
  background:var(--primary);color:#fff;border-radius:var(--radius);
  padding:28px;text-align:center;box-shadow:var(--shadow)
}
.hero h1{margin:0 0 10px;font-size:clamp(22px,3.5vw,36px)}
.hero p{margin:0 0 18px;color:#e6efff}
.hero .actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}

/* Section headers */
.section{margin-top:28px}
.section h2{margin:0 0 14px;font-size:clamp(18px,2.6vw,26px)}

/* Categories */
.grid{display:grid;gap:14px;grid-template-columns:repeat(2,1fr)}
@media(min-width:860px){.grid{grid-template-columns:repeat(3,1fr)}}
.card{
  background:var(--card);border:1px solid var(--border);border-radius:14px;
  padding:16px;box-shadow:var(--shadow);min-height:112px;display:flex;flex-direction:column;justify-content:space-between
}
.card .title{display:flex;align-items:center;gap:10px;font-weight:700}
.badge{
  width:34px;height:34px;border-radius:50%;
  display:grid;place-items:center;background:var(--ring);color:var(--primary);font-weight:800;
  flex:0 0 auto
}
.card .sub a{color:#fff;font-weight:600; background:#000eee; padding:3px 8px; border-radius:14px;}
.sub-info{color:green}
/* Popular table */
.table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--border);
  border-radius:12px;background:#fff;box-shadow:var(--shadow)}
table{width:100%;min-width:640px;border-collapse:collapse}
thead th{
  background:var(--primary);color:#fff;text-align:left;
  padding:12px;border-right:1px solid rgba(255,255,255,.25)
}
tbody td{padding:12px;border-top:1px solid var(--border)}
tbody tr:nth-child(odd){background:#fafcff}

/* Benefits */
.benefits{display:grid;gap:14px;grid-template-columns:1fr}
@media(min-width:720px){.benefits{grid-template-columns:repeat(3,1fr)}}
.benefit{
  background:#fff;border:1px solid var(--border);border-radius:14px;padding:16px;box-shadow:var(--shadow)
}
.benefit h3{margin:0 0 8px;font-size:18px}
.benefit p{margin:0;color:var(--muted);font-size:14px}

/* Register banner */
.cta{
  margin-top:22px;background:#e9f1ff;border:1px solid #cfe0ff;border-radius:16px;padding:20px;text-align:center;
  box-shadow:var(--shadow)
}
.cta h3{margin:0 0 12px}
.cta .btn{padding:12px 22px}

/* Footer */
.footer{color:#64748b;text-align:center;padding:24px 0}
/* 1) Global table min-width हटाएँ (सिर्फ वहीं रखें जहाँ Table-Wrapper है) */
table { min-width: 0 !important; }

/* होमपेज वाली स्क्रोल-टेबल के लिए ही min-width चाहिए तो wrapper के साथ scope करें */
.table-wrap > table { min-width: 640px; }

/* QSM रिज़ल्ट/समरी टेबल मोबाइल-फ्रेंडली */
.qsm-quiz-container .qsm-results-page table,
.qsm-quiz-container .qsm_result_page table,
.qsm-quiz-container .qsm-results table {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  table-layout: auto;
}

.qsm-quiz-container .qsm-results-page td,
.qsm-quiz-container .qsm-results-page th {
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}


.qsm-quiz-container .qsm-results-page table.nri-qa-table {
  width: 100% !important;
  min-width: 0 !important;
}
#nri-results .nri-pager{
    display:flex;gap:12px;align-items:center;justify-content:center;margin:24px 0
  }
  #nri-results .nri-pager button{
    padding:10px 14px;border:1px solid #333;background:#fff;cursor:pointer;border-radius:8px
  }
  #nri-results .nri-pager button[disabled]{opacity:.5;cursor:not-allowed}
  #nri-results .nri-pager .nri-info{min-width:120px;text-align:center;font-weight:600}

.qsm-res-nav{
  display:flex; gap:10px; align-items:center; justify-content:center;
  margin:14px 0;
}
.qsm-res-btn{
  background:#0b5ed7; color:#fff; border:none;
  padding:8px 14px; border-radius:8px; cursor:pointer; font-weight:600;
}
.qsm-res-btn:disabled{ opacity:.5; cursor:not-allowed; }
.qsm-res-info{ font-weight:600; color:#0b1f3a; }
.mc-btn{background:#000; color:#fff; padding:5px; text-align:center; display: inline-block;}
.mc-head{margin: 20px 0 10px 0px;font-size: 20px;font-weight: 700;border-bottom: 2px solid #000eee;padding-bottom: 4px; color: #fff;
}
.mc-head2{margin: 20px 0 10px 0px;font-size: 20px;font-weight: 700;border-bottom: 2px solid #000;padding-bottom: 0px; color: #fff;
}
/*hdquiz css class */
/* ===== HD Quiz: Force radio look (kill toggle) ===== */

/* 0) किसी भी built-in switch UI को छुपा दो */
.hdq_label_answer .hdq_toggle,
.hdq_label_answer .hdq_switch,
.hdq_label_answer .hdq_slider,
.hdq_label_answer .hdq_ios,
.hdq_label_answer::before,
.hdq_label_answer::after {
  /* हम अपने pseudo elements आगे बनाएँगे,
     इसलिए plugin वाले हटाओ */
}

/* 1) Answer row साफ-सुथरा कार्ड */
.hdq_question {background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:16px;margin:16px 0;}
.hdq_answers {margin-top:8px;}
.hdq_row {margin-bottom:10px;}

/* 2) Label को clickable pill, input invisible but present */
.hdq_label_answer{
  position: relative;
  display: block;
  padding: 10px 12px 10px 40px; /* बाएँ जगह रेडियो के लिए */
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: box-shadow .15s, border-color .15s, background .15s;
}
.hdq_label_answer:hover{background:#f8fafc;border-color:#dbeafe;box-shadow:0 1px 6px rgba(2,6,23,.06);}

/* 3) असली input रहे—पर दिखे नहीं; accessibility बची रहे */
.hdq_label_answer input{
  position: absolute !important;
  inset: 0 !important;           /* पूरी label area clickable */
  opacity: 0 !important;
  margin: 0 !important;
}

/* 4) हमारा "radio" — outer circle */
.hdq_label_answer:before{
  content:"";
  position:absolute;
  left:14px; top:50%;
  width:18px;height:18px;
  border:2px solid #0b5ed7;
  border-radius:50%;
  background:#fff;
  transform: translateY(-50%);
}

/* 5) checked होने पर inner dot दिखाओ */
.hdq_label_answer:has(input:checked):after{
  content:"";
  position:absolute;
  left:18px; top:50%;
  width:10px;height:10px;
  border-radius:50%;
  background:#0b5ed7;
  transform: translateY(-50%);
}

/* 6) checked state highlight */
.hdq_label_answer:has(input:checked){
  border-color:#0b5ed7;
  background:#f0f7ff;
  font-weight:600;
  color:#0b5ed7;
}

/* 7) Wrapper + heading tweaks */
.hdq_quiz_wrapper{max-width:780px;margin:0 auto;font-size:16px;line-height:1.6;}
.hdq_question_heading{font-weight:700;margin:0 0 10px;}
.hdq_question_number{color:#0b5ed7;font-weight:700;margin-right:6px;}

/* 8) Results box */
.hdq_results_wrapper, .hdq_results{
  background:#0b5ed7; color:#fff; padding:12px 14px; border-radius:12px; text-align:center; margin:16px 0;
}

/* 9) Mobile */
@media (max-width:480px){
  .hdq_quiz_wrapper{padding:0 10px;}
  .hdq_label_answer{padding-left:40px;}
}


/* End hdquiz css class */

