/*
Theme Name: JobsPlane Child
Theme URI: https://jobsplane.in/
Description: Custom child theme for JobsPlane (Sarkari Naukri portal) — professional portal layout inspired by top Indian govt-job sites. Original design and code; JobsPlane branding throughout. Premium typography via free Google Fonts (Oswald, Roboto, PT Serif).
Author: JobsPlane
Template: generatepress
Version: 1.0.4
License: GNU General Public License v2 or later
Text Domain: jobsplane-child
*/

/* ============ Design tokens ============ */
:root {
  --maroon: #A50A2F;
  --maroon-dark: #7A0A22;
  --maroon-deep: #8E0B28;
  --black: #1A1A1A;
  --blue: #0000CC;
  --red: #CC0000;
  --red-bright: #EB0505;
  --green: #2E7D32;
  --green-light: #388E3C;
  --magenta: #D63384;
  --orange: #E8722A;
  --navy: #1B3A6B;
  --olive: #9E9D24;
  --bright-blue: #0066CC;
  --footer-bg: #1A1D29;
  --accent-orange: #F39C12;
  --grey-border: #CCCCCC;
  --accordion-bg: #E8EEF6;
  --body-text: #222222;
  /* Premium font stacks (Google Fonts, free) */
  --font-brand: 'Oswald', 'Arial Narrow', Arial, sans-serif;
  --font-ui: 'Roboto', Arial, Helvetica, sans-serif;
  --font-serif: 'PT Serif', Georgia, 'Times New Roman', serif;
}

/* ============ Base ============ */
body {
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.7;
  color: var(--body-text);
  background: #ffffff;
  margin: 0;
}
a { color: var(--blue); }
a:hover { color: var(--red); }
.jp-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 15px 30px;
}

