/*
Theme Name:   Sarkari Naukri
Theme URI:    https://sarkarinaukriupdatestoday.com
Description:  Fast, mobile-first theme for Sarkari Naukri Updates Today. Needs the "Sarkari Core" plugin.
Version:      1.1.0
Requires at least: 6.4
Requires PHP: 8.1
Author:       Sarkari Naukri Updates Today
License:      GPL-2.0-or-later
Text Domain:  sarkari-theme
*/

/* Sarkari Naukri Updates Today — global design system (mobile-first).
   Navy #0b2a5b + saffron #f28c00, tricolour accents, Hind (body) + Poppins (headings). */

:root {
  --navy: #0b2a5b;
  --navy-2: #133a78;
  --navy-3: #e8eef8;
  --saffron: #f28c00;
  --saffron-2: #ffb347;
  --saffron-3: #fff4e5;
  --green: #138808;
  --white: #ffffff;
  --ink: #1b2430;
  --muted: #5b6676;
  --line: #dde3ec;
  --bg: #f4f6fa;
  --red: #c62828;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(11, 42, 91, 0.08);
  --font-body: 'Hind', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-head: 'Poppins', var(--font-body);
  --bottom-bar: 60px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  padding-bottom: var(--bottom-bar);
}
@media (min-width: 900px) { body { padding-bottom: 0; } }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.25; color: var(--navy); margin: 0 0 .5rem; }
h1 { font-size: 1.45rem; } h2 { font-size: 1.15rem; } h3 { font-size: 1rem; }
@media (min-width: 900px) { h1 { font-size: 1.8rem; } h2 { font-size: 1.3rem; } }
a { color: var(--navy-2); text-decoration: none; }
a:hover { color: var(--saffron); text-decoration: underline; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 12px; }
.tricolour { height: 5px; background: linear-gradient(90deg, var(--saffron) 0 33.33%, var(--white) 33.33% 66.66%, var(--green) 66.66%); }

/* ------------------------------------------------------------------ header */
.site-header { background: var(--navy); color: var(--white); }
.site-header .bar { display: flex; align-items: center; gap: 12px; padding: 10px 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); flex: 1 1 auto; min-width: 0; }
.brand:hover { color: var(--white); text-decoration: none; }
.brand .logo { width: 44px; height: 44px; flex: none; }
.brand .name { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; line-height: 1.1; }
.brand .name span { color: var(--saffron-2); }
.brand .tag { font-size: .78rem; opacity: .85; }
.search-form { display: flex; flex: 1 1 100%; order: 3; }
.search-form input { flex: 1; border: 0; border-radius: 8px 0 0 8px; padding: 9px 12px; min-width: 0; }
.search-form button { border: 0; background: var(--saffron); color: var(--white); padding: 0 16px; border-radius: 0 8px 8px 0; font-weight: 600; cursor: pointer; }
@media (min-width: 900px) {
  .search-form { flex: 0 1 380px; order: 0; }
  .brand .name { font-size: 1.35rem; }
}
.main-nav { background: var(--navy-2); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; overflow-x: auto; scrollbar-width: none; }
.main-nav ul::-webkit-scrollbar { display: none; }
.main-nav a { display: block; color: var(--white); padding: 10px 14px; white-space: nowrap; font-weight: 600; font-size: .95rem; }
.main-nav a:hover, .main-nav a.active { background: var(--saffron); color: var(--white); text-decoration: none; }

/* ------------------------------------------------------------------ chips, ticker, tiles */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0; scrollbar-width: thin; }
.chip { flex: none; border: 1px solid var(--line); background: var(--white); color: var(--navy); border-radius: 999px; padding: 4px 12px; font-size: .88rem; white-space: nowrap; }
.chip:hover, .chip.active { background: var(--navy); color: var(--white); border-color: var(--navy); text-decoration: none; }

