/*
Theme Name: Sarkari Job Update
Theme URI: https://example.com/sarkari-job-update
Author: Sarkari Job Update
Description: A fast, responsive government jobs and education news portal inspired by the supplied layout.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: sarkari-job-update
*/

:root {
  --blue: #9b0000;
  --blue-dark: #1e3a8a;
  --red: #ef4444;
  --red-dark: #b91c1c;
  --orange: #f59e0b;
  --green: #16a34a;
  --ink: #0f172a;
  --muted: #6b7280;
  --line: #dbe6fb;
  --page: #f3f6fb;
  --white: #fff;
  --max: 1180px;
  --shadow: 0 10px 24px #0b1f4a12;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--page);
  color: #374151;
  font:
    13px/1.5 Inter,
    Arial,
    Helvetica,
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--red);
}
img {
  max-width: 100%;
  height: auto;
}
.screen-reader-text {
  position: absolute;
  left: -9999px;
}
.wrap {
  width: min(calc(100% - 28px), var(--max));
  margin-inline: auto;
}
.site-header {
  background: linear-gradient(180deg, #c00000 0%, #9b0000 100%);
  color: #fff;
}
.site-header .wrap {
  width: min(100%, var(--max));
}
.brand {
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.site-title {
  display: block;
  color: #fff;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -1.2px;
}
.site-title:hover {
  color: #fff;
}
.site-tagline {
  margin: -2px 0 0;
  font-size: 12px;
  opacity: 0.92;
}
.job-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #93c5fd;
  margin-left: 2px;
}
.social-strip-wrap {
  border: 0;
  background: transparent;
}
.social-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 0;
}
.pill-btn {
  background: #ffffff;
  color: #b00000;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid #ffe0e0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.social-strip a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  line-height: 1;
}
.social-strip a i {
  font-size: 13px;
  width: 14px;
  text-align: center;
}
.social-strip a:hover {
  color: #8f0000;
  background: #fff7f7;
}
.nav-shell {
  background: linear-gradient(180deg, #c00000 0%, #9b0000 100%);
  box-shadow: 0 4px 14px #00000021;
}
.nav-row {
  display: flex;
  align-items: stretch;
}
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  font-weight: 700;
  padding: 16px;
}
.primary-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}
.primary-menu li {
  border-right: 1px solid #ffffff24;
}
.primary-menu a {
  display: block;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 16px 14px;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}