/* ============ Header ============ */
.jp-header {
  background: linear-gradient(180deg, var(--maroon-deep) 0%, var(--maroon) 55%, #961028 100%);
  border-bottom: 3px solid var(--maroon-dark);
  box-shadow: 0 2px 10px rgba(0,0,0,0.28);
}
.jp-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 15px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.jp-logo img { max-height: 64px; width: auto; display: block; }
.jp-brand { flex: 1; text-align: center; }
.jp-site-name {
  font-family: var(--font-brand);
  color: #ffffff;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  line-height: 1.1;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.35);
}
.jp-site-name a { color: #ffffff; text-decoration: none; }
.jp-site-url {
  font-family: var(--font-ui);
  color: #ffffff;
  font-size: 15px;
  letter-spacing: 2px;
  margin-top: 4px;
}

/* ============ Nav ============ */
.jp-nav {
  background: var(--black);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
  border-top: 2px solid var(--maroon);
}
.jp-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  align-items: center;
}
ul.jp-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  flex: 1;
}
ul.jp-menu > li { position: relative; }
ul.jp-menu > li > a {
  display: block;
  font-family: var(--font-ui);
  color: #ffffff;
  text-decoration: none;
  padding: 12px 16px;
  font-size: 17px;
  font-weight: 600;
  text-transform: capitalize;
  border-right: 1px solid #333333;
  transition: background 0.15s ease;
}
ul.jp-menu > li > a:hover { background: var(--maroon); color: #fff; }
ul.jp-menu ul.sub-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  background: var(--black);
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 200px;
  z-index: 200;
}
ul.jp-menu li:hover > ul.sub-menu { display: block; }
ul.jp-menu ul.sub-menu a {
  display: block;
  font-family: var(--font-ui);
  color: #fff;
  text-decoration: none;
  padding: 10px 16px;
  font-size: 15px;
  border-top: 1px solid #333;
}
ul.jp-menu ul.sub-menu a:hover { background: var(--maroon); }
.jp-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 26px;
  padding: 8px 12px;
  cursor: pointer;
}
.jp-search-icon { color: #fff; font-size: 18px; padding: 10px; text-decoration: none; }
.jp-search-row { display: none; background: #fff; border-bottom: 2px solid var(--maroon); padding: 10px 15px; }
.jp-search-row.open { display: block; }
.jp-search-row form { max-width: 1100px; margin: 0 auto; display: flex; gap: 8px; }
.jp-search-row input[type="search"] { flex: 1; padding: 10px; font-size: 15px; border: 1px solid var(--grey-border); font-family: var(--font-ui); }
.jp-search-row button { background: var(--maroon); color: #fff; border: none; padding: 10px 20px; font-weight: 700; cursor: pointer; font-family: var(--font-ui); }

/* ============ Homepage ============ */
.jp-home-h1 {
  font-family: var(--font-serif);
  text-align: center;
  color: var(--blue);
  font-size: 28px;
  font-weight: 700;
  margin: 6px 0 8px;
}
.jp-welcome {
  font-family: var(--font-ui);
  text-align: center;
  color: var(--red-bright);
  font-weight: 700;
  font-size: 17px;
  margin: 0 0 10px;
}
.jp-app-links {
  font-family: var(--font-ui);
  text-align: center;
  font-size: 15px;
  margin-bottom: 14px;
}
.jp-app-links a { margin: 0 8px; }
.jp-pills { text-align: center; margin: 0 0 18px; }
.jp-pill {
  display: inline-block;
  font-family: var(--font-ui);
  color: #fff !important;
  font-weight: 500;
  font-size: 15px;
  padding: 10px 24px;
  border-radius: 999px;
  text-decoration: none !important;
  margin: 4px 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.jp-pill:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.28); }
.jp-pill.green { background: linear-gradient(180deg, #4CAF50, #43A047); }
.jp-pill.red { background: linear-gradient(180deg, #E53935, #D32F2F); }
.jp-pill.blue { background: linear-gradient(180deg, #1E88E5, #1565C0); }

/* Announcement grid */
.jp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 0 0 22px;
}
.jp-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-ui);
  color: #fff !important;
  font-weight: 400;
  font-size: 15px;
  text-transform: capitalize;
  text-decoration: none !important;
  padding: 20px 10px;
  border-radius: 8px;
  min-height: 74px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.jp-grid a:hover { transform: translateY(-2px); box-shadow: 0 5px 14px rgba(0,0,0,0.28); }
.jp-grid a.g-olive { background: linear-gradient(180deg, #ABAC2C, var(--olive)); }
.jp-grid a.g-navy { background: linear-gradient(180deg, #23467F, var(--navy)); }
.jp-grid a.g-orange { background: linear-gradient(180deg, #F07F36, var(--orange)); }
.jp-grid a.g-maroon { background: linear-gradient(180deg, #B81E3B, var(--maroon)); }
.jp-grid a.g-red { background: linear-gradient(180deg, #F04438, #E53935); }
.jp-grid a.g-green { background: linear-gradient(180deg, #388E3C, var(--green)); }
.jp-grid a.g-magenta { background: linear-gradient(180deg, #E0449A, var(--magenta)); }
.jp-grid a.g-blue { background: linear-gradient(180deg, #0B78DD, var(--bright-blue)); }

/* Category columns */
.jp-streams {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 26px;
}
.jp-stream-head {
  background: linear-gradient(180deg, #B81E3B 0%, var(--maroon) 100%);
  color: #fff;
  text-align: center;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 26px;
  padding: 8px 10px;
  margin: 0 0 8px;
  border-radius: 4px 4px 0 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.15);
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.jp-stream-head a { color: #fff; text-decoration: none; }
.jp-stream ul { list-style: disc; margin: 0 0 6px 20px; padding: 0; }
.jp-stream ul li { margin-bottom: 7px; font-size: 17px; font-family: var(--font-ui); font-weight: 500; }
.jp-stream ul li a { text-decoration: underline; }
.jp-view-more {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  color: #ffffff !important;
  background: linear-gradient(180deg, #B81E3B, var(--maroon));
  padding: 5px 16px;
  border-radius: 999px;
  text-decoration: none !important;
  margin-top: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.jp-view-more:hover { color: #ffffff !important; background: var(--maroon-dark); }

/* SEO block + FAQ */
.jp-seo h2 {
  font-family: var(--font-serif);
  color: var(--maroon);
  font-size: 23px;
  font-weight: 700;
  margin: 1.4em 0 0.5em;
}
.jp-faq { margin: 10px 0 20px; }
.jp-faq h2 { font-family: var(--font-serif); }
.jp-faq details { border: 1px solid var(--grey-border); margin-bottom: 8px; border-radius: 4px; }
.jp-faq summary {
  font-family: var(--font-ui);
  background: var(--accordion-bg);
  padding: 10px 14px;
  font-weight: 500;
  font-size: 17px;
  cursor: pointer;
}
.jp-faq details div { padding: 10px 14px; font-size: 16px; }
.jp-disclaimer {
  border-top: 2px solid var(--maroon);
  margin-top: 22px;
  padding-top: 14px;
  font-size: 15px;
  color: #444;
}
.jp-disclaimer h2 { font-family: var(--font-serif); color: var(--maroon); font-size: 21px; }

/* ============ Breadcrumb ============ */
.jp-breadcrumb {
  font-family: var(--font-ui);
  border: 1px solid var(--grey-border);
  padding: 8px 14px;
  font-size: 15px;
  margin-bottom: 14px;
  background: #fafafa;
}

/* ============ Single post ============ */
.jp-title-table { width: 100%; border-collapse: collapse; margin: 0 0 14px; }
.jp-title-table td { border: 1px solid var(--grey-border); padding: 10px 14px; vertical-align: top; }
.jp-title-table .jp-label {
  font-family: var(--font-ui);
  color: var(--red);
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  width: 170px;
  background: #fdf7f7;
}
.jp-post-title { font-family: var(--font-serif); font-size: 22px; font-weight: 700; color: #111; margin: 0; }
.jp-post-date { font-family: var(--font-ui); font-weight: 500; font-size: 15px; }
.jp-short-info { font-size: 16px; }

.jp-social-row { text-align: center; margin: 4px 0 16px; }
.jp-soc {
  display: inline-block;
  font-family: var(--font-ui);
  color: #fff !important;
  font-weight: 500;
  font-size: 15px;
  padding: 10px 26px;
  border-radius: 999px;
  text-decoration: none !important;
  margin: 4px 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.25);
  transition: transform 0.15s ease;
}
.jp-soc:hover { transform: translateY(-2px); }
.jp-soc.telegram { background: linear-gradient(180deg, #1A9AD6, #0088CC); }
.jp-soc.whatsapp { background: linear-gradient(180deg, #2BD46B, #25D366); }

.jp-featured { margin: 0 0 18px; }
.jp-featured img { width: 100%; height: auto; border-radius: 6px; display: block; }

.jp-post-content { font-size: 16px; }
.jp-post-content h2 {
  font-family: var(--font-serif);
  color: var(--red);
  font-size: 23px;
  font-weight: 700;
  margin: 1.4em 0 0.6em;
}
.jp-post-content h3 {
  font-family: var(--font-serif);
  color: var(--red);
  font-size: 20px;
  font-weight: 700;
  margin: 1.2em 0 0.5em;
}
.jp-post-content h2.jp-links-head { color: var(--green); text-align: center; }
.jp-post-content table { border-collapse: collapse; width: 100%; margin: 0 0 1.2em; }
.jp-post-content th, .jp-post-content td { border: 1px solid var(--grey-border); padding: 9px 12px; }
.jp-post-content table th, .jp-post-content table thead th, .jp-post-content figure table th {
  font-family: var(--font-ui);
  background: linear-gradient(180deg, var(--green-light), var(--green)) !important;
  color: #ffffff !important;
  font-weight: 500;
  font-size: 16px;
  text-align: center;
}
.jp-post-content table tbody th {
  background: #E8F5E9 !important;
  color: #1B5E20 !important;
}
/* Header row green even when built with <td> cells (Gutenberg variations) — never inside .jp-table boxes */
.jp-post-content figure.wp-block-table table thead th,
.jp-post-content figure.wp-block-table table thead td,
.jp-post-content figure.wp-block-table table tbody tr:first-child th,
.jp-post-content figure.wp-block-table table tbody tr:first-child td {
  font-family: var(--font-ui);
  background: linear-gradient(180deg, var(--green-light), var(--green)) !important;
  color: #ffffff !important;
  font-weight: 500;
  font-size: 16px;
  text-align: center;
}
.jp-post-content a { font-weight: 600; }
.jp-red { color: var(--red); font-weight: 700; }

/* Important links table */
.jp-links-table td.jp-link-label { font-family: var(--font-ui); font-weight: 700; color: var(--magenta); width: 40%; }
.jp-links-table td a { font-weight: 700; }
.jp-promo-row td {
  text-align: center;
  font-family: var(--font-ui);
  font-weight: 700;
  color: #fff;
  padding: 10px !important;
}
.jp-promo-row.magenta td { background: var(--magenta); }
.jp-promo-row.green td { background: var(--green); }
.jp-promo-row.blue td { background: var(--bright-blue); }
.jp-promo-row td a { color: #fff !important; }

/* ============ Archive ============ */
.jp-archive-h1 {
  font-family: var(--font-serif);
  text-align: center;
  color: var(--blue);
  font-size: 24px;
  font-weight: 700;
  margin: 6px 0;
}
.jp-archive-h2 {
  font-family: var(--font-serif);
  text-align: center;
  color: var(--red);
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 14px;
}
.jp-archive-list { list-style: disc; margin: 0 0 20px 22px; padding: 0; }
.jp-archive-list li { margin-bottom: 7px; font-size: 16px; font-family: var(--font-ui); }
.jp-archive-list li a { text-decoration: underline; }
.jp-last-date { color: #666; font-size: 13px; font-family: var(--font-ui); }

/* ============ Footer ============ */
.jp-footer { background: var(--footer-bg); color: #fff; margin-top: 10px; }
.jp-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 26px 15px 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.jp-footer h6 {
  font-family: var(--font-ui);
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--accent-orange);
  display: inline-block;
  color: #fff;
}
.jp-footer ul { list-style: none; margin: 0; padding: 0; }
.jp-footer ul li { margin-bottom: 7px; font-size: 15px; font-family: var(--font-ui); text-transform: capitalize; }
.jp-footer ul li a { color: #ddd; text-decoration: none; }
.jp-footer ul li a:hover { color: #fff; text-decoration: underline; }
.jp-copyright {
  font-family: var(--font-serif);
  text-align: center;
  font-weight: 700;
  font-size: 20px;
  padding: 14px 15px;
  border-top: 1px solid #333;
  color: #fff;
}
#jp-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: #444;
  color: #fff;
  border: none;
  border-radius: 6px;
  width: 44px;
  height: 44px;
  font-size: 20px;
  cursor: pointer;
  display: none;
  z-index: 300;
}

/* ============ Legacy .jp-* classes (existing posts + playbook) ============ */
.jp-h2 {
  font-family: var(--font-ui);
  background: linear-gradient(180deg, #233682, #1B237E);
  color: #ffffff;
  padding: 10px 16px;
  font-size: 1.2em;
  font-weight: 500;
  border-radius: 6px;
  margin: 1.6em 0 0.9em;
  box-shadow: 0 2px 5px rgba(0,0,0,0.18);
}
.jp-table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; }
.jp-table th {
  font-family: var(--font-ui);
  background: #E8EDF3;
  border: 1px solid #B9C6DC;
  padding: 10px 12px;
  text-align: left;
  font-weight: 500;
}
.jp-table td { border: 1px solid #B9C6DC; padding: 9px 12px; }
.jp-links-box {
  background: #FFF3E0;
  border: 2px solid #F57C00;
  border-radius: 8px;
  padding: 6px 16px 16px;
  margin: 1.2em 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.jp-links-box .jp-h2 { background: linear-gradient(180deg, var(--green-light), var(--green)); margin-left: -16px; margin-right: -16px; border-radius: 5px 5px 0 0; }
.jp-links-table td:first-child { font-family: var(--font-ui); font-weight: 700; color: #C2185B; }
.jp-links-table a { color: #1565C0; font-weight: 700; }
.jp-cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 1em 0 1.4em; }
.jp-btn {
  display: inline-block;
  font-family: var(--font-ui);
  color: #ffffff !important;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.jp-btn-wa { background: linear-gradient(180deg, #2BD46B, #25D366); }
.jp-btn-tg { background: linear-gradient(180deg, #1A9AD6, #229ED9); }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .jp-grid { grid-template-columns: repeat(2, 1fr); }
  .jp-streams { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .jp-nav-toggle { display: block; }
  ul.jp-menu { display: none; flex-direction: column; width: 100%; }
  ul.jp-menu.open { display: flex; }
  ul.jp-menu > li > a { border-right: none; border-top: 1px solid #333; font-size: 15px; }
  ul.jp-menu ul.sub-menu { position: static; }
  .jp-site-name { font-size: 26px; letter-spacing: 2px; }
  .jp-logo img { max-height: 48px; }
  .jp-title-table .jp-label { width: 120px; }
  .jp-home-h1 { font-size: 22px; }
  .jp-stream-head { font-size: 20px; }
  .jp-copyright { font-size: 16px; }
}
@media (max-width: 600px) {
  .jp-grid { grid-template-columns: 1fr 1fr; }
  .jp-streams { grid-template-columns: 1fr; }
  .jp-footer-inner { grid-template-columns: 1fr; }
  .jp-site-name { font-size: 22px; }
  .jp-home-h1 { font-size: 20px; }
}