.ticker { display: flex; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 10px 0; min-height: 40px; }
.ticker .label { flex: none; background: var(--red); color: var(--white); font-weight: 700; padding: 8px 12px; font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; }
.ticker .track { overflow: hidden; flex: 1; }
.ticker .move { display: inline-flex; gap: 36px; white-space: nowrap; padding-left: 100%; animation: ticker 45s linear infinite; }
.ticker:hover .move { animation-play-state: paused; }
.ticker a { color: var(--ink); font-weight: 500; }
@keyframes ticker { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .ticker .move { animation: none; padding-left: 12px; overflow-x: auto; } }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(6, 1fr); gap: 12px; } }
.tile { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 2px; min-height: 84px; padding: 10px 6px; border-radius: var(--radius); color: var(--white); font-weight: 700; font-family: var(--font-head); font-size: .9rem; box-shadow: var(--shadow); background: var(--navy); }
.tile:nth-child(2n) { background: var(--saffron); }
.tile:nth-child(3n) { background: var(--green); }
.tile .ico { font-size: 1.5rem; line-height: 1; }
.tile .cnt { font-size: .75rem; font-weight: 500; opacity: .9; font-family: var(--font-body); }
.tile:hover { color: var(--white); text-decoration: none; transform: translateY(-2px); }

/* ------------------------------------------------------------------ layout */
.page { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 12px auto 24px; }
@media (min-width: 900px) { .page { grid-template-columns: minmax(0, 1fr) 320px; } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card + .card { margin-top: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--navy); color: var(--white); padding: 9px 14px; }
.card-head h2, .card-head h3 { color: var(--white); margin: 0; font-size: 1.02rem; }
.card-head a { color: var(--saffron-2); font-size: .85rem; font-weight: 600; }
.card-head.saffron { background: var(--saffron); }
.card-head.green { background: var(--green); }
.card-body { padding: 12px 14px; }

.cols-3 { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 700px) { .cols-3 { grid-template-columns: repeat(3, 1fr); } .cols-3 .card + .card { margin-top: 0; } }
.cols-3 + .cols-3 { margin-top: 16px; }