.primary-menu a:hover,
.primary-menu .current-menu-item > a {
  background: #860000;
}
.nav-search {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  background: #0000001f;
}
.nav-search input {
  width: 160px;
  min-width: 0;
  border: 0;
  padding: 8px;
  border-radius: 4px;
  transition: 0.2s;
}
.nav-search:focus-within input {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.nav-search button {
  border: 0;
  background: none;
  color: #fff;
  font-size: 17px;
  cursor: pointer;
}
.main {
  padding: 28px 0 30px;
}
.home-main {
  padding-top: 24px;
}
.featured-strip {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.strip-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.strip-head h1 {
  margin: 0;
  font-size: 20px;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.strip-badge {
  display: inline-block;
  background: var(--red);
  color: #fff;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 0;
}
.featured-card {
  min-height: 92px;
  padding: 12px 14px;
  color: #172d4e;
  background: #f8fafc;
  border: 1px solid #e5edf9;
  border-radius: 8px;
  font-weight: 700;
  transition: 0.2s;
}
.featured-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.featured-card a:hover {
  color: inherit;
  text-decoration: underline;
}
.post-date {
  display: block;
  margin-top: 7px;
  font-size: 11px;
  font-weight: 400;
  opacity: 0.85;
}
.post-date:before {
  content: "▣";
  margin-right: 5px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin: 0 0 16px;
}
.quick-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  min-height: 84px;
  border-radius: 8px;
  padding: 10px 12px;
  color: #fff;
  font-weight: 700;
  box-shadow: var(--shadow);
  transition: 0.2s;
}
.quick-card:hover {
  transform: translateY(-2px);
  color: #fff;
}
.quick-card span {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.9;
}
.quick-1 {
  background: var(--orange);
}
.quick-2 {
  background: var(--blue);
}
.quick-3 {
  background: var(--green);
}
.quick-4 {
  background: #374151;
}
.quick-5 {
  background: var(--red);
}
.quick-6 {
  background: #111827;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.job-box,
.info-box {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.box-title {
  margin: 0;
  background: #374151;
  color: #fff;
  padding: 11px 13px;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.box-title small {
  font-size: 10px;
  font-weight: 600;
  opacity: 0.9;
  text-transform: none;
}
.job-list {
  list-style: none;
  margin: 0;
  padding: 12px 15px 8px;
  min-height: 290px;
}
.job-list li {
  position: relative;
  padding: 0 0 11px 13px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}
.job-list li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--blue);
}
.job-list .post-date {
  color: #7a8490;
  font-size: 10px;
}
.new {
  color: #1ed760;
  font-size: 9px;
  font-style: italic;
  margin-left: 4px;
}
.box-footer {
  text-align: right;
  padding: 0 10px 10px;
}
.category-card {
  display: flex;
  flex-direction: column;
}
.category-card .job-list {
  flex: 1;
}
.category-card .box-footer {
  margin-top: auto;
  padding: 0;
}
.category-card .box-footer .button {
  display: block;
  width: 100%;
  text-align: center;
  border-radius: 0;
  padding: 10px 12px;
}
.button,
.wp-block-button__link,
input[type="submit"] {
  display: inline-block;
  border: 0;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  padding: 8px 15px;
  font-size: 11px;
  cursor: pointer;
}
.button:hover {
  background: var(--red);
  color: #fff;
}
.category-1 .box-title,
.category-4 .box-title,
.category-8 .box-title,
.category-9 .box-title {
  background: #374151;
}
.category-2 .box-title {
  background: var(--orange);
}
.category-3 .box-title {
  background: var(--green);
}
.category-5 .box-title {
  background: var(--blue);
}
.category-6 .box-title {
  background: #111827;
}
.category-7 .box-title {
  background: var(--red);
}
.category-1 .button,
.category-4 .button,
.category-8 .button,
.category-9 .button {
  background: #374151;
}
.category-2 .button {
  background: var(--orange);
}
.category-3 .button {
  background: var(--green);
}
.category-5 .button {
  background: var(--blue);
}
.category-6 .button {
  background: #111827;
}
.category-7 .button {
  background: var(--red-dark);
}
.category-card .button:hover {
  filter: brightness(1.06);
}
.ad {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 86px;
  margin: 18px 0;
  background: #e3ecfa;
  color: #9aa8bc;
  font:
    italic 11px Georgia,
    serif;
  letter-spacing: 1px;
}
.lower-grid {
  margin-top: 0;
}
.content-sections {
  margin-top: 38px;
}
.info-box {
  margin-bottom: 18px;
}
.info-box .box-title {
  text-align: center;
  text-transform: none;
  font-size: 14px;
}
.info-body {
  padding: 14px 17px;
  color: #727272;
}
.info-body p {
  margin: 0 0 9px;
}
.info-body strong {
  color: #555;
}
.site-footer {
  background: linear-gradient(180deg, #c00000 0%, #9b0000 100%);
  color: #fff2f2;
  margin-top: 0;
}
.footer-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 32px 0;
  text-align: center;
}
.footer-brand {
  text-align: center;
}
.footer-brand .site-title {
  font-size: 23px;
}
.site-footer .site-tagline,
.site-footer .footer-copy,
.site-footer .footer-links a,
.site-footer .footer-bottom span {
  color: #ffe8e8;
}
.footer-heading {
  margin: 0 0 10px;
  color: #fff;
  font-size: 12px;
  text-transform: uppercase;
}
.footer-copy {
  font-size: 11px;
}
.socials {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
}
.footer-divider {
  display: inline-block;
  color: #ffe8e8;
  font-size: 20px;
  line-height: 1;
  opacity: 0.9;
}
.site-footer .socials .pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 35px;
  height: 35px;
  padding: 0;
  font-size: 0;
  font-weight: 700;
  border-radius: 20%;
  border: 1px solid #ffd1d1;
  background: transparent;
  color: #fff;
  box-shadow: none;
}
.site-footer .socials .pill-btn i {
  font-size: 16px;
  width: auto;
  text-align: center;
}
.site-footer .socials .pill-btn:hover {
  background: #ffffff17;
  color: #fff;
  border-color: #ffe2e2;
  transform: translateY(-1px);
}
.footer-bottom {
  border-top: 1px solid #ffffff2a;
  padding: 18px 0;
  font-size: 10px;
  background: #00000012;
}
.footer-bottom .wrap {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.footer-links {
  display: flex;
  gap: 16px;
}
.site-footer .footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}
.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 22px;
}
.main-listing .content-layout {
  align-items: start;
  gap: 22px;
}
.listing-page {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.post-list {
  display: grid;
  gap: 14px;
}
.post-card,
article.single-post,
.empty-state,
.comments-area,
.widget {
  background: #fff;
  border: 1px solid #dbe6f7;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 8px 20px #0b1f4a0f;
}
.post-card .entry-title {
  margin-bottom: 8px;
}
.page-hero .entry-title {
  margin-bottom: 6px;
}
.entry-thumb {
  margin: 10px 0 12px;
}
.entry-thumb img {
  border-radius: 8px;
  width: 100%;
  height: auto;
}
.post-card .entry-content {
  margin-bottom: 12px;
  line-height: 1.6;
}
.page-card .entry-content {
  margin-bottom: 0;
}
.post-card .button {
  margin-top: 4px;
}
/* .post-card,
article.single-post,
.widget,
.empty-state {
  background: #fff;
  border: 1px solid #d5dff0;
  padding: 20px;
  margin-bottom: 16px;
} */
.entry-title {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 22px;
}
.entry-title a:hover {
  color: var(--red);
}
.entry-meta {
  color: #8a929d;
  font-size: 11px;
  margin-bottom: 12px;
}
.entry-content {
  font-size: 14px;
}
.entry-content a {
  color: var(--blue);
}
.pagination {
  margin: 22px 0;
}
.sju-pagination .pagination {
  margin: 4px 0 0;
}
.sju-pagination .nav-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}
.sju-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  background: #fff;
  border: 1px solid #cad8ef;
  border-radius: 8px;
  color: #1e3a8a;
  font-size: 12px;
  font-weight: 700;
  transition: 0.2s;
}
.sju-pagination .page-numbers:hover {
  border-color: #9db8e8;
  color: var(--red);
}
.sju-pagination .page-numbers.current {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.sju-pagination .page-numbers.prev,
.sju-pagination .page-numbers.next {
  padding-inline: 14px;
}
.widget-title {
  margin: -16px -16px 14px;
  padding: 9px 12px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
}
.widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.widget li {
  padding: 7px 0;
  border-bottom: 1px solid #edf0f5;
}
.comments-area {
  background: #fff;
  padding: 20px;
  margin-top: 20px;
}
.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccd5e2;
}
.nav-links {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.post-main {
  padding-top: 12px;
  padding-bottom: 12px;
}
.post-main .post-layout { width: min(calc(100% - 28px), var(--max)); }
.post-main .content-layout {
  gap: 10px;
}
.post-main .single-post-card {
  padding: 0;
  margin-top: 0;
  margin-bottom: 10px;
  border-color: #e2e8f0;
  overflow: hidden;
}
.single-head {
  padding: 12px 14px;
  border-bottom: 1px solid #edf2fb;
  background: #f8fbff;
}
.single-cat {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.single-cat:hover {
  color: #fff;
  background: var(--red);
}
.post-main article.single-post .entry-title {
  font-size: 28px;
  line-height: 1.22;
  margin-bottom: 8px;
}
.post-main article.single-post .entry-meta {
  margin: 0;
  font-size: 12px;
}
.single-thumb {
  padding: 10px 12px 4px;
}
.single-thumb img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.post-main article.single-post .entry-content {
  padding: 6px 14px 14px;
  font-size: 15px;
  line-height: 1.65;
}
.post-main article.single-post .entry-content p {
  margin: 0 0 12px;
}
.post-main article.single-post .entry-content h2,
.post-main article.single-post .entry-content h3 {
  color: var(--ink);
  line-height: 1.35;
}
.post-main .post-nav-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
}
.post-main .widget,
.search-main .widget {
  margin-bottom: 10px;
  padding: 14px;
  border-color: #e2e8f0;
}
.post-main .widget-title,
.search-main .widget-title {
  margin: -14px -14px 12px;
  padding: 10px 12px;
  background: #374151;
}
.post-main .comments-area {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px;
  margin-top: 10px;
}
@media (max-width: 1000px) {
  .quick-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .featured-grid,
  .portal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 800px) {
  .content-layout {
    grid-template-columns: 1fr;
  }
  .footer-main {
    flex-wrap: wrap;
    gap: 12px;
  }
  .footer-brand {
    width: 100%;
  }
  .primary-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 10;
    background: var(--red);
    flex-direction: column;
  }
  .nav-shell {
    position: relative;
  }
  .primary-menu.open {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
  .nav-search {
    margin-left: auto;
  }
  .post-main .post-layout { width: min(calc(100% - 28px), var(--max)); }
  .post-main article.single-post .entry-title {
    font-size: 24px;
  }
  .social-strip {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 8px 2px;
  }
  .social-strip a {
    white-space: nowrap;
  }
}
@media (max-width: 560px) {
  .brand {
    min-height: 100px;
  }
  .site-title {
    font-size: 28px;
  }
  .main {
    padding-top: 18px;
  }
  .featured-grid,
  .portal-grid,
  .quick-grid {
    grid-template-columns: 1fr;
  }
  .job-list {
    min-height: auto;
  }
  .footer-main {
    flex-direction: column;
    gap: 10px;
  }
  .footer-divider {
    display: none;
  }
  .footer-bottom .wrap {
    flex-direction: column;
  }
  .nav-search input { width: 140px; }
  .content-sections {
    margin-top: 24px;
  }
  .post-main {
    padding-top: 10px;
  }
  .single-head,
  .post-main article.single-post .entry-content {
    padding-left: 10px;
    padding-right: 10px;
  }
  .single-thumb {
    padding: 8px 8px 2px;
  }
}

/* Shared layout and accessible controls. Keep card styles off WordPress body classes. */
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
.content-layout > *, .nav-row > *, .featured-grid > *, .portal-grid > * { min-width: 0; }
.site-title, .entry-title, .entry-content, .widget, .job-list, .featured-card, .nav-links { overflow-wrap: anywhere; }
.brand { padding: 12px 14px; }
.custom-logo { max-height: 90px; width: auto; }
.nav-row, .primary-menu { flex-wrap: wrap; }
.nav-search { min-height: 48px; }
.nav-search button { min-width: 44px; min-height: 44px; }
.menu-toggle { cursor: pointer; }
.social-strip a { min-height: 44px; flex-shrink: 0; }
.site-footer .socials .pill-btn { width: 44px; height: 44px; }
.socials, .footer-links { flex-wrap: wrap; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.widget { margin-bottom: 16px; border-radius: 10px; }
.widget-title { border-radius: 9px 9px 0 0; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content .wp-block-button__link { color: #fff; text-decoration: none; }
.entry-meta { color: #667085; }
.entry-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 10px; border: 1px solid var(--line); }
.entry-content th { background: #f1f5f9; }
.entry-content pre, .entry-content .wp-block-table { max-width: 100%; overflow-x: auto; }
.entry-content iframe, .entry-content video { max-width: 100%; }
.entry-content blockquote { margin-inline: 0; padding: 12px 18px; border-left: 4px solid var(--blue); background: #f8fafc; }
.comment-form input[type="checkbox"] { width: auto; }
.comment-form textarea { resize: vertical; }
.post-nav-card .nav-links > * { flex: 1; min-width: 0; }
.post-nav-card .nav-next { text-align: right; }
.post-nav-card .nav-links a { display: block; padding: 10px; color: var(--blue); }
.post-nav-card .nav-links a:hover { background: #f1f5f9; }
:focus-visible { outline: 3px solid #9b0000; outline-offset: 3px; }
.site-header a:focus-visible, .site-header button:focus-visible, .site-footer a:focus-visible { outline-color: #fff; }
.skip-link:focus { position: fixed; left: 12px; top: 12px; z-index: 100; padding: 12px 18px; background: #fff; color: var(--ink); }
.primary-menu .sub-menu { list-style: none; padding: 0; margin: 0; background: #9b0000; }
.primary-menu li { position: relative; }
.primary-menu .sub-menu { display: none; position: absolute; min-width: 200px; z-index: 20; }
.primary-menu li:hover > .sub-menu, .primary-menu li:focus-within > .sub-menu { display: block; }
.primary-menu .sub-menu .sub-menu { left: 100%; top: 0; }
.quick-1, .category-2 .box-title, .category-2 .button { background: #92400e; }
.quick-3, .category-3 .box-title, .category-3 .button { background: #15803d; }
.quick-5, .strip-badge, .category-7 .box-title { background: #b91c1c; }
@media (max-width: 800px) {
  .primary-menu { background: #9b0000; max-height: 65vh; overflow-y: auto; }
  .primary-menu .sub-menu, .primary-menu .sub-menu .sub-menu { display: block; position: static; padding-left: 16px; }
  .social-strip { padding-inline: 14px; }
}
@media (max-width: 560px) {
  .post-main .post-layout { width: calc(100% - 28px); }
  .footer-bottom .wrap { align-items: center; text-align: center; }
  .footer-links { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
