/* ==========================================================
   Nice Result – Sarkari Result Portal  |  Front-end styles
   Original design: navy + saffron theme, card based layout
   ========================================================== */
:root {
  --sr-primary: #0f4c81;
  --sr-primary-dark: #0a3459;
  --sr-accent: #f28c28;
  --sr-bg: #f3f6fa;
  --sr-text: #1d2733;
  --sr-muted: #6b7785;
  --sr-border: #dfe5ec;
  --sr-radius: 10px;
  --sr-green: #11845b;
  --sr-red: #c62828;
  --sr-purple: #6a3fb5;
  --sr-teal: #00838f;
  --sr-orange: #e2620e;
  --sr-pink: #c2185b;
  --sr-indigo: #3949ab;
  --sr-brown: #7b5a3c;
}
body { background: var(--sr-bg); color: var(--sr-text); font-family: "Segoe UI", system-ui, -apple-system, "Noto Sans", "Noto Sans Devanagari", Roboto, Arial, sans-serif; font-size: 15px; }
a { color: var(--sr-primary); text-decoration: none; }
a:hover { color: var(--sr-accent); }
.sr-btn-accent { background: var(--sr-accent); color: #fff; border-color: var(--sr-accent); font-weight: 600; }
.sr-btn-accent:hover { background: #d8741a; color: #fff; }

/* Top bar / header */
.sr-topbar { background: var(--sr-primary-dark); color: #cfe0f1; font-size: 13px; padding: 5px 0; }
.sr-topbar a { color: #fff; }
.sr-header { background: linear-gradient(120deg, var(--sr-primary) 0%, #155fa0 60%, #1b74bf 100%); color: #fff; }
.sr-logo { display: flex; align-items: center; gap: 12px; color: #fff; }
.sr-logo:hover { color: #fff; }
.sr-logo-mark { width: 54px; height: 54px; border-radius: 14px; background: var(--sr-accent); display: grid; place-items: center; font-size: 21px; font-weight: 800; color: #fff; letter-spacing: .5px; box-shadow: 0 4px 14px rgba(0,0,0,.2); position: relative; }
.sr-logo-mark::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 9px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.85); }
.sr-logo-text strong { display: block; font-size: 28px; line-height: 1.05; letter-spacing: .3px; }
.sr-logo-text small { display: block; font-size: 12.5px; opacity: .9; letter-spacing: .4px; text-transform: uppercase; }
.sr-search { max-width: 520px; }
.sr-search .form-control { border: 0; padding: .6rem .9rem; }

/* Navbar */
.sr-navbar { background: #fff; border-bottom: 3px solid var(--sr-accent); box-shadow: 0 2px 8px rgba(15,76,129,.08); padding: 0; }
.sr-navbar .nav-link { color: var(--sr-text); font-weight: 600; padding: .8rem .75rem !important; font-size: 14.5px; }
.sr-navbar .nav-link:hover, .sr-navbar .nav-link.active { color: var(--sr-primary); background: #eef4fb; }
.sr-navbar .dropdown-menu { border-top: 3px solid var(--sr-primary); border-radius: 0 0 8px 8px; max-height: 70vh; overflow: auto; }
.sr-navbar .navbar-toggler { border: 0; color: var(--sr-primary); padding: .7rem 0; }

/* Ticker */
.sr-ticker { background: #fff8ef; border-bottom: 1px solid #f5dcc0; overflow: hidden; }
.sr-ticker-label { background: var(--sr-red); color: #fff; font-weight: 700; padding: 7px 12px; white-space: nowrap; font-size: 13px; z-index: 1; }
.sr-ticker-track { overflow: hidden; flex: 1; }
.sr-ticker-move { display: inline-flex; white-space: nowrap; animation: srTicker 60s linear infinite; padding-left: 20px; }
.sr-ticker-move:hover { animation-play-state: paused; }
.sr-ticker-move a { color: var(--sr-text); margin-right: 32px; font-size: 14px; font-weight: 500; }
.sr-ticker-move a:hover { color: var(--sr-red); }
.sr-ticker-move .badge { background: var(--sr-primary); font-weight: 500; }
@keyframes srTicker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .sr-ticker-move { animation: none; } }

/* Ads (AdSense friendly: labelled, separated from content & buttons) */
.ad-slot { text-align: center; margin: 14px auto; max-width: 100%; overflow: hidden; }
.ad-label { display: block; font-size: 10px; color: #98a2ad; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 2px; }
.ad-slot img { max-height: 280px; border-radius: 6px; }
.sr-mobile-ad { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; z-index: 1040; box-shadow: 0 -2px 12px rgba(0,0,0,.15); padding: 4px 4px 2px; }
.sr-mobile-ad .ad-slot { margin: 0; }
.sr-mobile-ad .ad-slot img { max-height: 70px; }
.sr-mobile-ad-close { position: absolute; top: -14px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: #333; color: #fff; line-height: 1; }

/* Hero / breaking */
.sr-hero { background: #fff; border-radius: var(--sr-radius); border: 1px solid var(--sr-border); padding: 16px; }
.sr-breaking { border-left: 5px solid var(--sr-red); }
.sr-breaking h2 { font-size: 16px; color: var(--sr-red); font-weight: 800; text-transform: uppercase; letter-spacing: .5px; }
.sr-breaking li { padding: 6px 0; border-bottom: 1px dashed var(--sr-border); }
.sr-breaking li:last-child { border-bottom: 0; }
.sr-feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 991px) { .sr-feature-grid { grid-template-columns: repeat(2, 1fr); } }
.sr-feature-tile { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 74px; border-radius: 10px; color: #fff; font-weight: 700; font-size: 14px; padding: 10px; line-height: 1.3; box-shadow: 0 3px 10px rgba(0,0,0,.08); transition: transform .15s; }
.sr-feature-tile:hover { color: #fff; transform: translateY(-2px); }
.sr-feature-tile:nth-child(8n+1) { background: linear-gradient(135deg, #0f4c81, #1b74bf); }
.sr-feature-tile:nth-child(8n+2) { background: linear-gradient(135deg, #11845b, #23a776); }
.sr-feature-tile:nth-child(8n+3) { background: linear-gradient(135deg, #e2620e, #f28c28); }
.sr-feature-tile:nth-child(8n+4) { background: linear-gradient(135deg, #6a3fb5, #8d63d6); }
.sr-feature-tile:nth-child(8n+5) { background: linear-gradient(135deg, #00838f, #19a5b2); }
.sr-feature-tile:nth-child(8n+6) { background: linear-gradient(135deg, #c2185b, #e04683); }
.sr-feature-tile:nth-child(8n+7) { background: linear-gradient(135deg, #3949ab, #5c6bc0); }
.sr-feature-tile:nth-child(8n+8) { background: linear-gradient(135deg, #7b5a3c, #a17a55); }

/* Section boxes (homepage) */
.sr-box { background: #fff; border-radius: var(--sr-radius); border: 1px solid var(--sr-border); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 2px 6px rgba(16,40,70,.04); }
.sr-box-title { margin: 0; color: #fff; font-size: 17px; font-weight: 700; padding: 11px 14px; text-align: center; letter-spacing: .3px; }
.sr-box-list { list-style: none; margin: 0; padding: 6px 14px; flex: 1; }
.sr-box-list li { padding: 7px 0 7px 18px; border-bottom: 1px solid #eef1f5; position: relative; font-size: 14.5px; line-height: 1.4; }
.sr-box-list li:last-child { border-bottom: 0; }
.sr-box-list li::before { content: "\f105"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 2px; top: 8px; color: var(--sr-accent); font-size: 12px; }
.sr-box-list a { color: #13406b; font-weight: 500; }
.sr-box-list a:hover { color: var(--sr-red); text-decoration: underline; }
.sr-box-more { display: block; text-align: center; padding: 9px; font-weight: 700; font-size: 13.5px; background: #f6f9fc; border-top: 1px solid var(--sr-border); }
.sr-new { background: var(--sr-red); font-size: 10px; animation: srBlink 1.2s infinite; }
.blink { animation: srBlink 1.2s infinite; }
@keyframes srBlink { 50% { opacity: .45; } }
.sr-box-blue .sr-box-title { background: var(--sr-primary); }
.sr-box-green .sr-box-title { background: var(--sr-green); }
.sr-box-red .sr-box-title { background: var(--sr-red); }
.sr-box-purple .sr-box-title { background: var(--sr-purple); }
.sr-box-teal .sr-box-title { background: var(--sr-teal); }
.sr-box-orange .sr-box-title { background: var(--sr-orange); }
.sr-box-pink .sr-box-title { background: var(--sr-pink); }
.sr-box-indigo .sr-box-title { background: var(--sr-indigo); }
.sr-box-brown .sr-box-title { background: var(--sr-brown); }

/* Popular jobs table */
.sr-table-card { background: #fff; border-radius: var(--sr-radius); border: 1px solid var(--sr-border); overflow: hidden; }
.sr-table-card .table { margin: 0; }
.sr-table-card thead th { background: var(--sr-primary); color: #fff; font-weight: 600; border: 0; }

/* Breadcrumb */
.sr-breadcrumb { background: #fff; border: 1px solid var(--sr-border); border-radius: 8px; padding: 8px 14px; margin-bottom: 14px; font-size: 13.5px; }

/* Post page */
.sr-post { background: #fff; border-radius: var(--sr-radius); border: 1px solid var(--sr-border); padding: 22px; }
.sr-post h1 { font-size: 26px; font-weight: 800; color: var(--sr-primary-dark); line-height: 1.3; }
.sr-post-meta { color: var(--sr-muted); font-size: 13.5px; }
.sr-short-info { background: #f0f6fc; border-left: 4px solid var(--sr-primary); padding: 12px 14px; border-radius: 6px; margin: 14px 0; }
.sr-overview th { width: 38%; background: #f7f9fc; font-weight: 600; }
.sr-section { margin-top: 20px; }
.sr-section > h2, .sr-content h2 { font-size: 19px; font-weight: 700; color: #fff; background: var(--sr-primary); padding: 9px 14px; border-radius: 6px; margin: 22px 0 12px; }
.sr-content h3 { font-size: 17px; font-weight: 700; color: var(--sr-primary-dark); border-bottom: 2px solid var(--sr-accent); padding-bottom: 5px; margin: 18px 0 10px; display: inline-block; }
.sr-content h4, .sr-content h5 { font-size: 16px; font-weight: 700; color: var(--sr-primary-dark); margin-top: 14px; }
.sr-content p { line-height: 1.75; }
.sr-content img { max-width: 100%; height: auto; border-radius: 6px; }
.sr-content iframe { max-width: 100%; }
.sr-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 767px) { .sr-two-col { grid-template-columns: 1fr; } }
.sr-info-card { border: 1px solid var(--sr-border); border-radius: 8px; overflow: hidden; }
.sr-info-card > h2 { margin: 0; font-size: 17px; font-weight: 700; padding: 9px 12px; color: #fff; background: var(--sr-green); }
.sr-info-card.fee > h2 { background: var(--sr-orange); }
.sr-info-card > div { padding: 10px 14px; }
.sr-info-card ul { padding-left: 1.1rem; margin: 0; }
.sr-info-card li { padding: 3px 0; }
.sr-info-card .table-responsive { margin: -10px -14px; }
.sr-info-card table { margin: 0; }

.sr-table { font-size: 14.5px; }
.sr-table th { background: #eaf2fb; color: var(--sr-primary-dark); font-weight: 700; }
.sr-table-dates th { background: #e7f6ef; color: #0c5f41; }
.sr-table-fee th { background: #fff1e5; color: #9a4a08; }
.sr-table-vacancy th { background: #efe9fa; color: #4a2b85; }
.sr-list { padding-left: 1.2rem; }
.sr-list li { padding: 3px 0; }
.sr-list li::marker { color: var(--sr-accent); }

.sr-notice { background: #fff8e6; border: 1px solid #f4d48b; border-left: 5px solid #f0a500; border-radius: 6px; padding: 12px 14px; margin: 14px 0; }
.sr-notice p:last-child { margin-bottom: 0; }

.sr-btn { display: inline-block; padding: 9px 18px; border-radius: 6px; font-weight: 700; color: #fff !important; margin: 3px 4px 3px 0; text-decoration: none !important; font-size: 14.5px; transition: filter .15s; }
.sr-btn:hover { filter: brightness(1.1); }
.sr-btn-apply { background: var(--sr-green); }
.sr-btn-download { background: var(--sr-primary); }
.sr-btn-website { background: var(--sr-purple); }
.sr-btn-result { background: var(--sr-red); }

.sr-links-table td:first-child { font-weight: 600; width: 50%; }
.sr-links-table td { vertical-align: middle; }
.sr-last-date-alert { background: #fdecea; color: #b71c1c; border-radius: 8px; padding: 10px 14px; font-weight: 600; }

.sr-share .btn { color: #fff; }
.sr-share-wa { background: #25d366; } .sr-share-tg { background: #229ed9; } .sr-share-fb { background: #1877f2; } .sr-share-x { background: #111; }

/* Sidebar */
.sr-widget { background: #fff; border: 1px solid var(--sr-border); border-radius: var(--sr-radius); padding: 14px; margin-bottom: 16px; }
.sr-widget-title { font-size: 16px; font-weight: 700; color: var(--sr-primary-dark); border-bottom: 2px solid var(--sr-accent); padding-bottom: 7px; margin-bottom: 10px; }
.sr-widget-list { list-style: none; padding: 0; margin: 0; }
.sr-widget-list li { padding: 7px 0; border-bottom: 1px dashed var(--sr-border); font-size: 14px; }
.sr-widget-list li:last-child { border-bottom: 0; }
.sr-chip { display: inline-block; background: #eef4fb; color: var(--sr-primary); border-radius: 30px; padding: 3px 11px; font-size: 13px; }
.sr-chip:hover { background: var(--sr-primary); color: #fff; }
.sr-subscribe { background: linear-gradient(140deg, #fff7ee, #fff); }

/* Lists */
.sr-list-wrap { background: #fff; border: 1px solid var(--sr-border); border-radius: var(--sr-radius); }
.sr-list-head { background: var(--sr-primary); color: #fff; padding: 12px 16px; border-radius: var(--sr-radius) var(--sr-radius) 0 0; }
.sr-list-head h1 { font-size: 21px; margin: 0; font-weight: 700; }
.sr-list-item { padding: 12px 16px; border-bottom: 1px solid #eef1f5; }
.sr-list-item:last-child { border-bottom: 0; }
.sr-list-title { font-weight: 600; font-size: 15.5px; color: #13406b; }

/* News */
.sr-news-card { background: #fff; border: 1px solid var(--sr-border); border-radius: var(--sr-radius); overflow: hidden; height: 100%; }
.sr-news-card img { width: 100%; height: 170px; object-fit: cover; }
.sr-news-card .body { padding: 12px 14px; }
.sr-news-card h3 { font-size: 16px; font-weight: 700; line-height: 1.35; }

/* Comments */
.sr-comment { border-bottom: 1px solid #eef1f5; padding: 10px 0; }
.sr-comment .sr-reply { margin-left: 28px; border-left: 3px solid #eaf2fb; padding-left: 12px; margin-top: 8px; }

/* Footer */
.sr-footer { background: #0b2238; color: #b4c4d4; margin-top: 30px; }
.sr-footer a { color: #d9e6f2; }
.sr-footer a:hover { color: var(--sr-accent); }
.sr-footer li { padding: 3px 0; }
.sr-disclaimer { border-top: 1px solid #1f3a55; padding-top: 12px; color: #8ea3b8; }
.sr-copyright { background: #071827; padding: 10px 0; color: #8ea3b8; }
.sr-top-btn { position: fixed; right: 16px; bottom: 90px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--sr-accent); color: #fff; display: none; z-index: 1030; box-shadow: 0 3px 10px rgba(0,0,0,.2); }

/* Auth / account */
.sr-auth { max-width: 460px; margin: 20px auto; }
.sr-card { background: #fff; border: 1px solid var(--sr-border); border-radius: var(--sr-radius); padding: 22px; }
.sr-account-nav .list-group-item.active { background: var(--sr-primary); border-color: var(--sr-primary); }

/* Preview banner */
.sr-preview-bar { position: sticky; top: 0; z-index: 2000; background: #ffcc00; color: #000; text-align: center; padding: 8px; font-weight: 700; }

/* Mobile */
@media (max-width: 575px) {
  body { font-size: 14.5px; }
  .sr-logo-text strong { font-size: 22px; }
  .sr-logo-mark { width: 44px; height: 44px; font-size: 17px; }
  .sr-logo-mark::after { bottom: 7px; left: 10px; right: 10px; }
  .sr-post { padding: 14px; }
  .sr-post h1 { font-size: 21px; }
  .sr-ticker-label { font-size: 11px; padding: 6px 8px; }
  main { padding-bottom: 90px !important; }
}
@media print { .sr-navbar, .sr-ticker, .ad-slot, .sr-footer, .sr-sidebar, .sr-share, .sr-topbar, .sr-mobile-ad { display: none !important; } }
.sr-share .btn-outline-secondary { color: #444; }

/* ===== Audit upgrade: category cards, type templates, discovery pages ===== */
.sr-section-heading { font-size: 17px; font-weight: 800; color: var(--sr-primary-dark); margin: 0 0 10px; }
.sr-section-heading i { color: var(--sr-accent); }
.sr-cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.sr-cat-grid-sm { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1199px) { .sr-cat-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 767px) { .sr-cat-grid, .sr-cat-grid-sm { grid-template-columns: repeat(2, 1fr); } }
.sr-cat-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; background: #fff; border: 1px solid var(--sr-border); border-radius: var(--sr-radius); padding: 14px 8px; color: var(--sr-text); transition: transform .15s, box-shadow .15s; min-width: 0; }
.sr-cat-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(15,76,129,.12); color: var(--sr-primary); }
.sr-cat-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 19px; color: #fff; background: var(--sr-primary); }
.sr-cat-name { font-weight: 700; font-size: 14px; line-height: 1.25; overflow-wrap: anywhere; }
.sr-cat-count { font-size: 12px; color: var(--sr-muted); }
.sr-cat-red .sr-cat-icon { background: var(--sr-red); } .sr-cat-green .sr-cat-icon { background: var(--sr-green); }
.sr-cat-purple .sr-cat-icon { background: var(--sr-purple); } .sr-cat-teal .sr-cat-icon { background: var(--sr-teal); }
.sr-cat-orange .sr-cat-icon { background: var(--sr-orange); } .sr-cat-pink .sr-cat-icon { background: var(--sr-pink); }
.sr-cat-indigo .sr-cat-icon { background: var(--sr-indigo); }

.sr-type-card { border: 1px solid var(--sr-border); border-radius: var(--sr-radius); margin-bottom: 16px; overflow: hidden; background: #fbfdff; }
.sr-type-head { padding: 10px 14px; font-weight: 700; background: #eaf2fb; color: var(--sr-primary-dark); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sr-type-result .sr-type-head { background: #e7f6ef; color: #0c5f41; }
.sr-type-admit .sr-type-head { background: #fff4e6; color: #8a4a06; }
.sr-type-answer .sr-type-head { background: #f1ebfb; color: #4c2a8a; }
.sr-type-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--sr-border); }
.sr-type-facts > div { background: #fff; padding: 9px 14px; min-width: 0; }
.sr-type-facts span { display: block; font-size: 12px; color: var(--sr-muted); text-transform: uppercase; letter-spacing: .3px; }
.sr-type-facts strong { font-size: 14.5px; overflow-wrap: anywhere; }
.sr-type-actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 12px 14px; align-items: center; }
.sr-big-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 8px; color: #fff; font-weight: 700; font-size: 15px; box-shadow: 0 3px 10px rgba(0,0,0,.12); }
.sr-big-btn:hover { color: #fff; filter: brightness(1.08); }
.sr-big-green { background: var(--sr-green); } .sr-big-blue { background: var(--sr-primary); } .sr-big-orange { background: var(--sr-orange); }
@media (max-width: 575px) { .sr-big-btn { flex: 1 1 100%; justify-content: center; } }
.sr-howto ol li { margin-bottom: 4px; }
.sr-org-list .sr-box-list { columns: 2; column-gap: 24px; }
.sr-org-list .sr-box-list li { break-inside: avoid; }
@media (max-width: 575px) { .sr-org-list .sr-box-list { columns: 1; } }
.sr-sitemap .sr-box-list li { font-size: 14px; }
.accordion-button:not(.collapsed) { background: #eaf2fb; color: var(--sr-primary-dark); }

/* ===== v3: user panel, guest saves, PWA ===== */
.min-w-0 { min-width: 0; }
.sr-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--sr-primary); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; flex-shrink: 0; }
.sr-stat { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--sr-border); border-radius: var(--sr-radius); padding: 10px 12px; color: var(--sr-text); height: 100%; }
.sr-stat:hover { box-shadow: 0 4px 12px rgba(15,76,129,.1); color: var(--sr-primary); }
.sr-stat strong { display: block; font-size: 20px; line-height: 1.1; }
.sr-stat small { color: var(--sr-muted); font-size: 12.5px; }
.sr-stat .sr-cat-icon { width: 38px; height: 38px; font-size: 16px; flex-shrink: 0; }
.sr-cat-blue .sr-cat-icon { background: var(--sr-primary); }
.sr-unread { background: #fff8ec; }
.sr-dot { position: absolute; top: -7px; right: -10px; background: var(--sr-red); color: #fff; border-radius: 10px; font-size: 10px; padding: 0 5px; line-height: 15px; font-weight: 700; }
.js-local-save.active, .js-bookmark.active { background: var(--sr-primary); color: #fff; border-color: var(--sr-primary); }
.sr-install { position: fixed; left: 12px; right: 12px; bottom: 76px; z-index: 1040; background: #fff; border: 1px solid var(--sr-border); border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.15); padding: 10px 12px; display: flex; align-items: center; gap: 10px; max-width: 460px; margin: 0 auto; }
.sr-install img { width: 40px; height: 40px; border-radius: 10px; }
@media (min-width: 768px) { .sr-install { bottom: 20px; } }