.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li { border-bottom: 1px dashed var(--line); padding: 8px 14px; }
.post-list li:last-child { border-bottom: 0; }
.post-list a { font-weight: 500; color: var(--ink); }
.post-list a:hover { color: var(--saffron); }
.post-list .meta { display: block; font-size: .8rem; color: var(--muted); }
.badge { display: inline-block; font-size: .68rem; font-weight: 700; padding: 1px 6px; border-radius: 4px; vertical-align: middle; margin-left: 4px; text-transform: uppercase; }
.badge.new { background: var(--red); color: var(--white); animation: blink 1.4s ease-in-out infinite; }
.badge.sample { background: #6a1b9a; color: var(--white); }
@keyframes blink { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .badge.new { animation: none; } }
.empty { color: var(--muted); padding: 14px; font-size: .9rem; }

/* ------------------------------------------------------------------ tables */
.tabs { display: flex; gap: 4px; overflow-x: auto; padding: 8px 8px 0; background: var(--navy-3); }
.tabs button { flex: none; border: 0; background: transparent; padding: 8px 12px; border-radius: 8px 8px 0 0; font-weight: 600; color: var(--navy); cursor: pointer; }
.tabs button[aria-selected='true'] { background: var(--white); color: var(--saffron); }
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.data th, table.data td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
table.data th { background: var(--navy-3); color: var(--navy); font-family: var(--font-head); font-weight: 600; }
table.data tr:nth-child(even) td { background: #fafbfd; }
table.kv th { width: 45%; }

/* ------------------------------------------------------------------ post detail */
.post-head { padding: 16px 14px; border-bottom: 3px solid var(--saffron); }
.post-head .sub { color: var(--muted); font-size: .9rem; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.summary { font-size: 1.02rem; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 12px 0; }
@media (min-width: 700px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact { background: var(--saffron-3); border-left: 4px solid var(--saffron); border-radius: 6px; padding: 8px 10px; }
.fact .k { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.fact .v { font-weight: 700; color: var(--navy); }
.section { padding: 14px; border-top: 1px solid var(--line); }
.section h2 { font-size: 1.08rem; border-left: 4px solid var(--saffron); padding-left: 8px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 8px; padding: 10px 16px; font-weight: 700; cursor: pointer; text-decoration: none; min-height: 44px; }
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.btn-primary { background: var(--saffron); color: var(--white); }
.btn-primary:hover { color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { color: var(--white); }
.btn-outline { background: var(--white); color: var(--navy); border: 2px solid var(--navy); }
.btn-whatsapp { background: #25d366; color: #0b2a17; }
.btn-telegram { background: #229ed9; color: var(--white); }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.steps { padding-left: 1.2rem; margin: 0; }
.steps li { margin: 4px 0; }
.notice { background: #fff8e1; border: 1px solid #ffe08a; border-radius: 8px; padding: 10px 12px; font-size: .9rem; }
.notice.sample { background: #f3e5f5; border-color: #ce93d8; }

/* ------------------------------------------------------------------ breadcrumbs, pagination */
.crumbs { font-size: .85rem; color: var(--muted); margin: 10px 0 0; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.crumbs li + li::before { content: '›'; margin-right: 4px; color: var(--muted); }
.pager { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 14px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; background: var(--white); padding: 0 10px; }
.pager .current { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ------------------------------------------------------------------ sidebar, forms */
.sidebar .card { margin-bottom: 16px; }
.sidebar .card + .card { margin-top: 0; }
.link-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.form { display: grid; gap: 10px; }
.form label { font-weight: 600; font-size: .9rem; display: grid; gap: 4px; }
.form input, .form textarea, .form select { border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; width: 100%; background: var(--white); }
.form textarea { min-height: 120px; resize: vertical; }
.form .error { color: var(--red); font-size: .82rem; font-weight: 500; }
.form .ok { color: var(--green); font-weight: 600; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------------------------------------------ ads: reserved space avoids layout shift */
.ad-slot { display: flex; align-items: center; justify-content: center; background: repeating-linear-gradient(45deg, #f7f8fb, #f7f8fb 10px, #f1f3f7 10px, #f1f3f7 20px); border: 1px dashed var(--line); border-radius: var(--radius); color: #9aa4b2; font-size: .75rem; margin: 12px 0; overflow: hidden; }
.ad-slot.live { background: none; border: 0; }

/* ------------------------------------------------------------------ FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 10px 14px; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.faq p { margin: 8px 0 0; color: var(--ink); }

/* ------------------------------------------------------------------ footer + mobile bottom bar */
.site-footer { background: var(--navy); color: #d5def0; margin-top: 24px; font-size: .9rem; }
.site-footer .cols { display: grid; grid-template-columns: 1fr; gap: 18px; padding: 24px 0; }
@media (min-width: 700px) { .site-footer .cols { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h3 { color: var(--saffron-2); font-size: .95rem; }
.site-footer a { color: #d5def0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.12); padding: 12px 0; font-size: .8rem; text-align: center; }
.bottom-bar { position: fixed; left: 0; right: 0; bottom: 0; height: var(--bottom-bar); background: var(--white); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); z-index: 50; box-shadow: 0 -2px 10px rgba(0,0,0,.06); }
.bottom-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: .7rem; color: var(--navy); font-weight: 600; gap: 2px; }
.bottom-bar a .i { font-size: 1.2rem; line-height: 1; }
.bottom-bar a.active { color: var(--saffron); }
.bottom-bar a:hover { text-decoration: none; }
@media (min-width: 900px) { .bottom-bar { display: none; } }

/* ------------------------------------------------------------------ WordPress */
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; width: auto; height: auto; clip: auto; background: var(--white); padding: 8px 12px; border-radius: 8px; }
.entry-content > :first-child { margin-top: 0; }
.entry-content h2 { margin-top: 1.2rem; }
.entry-content ul, .entry-content ol { padding-left: 1.3rem; }
.muted-small { color: var(--muted); font-size: .85rem; }
.intro { color: var(--muted); margin: 0; }
.tab-panel[hidden] { display: none; }
.sidebar .post-list li { padding: 8px 12px; }
.chip .n { color: var(--muted); font-size: .8em; }
.chip:hover .n, .chip.active .n { color: inherit; }
.ads-auto { min-height: 0; }
.alignleft { float: left; margin: 0 1rem 1rem 0; } .alignright { float: right; margin: 0 0 1rem 1rem; } .aligncenter { display: block; margin: 0 auto 1rem; }

/* ------------------------------------------------------------------ UI refresh (v1.1) */
/* menu lines up with the page content */
.main-nav ul.container { margin: 0 auto; padding: 0 12px; }
.main-nav a { border-radius: 0; }
.page { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .page { grid-template-columns: minmax(0, 1fr) 320px; } }

/* today strip */
.today { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding: 14px 0 2px; }
.today h1 { font-size: 1.15rem; margin: 0; }
.today h1 span { color: var(--muted); font-weight: 600; font-size: .9em; }
.today p { margin: 0; color: var(--muted); font-size: .9rem; }
.today strong { color: var(--green); }
.today a { color: var(--red); font-weight: 600; }
@media (max-width: 699px) { .today h1 span { display: none; } }

/* ticker: two copies, moves half its width → seamless loop, full from the first frame */
.ticker .move { padding-left: 0; gap: 0; animation: ticker 50s linear infinite; }
.ticker .set { display: inline-flex; gap: 36px; padding-right: 36px; }
.ticker .track { padding-left: 14px; }
.ticker a::before { content: '▸ '; color: var(--saffron); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker .move { animation: none; } .ticker .set[aria-hidden] { display: none; } }

/* tiles: a little depth */
.tile { transition: transform .15s ease, box-shadow .15s ease; }
.tile:hover { box-shadow: 0 6px 18px rgba(11, 42, 91, .18); }

/* home columns: equal height, "All N updates" pinned at the bottom */
.col-card { display: flex; flex-direction: column; }
.col-card .post-list { flex: 1; }
.col-card .more { display: block; padding: 9px 14px; border-top: 1px solid var(--line); font-size: .85rem; font-weight: 600; background: #fafbfd; }
.col-card .more:hover { background: var(--saffron-3); text-decoration: none; }
.card-head h2 { font-size: 1rem; }
.card-head.red { background: var(--red); }

/* lists */
.post-list li { transition: background .12s ease; }
.post-list li:hover { background: #f7f9fd; }
.post-list a { line-height: 1.4; }
.post-list .meta { margin-top: 2px; }
.badge.soon, .badge.today { background: #fff4e5; color: #b26a00; border: 1px solid #ffd59a; }
.badge.closed { background: #eceff1; color: #546e7a; }
.closing .days { font-weight: 700; color: var(--navy); }
.closing .days.soon, .closing .days.today { color: var(--red); }

/* job page */
.type-pill { display: inline-block; background: var(--navy-3); color: var(--navy); font-weight: 600; font-size: .8rem; border-radius: 999px; padding: 2px 10px; margin-bottom: 6px; }
.fact .left { font-size: .78rem; font-weight: 600; color: var(--green); }
.fact.deadline-soon, .fact.deadline-today { background: #fff0f0; border-left-color: var(--red); }
.fact.deadline-soon .left, .fact.deadline-today .left { color: var(--red); }
.fact.deadline-closed { background: #f1f3f5; border-left-color: #90a4ae; }
.fact.deadline-closed .left { color: #546e7a; }
.section h2 { margin-bottom: .7rem; }
table.data td a { font-weight: 600; }

/* FAQ: chevron instead of the default triangle */
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--saffron); font-weight: 700; font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: '–'; }

/* footer: no empty band under short pages */
html, body { min-height: 100%; }
body { display: flex; flex-direction: column; min-height: 100vh; }
body > .page, body > .container.page { flex: 1 0 auto; }
.site-footer { margin-top: auto; }
/* header keeps the page side margin on phones */
.site-header .bar { padding: 10px 12px; }
