/*
Theme Name: Jobriya
Theme URI: https://jobriya.in/
Author: Jobriya
Author URI: https://jobriya.in/
Description: Original premium theme for Jobriya — government jobs, results, admit cards, answer keys, syllabus and preparation updates. Clean layout with dark navy header and hero, live ticker, closing-soon highlights, featured jobs, department and state browsing, top organizations, popular exams, quick links, subscribe block, and detailed job pages with stats, tables and a sticky apply bar.
Version: 1.3.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jobriya
Tags: blog, news, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
  --navy: #0b1a33;
  --navy-2: #0f2a5e;
  --blue: #1d4ed8;
  --blue-2: #2563eb;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --red: #dc2626;
  --red-dark: #be123c;
  --green: #15803d;
  --green-bg: #dcfce7;
  --bg: #f3f6fb;
  --card: #ffffff;
  --line: #e2e8f0;
  --line-soft: #eef2f7;
  --text: #16233a;
  --muted: #64748b;
  --muted-2: #cbd5e1;
  --blue-soft: #dbeafe;
  --orange-soft: #ffedd5;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 4px 14px rgba(15, 36, 64, 0.07);
  --shadow-lg: 0 12px 32px rgba(15, 36, 64, 0.16);
  --wrap: 1180px;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif; line-height: 1.6; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 0.6em; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.screen-reader-text:focus { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; background: #fff; color: var(--text); padding: 10px 14px; z-index: 100; display: inline-block; }
:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }

/* Top bar + header */
.topbar { background: var(--navy); color: var(--muted-2); font-size: 12px; }
.topbar-inner { max-width: var(--wrap); margin: 0 auto; padding: 8px 16px; display: flex; justify-content: space-between; gap: 12px; }
.topbar a { color: #fff; }
.site-header { background: var(--navy); border-bottom: 0; }
.header-inner { max-width: var(--wrap); margin: 0 auto; padding: 16px; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 11px; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo-mark { background: linear-gradient(135deg, var(--orange), var(--orange-dark)); color: #fff; font-weight: 900; font-size: 28px; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 12px; box-shadow: 0 6px 14px rgba(249, 115, 22, 0.35); }
.logo-text { font-size: 26px; font-weight: 900; letter-spacing: 0.3px; line-height: 1; }
.logo-text em { font-style: normal; color: var(--orange); }
.logo-tag { font-size: 12px; color: var(--muted); }
.header-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn { display: inline-block; border: 0; cursor: pointer; font-weight: 700; border-radius: 20px; padding: 8px 14px; font-size: 13px; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-orange { background: var(--orange); color: #fff; }

/* Primary navigation */
.primary-nav { background: #0a1730; color: #fff; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.primary-nav ul { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; list-style: none; display: flex; gap: 6px; flex-wrap: wrap; }
.primary-nav li { margin: 0; }
.primary-nav a { display: block; color: #fff; padding: 11px 10px; font-size: 14px; font-weight: 600; }
.primary-nav a:hover, .primary-nav .current-menu-item a { background: rgba(255, 255, 255, 0.18); border-radius: 6px; text-decoration: none; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--navy-2), var(--blue) 60%, var(--blue-2)); color: #fff; text-align: center; padding: 28px 16px; }
.hero h1 { font-size: 34px; margin: 12px 0 6px; }
.pills { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.pills a, .pills span { background: rgba(255, 255, 255, 0.16); color: #fff; padding: 6px 11px; border-radius: 20px; font-size: 12px; }
.hero-stats { display: flex; gap: 28px; justify-content: center; margin-top: 18px; font-size: 13px; }
.hero-stats strong { display: block; font-size: 19px; }

/* Ticker */
.ticker { background: #fff; border-bottom: 1px solid var(--line); padding: 10px 0; font-size: 13px; }
.ticker-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; display: flex; gap: 12px; align-items: center; }
.ticker-label { color: var(--red); font-weight: 800; white-space: nowrap; }
.ticker-track { overflow: hidden; white-space: nowrap; flex: 1; }
.ticker-track span { display: inline-block; padding-left: 28px; animation: ticker-move 28s linear infinite; }
.ticker:hover .ticker-track span, .ticker:focus-within .ticker-track span { animation-play-state: paused; }
@keyframes ticker-move { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track span { animation: none; } }

/* Sections */
.section { padding: 18px 0 4px; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.section-head h2 { margin: 0; font-size: 21px; }
.more-link { font-size: 13px; font-weight: 700; }

/* Closing soon */
.closing { background: linear-gradient(90deg, #fff1f2, #fff7ed); border: 1px solid #fecdd3; border-radius: var(--radius); padding: 14px; margin-bottom: 18px; }
.closing-title { display: flex; justify-content: space-between; gap: 12px; color: var(--red-dark); font-weight: 800; }
.closing-card { flex: 1; min-width: 230px; background: #fff; border-radius: 10px; padding: 12px; box-shadow: var(--shadow); }
.closing-card .meta { font-size: 13px; color: var(--muted); margin: 4px 0 10px; }

/* Card grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.card { background: var(--card); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.card-head h3 { margin: 0; font-size: 17px; }
.badge { font-size: 11px; padding: 3px 7px; border-radius: 20px; font-weight: 700; white-space: nowrap; }
.badge-new { background: var(--blue-soft); color: var(--blue); }
.badge-hot { background: var(--orange-soft); color: var(--orange-dark); }
.badge-live { background: var(--green-bg); color: var(--green); }
.post-list { list-style: none; margin: 10px 0 0; padding: 0; font-size: 13px; line-height: 1.7; }
.post-list li { margin-bottom: 8px; }
.post-list .post-date { display: block; color: var(--muted); font-size: 12px; }

/* Jobs + sidebar */
.job-row { border: 1px solid var(--line-soft); border-radius: 10px; padding: 11px; margin-bottom: 9px; }
.job-row .meta { font-size: 13px; color: var(--muted); }

/* Widgets */
.widget-area { margin-top: 18px; }
.widget { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 14px; }
.widget .widget-title { font-size: 17px; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { margin-bottom: 8px; font-size: 14px; }

/* Generic post lists */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.post-card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); padding-bottom: 14px; }
.post-card .post-body { padding: 12px 14px 0; }
.post-card h3 { font-size: 17px; }
.post-card h3 a { color: var(--text); }
.post-card .meta { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.post-card .excerpt { font-size: 14px; color: var(--muted); }
.post-thumb { display: block; background: var(--bg); }
.post-thumb img { display: block; width: 100%; height: auto; }

/* Single */
.single-wrap { max-width: 860px; margin: 22px auto; padding: 0 16px 90px; }
.single-article { background: #fff; border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
.single-article h1 { font-size: 30px; }
.single-meta { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.single-featured { margin-bottom: 16px; }
.single-featured img { border-radius: 10px; }
.single-content { font-size: 16px; }
.single-content h2 { font-size: 22px; margin-top: 1.4em; }
.single-content h3 { font-size: 18px; margin-top: 1.2em; }
.single-content table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.single-content th, .single-content td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.single-content th { background: var(--bg); }
.tags { margin-top: 18px; font-size: 13px; }
.post-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; }
.author-box { display: flex; gap: 12px; background: var(--bg); border-radius: 10px; padding: 14px; margin-top: 18px; }
.author-box img { border-radius: 50%; }
.related { margin-top: 22px; }

/* Archive / search / page / 404 */
.page-wrap { max-width: var(--wrap); margin: 22px auto; padding: 0 16px; }
.page-card { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.archive-title { font-size: 26px; }
.no-results { background: #fff; border-radius: var(--radius); padding: 18px; }
.pagination { margin: 20px 0; text-align: center; }
.pagination .page-numbers { display: inline-block; padding: 6px 11px; background: #fff; border: 1px solid var(--line); border-radius: 6px; margin: 2px; color: var(--text); }
.pagination .current { background: var(--blue); color: #fff; border-color: var(--blue); }
.error-404 { text-align: center; padding: 50px 16px; }
.error-404 h1 { font-size: 64px; margin-bottom: 0; }

/* Footer */
.site-footer { background: var(--navy); color: var(--muted-2); padding: 20px 0 0; margin-top: 26px; font-size: 13px; }
/* (v1.2.2: no second bottom bar — footer-bottom-bar is the only one.) */

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 26px; }
  .grid-3, .post-grid { grid-template-columns: 1fr; }
  .header-inner { justify-content: center; text-align: center; }
  .topbar-inner { justify-content: center; }
  .single-article { padding: 16px; }
  .single-article h1 { font-size: 24px; }
  .single-content table, .job-table, .links-box table { display: block; overflow-x: auto; }
  .post-nav { flex-direction: column; }
}

/* v1.1.0: secondary nav + dropdowns */
.secondary-nav { background: var(--navy); border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.secondary-inner { max-width: var(--wrap); margin: 0 auto; padding: 8px 16px; display: flex; gap: 10px; flex-wrap: wrap; }
.dropdown { position: relative; }
.dropdown summary { list-style: none; cursor: pointer; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 20px; padding: 6px 12px; font-size: 13px; font-weight: 700; color: #fff; }
.dropdown summary::-webkit-details-marker { display: none; }
.dropdown-menu { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; min-width: 220px; margin: 0; padding: 8px 0; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); }
.dropdown-menu li { margin: 0; }
.dropdown-menu a { display: block; padding: 8px 14px; font-size: 13px; color: var(--text); }
.dropdown-menu a:hover { background: var(--bg); text-decoration: none; }

/* v1.1.0: department pills, state grid, organizations, exams, quick links — removed in v1.3.0 (unused; v1.2 layouts use dept-card-grid, exam-grid, quick-grid-2). */

/* v1.1.0: job detail page */
.job-card { background: linear-gradient(135deg, var(--navy-2), var(--blue)); color: #fff; border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.job-card h2 { font-size: 19px; margin-bottom: 12px; }
.job-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.job-stat { background: rgba(255, 255, 255, 0.14); border-radius: 10px; padding: 12px; text-align: center; }
.job-stat-label { font-size: 11px; letter-spacing: 1px; opacity: 0.85; text-transform: uppercase; }
.job-stat-value { font-size: 16px; font-weight: 800; margin-top: 4px; }
.page-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.page-nav a { background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: 6px 12px; font-size: 13px; font-weight: 600; color: var(--text); }
.job-table-section { margin-bottom: 18px; }
.job-table-section h2 { font-size: 19px; }
.job-table { width: 100%; border-collapse: collapse; background: #fff; }
.job-table th, .job-table td { border: 1px solid var(--line); padding: 9px 11px; text-align: left; font-size: 14px; }
.job-table th { background: var(--bg); }
.links-box { background: #fffbe6; border: 1px solid #fde68a; border-radius: var(--radius); padding: 16px; margin-bottom: 18px; }
.links-box h2 { font-size: 19px; }
.links-box table { width: 100%; border-collapse: collapse; }
.links-box td { border-bottom: 1px solid #fde68a; padding: 8px 6px; font-size: 14px; }
.how-apply { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 18px; }
.how-apply h2 { font-size: 19px; }
.how-apply ol { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.9; }
.faq-block { margin-bottom: 18px; }
.faq-block h2 { font-size: 19px; }
.faq-block details { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; margin-bottom: 8px; font-size: 14px; }
.faq-block summary { cursor: pointer; font-weight: 700; }
.faq-block details p { margin: 8px 0 0; color: var(--muted); }
.share-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; font-size: 13px; }
.share-row a { background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: 6px 12px; color: var(--text); font-weight: 600; }
.sticky-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--navy); color: #fff; box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.25); padding-bottom: env(safe-area-inset-bottom); }
.sticky-inner { max-width: var(--wrap); margin: 0 auto; padding: 10px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sticky-title { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-actions { display: flex; gap: 8px; flex-shrink: 0; }
.sticky-bar .btn { border-radius: 8px; }
.btn-copy { background: #fff; color: var(--navy); }

@media (max-width: 768px) {
  .job-stats { grid-template-columns: 1fr; }
  .sticky-title { display: none; }
  .sticky-inner { justify-content: center; }
  .dropdown-menu { position: static; margin-top: 6px; box-shadow: none; }
}

/* v1.2.0: dark navy header + search bar (merged into the main header rules above) */
.site-header .logo-text { color: #fff; }
.site-header .logo-tag { color: var(--muted-2); }
.btn-alert-dark { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 20px; padding: 8px 14px; font-weight: 700; font-size: 13px; }
.btn-alert-dark:hover { background: rgba(255, 255, 255, 0.12); text-decoration: none; }
.header-search { background: #0a1730; border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 12px 16px 16px; }
.header-search-form { max-width: var(--wrap); margin: 0 auto; display: flex; gap: 8px; background: rgba(255, 255, 255, 0.12); border-radius: 999px; padding: 6px 6px 6px 16px; align-items: center; }
.header-search-form input[type="search"] { border: 0; outline: 0; flex: 1; min-width: 0; background: transparent; color: #fff; font-size: 14px; }
.header-search-form input[type="search"]::placeholder { color: #cbd5e1; }
.btn-search-yellow { background: #f59e0b; color: #111; border-radius: 999px; padding: 9px 20px; }
.btn-search-yellow:hover { background: #fbbf24; text-decoration: none; }

/* v1.2.0: hero */
.hero-v12 { background: linear-gradient(180deg, #0a1730 0%, #12294f 55%, #162f5c 100%); padding: 36px 16px 30px; }
.hero-pill { display: inline-block; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18); color: #fff; font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 999px; }
.hero-updated { margin: 14px 0 0 !important; font-size: 14px; color: #cbd5e1; opacity: 1; }
.hero-v12 h1 { font-size: 52px; line-height: 1.1; margin: 10px 0 12px; }
.hero-v12 h1 .accent { color: #f59e0b; }
.hero-sub { font-size: 17px; max-width: 680px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 20px 0 6px; }
.btn-hero-yellow { background: #f59e0b; color: #111; padding: 13px 24px; border-radius: 10px; font-size: 16px; }
.btn-hero-yellow:hover { background: #fbbf24; text-decoration: none; }
.btn-hero-outline { background: rgba(255, 255, 255, 0.12); color: #fff; border: 1px solid rgba(255, 255, 255, 0.3); padding: 13px 22px; border-radius: 10px; font-size: 16px; }
.btn-hero-outline:hover { background: rgba(255, 255, 255, 0.2); text-decoration: none; }
.pills-label { color: #cbd5e1; font-size: 13px; }
.hero-v12 .hero-stats strong { color: #fbbf24; font-size: 34px; }

/* v1.2.0: blue ticker + anchor nav */
.ticker-blue { background: var(--blue); color: #fff; border-bottom: 0; }
.ticker-blue a { color: #fff; }
.ticker-label-light { background: var(--red); color: #fff; padding: 4px 10px; border-radius: 6px; }
.ticker-view-all { color: #fff; font-weight: 700; white-space: nowrap; }
.anchor-nav { background: #fff; border-bottom: 1px solid var(--line); }
.anchor-inner { max-width: var(--wrap); margin: 0 auto; padding: 12px 16px; display: flex; gap: 28px; flex-wrap: wrap; }
.anchor-inner a { color: var(--text); font-weight: 600; font-size: 14px; }
.anchor-inner a:hover { color: var(--blue); }

/* v1.2.0: closing soon 4-col */
.closing-v12 { background: #fffaf5; border-color: #fed7aa; }
.closing-view-all { color: var(--red-dark); font-weight: 700; font-size: 13px; }
.closing-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 12px; border-top: 1px solid #fee2e2; }
.closing-grid-4 .closing-card { border-radius: 0; box-shadow: none; border-right: 1px solid #fee2e2; border-bottom: 1px solid #fee2e2; min-width: 0; }
.closing-grid-4 .closing-card:nth-child(4n) { border-right: 0; }
.closing-grid-4 .closing-card a { color: var(--text); font-weight: 600; font-size: 14px; }
.closing-badges { margin: 10px 0 6px; }
.badge-close { background: var(--red); color: #fff; }

/* v1.2.0: featured box */
.featured-box { border: 1px solid #fde68a; border-radius: var(--radius); background: #fffdf5; padding: 16px; margin-bottom: 18px; }
.featured-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.featured-head h2 { margin: 0; font-size: 19px; color: #92400e; }
.featured-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid #fef3c7; }
.featured-cell { padding: 16px 16px 16px 0; border-bottom: 1px solid #fef3c7; }
.featured-cell:nth-child(odd) { border-right: 1px solid #fef3c7; padding-right: 16px; }
.featured-cell:nth-child(even) { padding-left: 16px; }
.featured-cell h3 { font-size: 17px; }
.featured-cell h3 a { color: var(--text); }
.featured-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 8px 0 12px; }
.badge-closes { background: #fef3c7; color: #92400e; }

/* v1.2.0: department layout */
.dept-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-bottom: 18px; align-items: start; }
.dept-main { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.dept-title { font-size: 21px; margin-bottom: 16px; border-left: 5px solid var(--orange); padding-left: 12px; }
.dept-card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.dept-card { display: flex; align-items: center; justify-content: center; min-height: 74px; background: #fff; border: 2px solid var(--line); border-radius: 10px; padding: 10px; text-align: center; }
.dept-card:hover { text-decoration: none; }
.dept-card-label { color: var(--text); font-weight: 600; font-size: 14px; }
.dept-card-grid .dept-card:nth-child(12n+1) { border-color: #22c55e; }
.dept-card-grid .dept-card:nth-child(12n+2) { border-color: #3b82f6; }
.dept-card-grid .dept-card:nth-child(12n+3) { border-color: #8b5cf6; }
.dept-card-grid .dept-card:nth-child(12n+4) { border-color: #ef4444; }
.dept-card-grid .dept-card:nth-child(12n+5) { border-color: #f97316; }
.dept-card-grid .dept-card:nth-child(12n+6) { border-color: #14b8a6; }
.dept-card-grid .dept-card:nth-child(12n+7) { border-color: #f97316; }
.dept-card-grid .dept-card:nth-child(12n+8) { border-color: #6366f1; }
.dept-card-grid .dept-card:nth-child(12n+9) { border-color: #ec4899; }
.dept-card-grid .dept-card:nth-child(12n+10) { border-color: #0ea5e9; }
.dept-card-grid .dept-card:nth-child(12n+11) { border-color: #eab308; }
.dept-card-grid .dept-card:nth-child(12n+12) { border-color: #22c55e; }
.dept-side { display: flex; flex-direction: column; gap: 12px; }
.btn-state-orange { display: block; background: linear-gradient(90deg, #f59e0b, #ea580c); color: #fff; text-align: center; padding: 13px 12px; border-radius: 10px; font-weight: 800; font-size: 15px; }
.btn-state-orange:hover { color: #fff; text-decoration: none; opacity: 0.95; }
.dept-wise { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.dept-wise h3 { margin: 0; background: #1e3a8a; color: #fff; padding: 12px 14px; font-size: 16px; }
.dept-wise ul { list-style: none; margin: 0; padding: 0; }
.dept-wise li { border-bottom: 1px solid var(--line-soft); }
.dept-wise li:last-child { border-bottom: 0; }
.dept-wise a { display: flex; justify-content: space-between; padding: 10px 14px; color: var(--muted); font-size: 14px; }
.dept-wise a:hover { color: var(--blue); text-decoration: none; }
.dept-arrow { color: #94a3b8; }

/* v1.2.0: latest jobs layout + sidebar blocks */
.jobs-layout-v12 { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-bottom: 18px; align-items: start; }
.jobs-main-card { margin: 0; }
.jobs-side { display: flex; flex-direction: column; gap: 12px; }
.side-block { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.side-block h3 { margin: 0; color: #fff; padding: 11px 14px; font-size: 15px; }
.side-block:nth-child(1) h3 { background: #15803d; }
.side-block:nth-child(2) h3 { background: #0284c7; }
.side-block:nth-child(3) h3 { background: #b45309; }
.side-block:nth-child(4) h3 { background: var(--navy-2); }
.side-block ul { list-style: none; margin: 0; padding: 8px 14px 12px; font-size: 13px; line-height: 1.9; }
.side-block a { color: var(--text); }

/* v1.2.0: new this week */
.new-week { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 18px; }
.new-week-list { list-style: none; margin: 0; padding: 0; }
.new-week-list li { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.new-week-list li:last-child { border-bottom: 0; }
.new-week-list a { color: var(--text); font-weight: 600; }
.new-week-list .meta { margin-left: auto; color: var(--muted); font-size: 12px; }

/* v1.2.0: organizations circles */
.org-section { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 18px; }
.org-circles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.org-circles li a, .org-circles li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.org-circles a { color: var(--text); }
.org-circle { width: 52px; height: 52px; border-radius: 50%; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; }
.org-name { font-size: 13px; font-weight: 600; line-height: 1.3; }
.org-count { font-size: 12px; color: var(--muted); }

/* v1.2.0: exams grid */
.exam-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.exam-cell { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 13px 10px; text-align: center; color: var(--text); font-weight: 600; font-size: 14px; }
.exam-cell:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }

/* v1.2.0: quick links 2-col boxes */
.quick-links-v12 { margin-bottom: 18px; }
.quick-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.quick-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.quick-box:nth-child(8n+1) .quick-head { background: #dc2626; }
.quick-box:nth-child(8n+2) .quick-head { background: #15803d; }
.quick-box:nth-child(8n+3) .quick-head { background: #1d4ed8; }
.quick-box:nth-child(8n+4) .quick-head { background: #b45309; }
.quick-box:nth-child(8n+5) .quick-head { background: #6d28d9; }
.quick-box:nth-child(8n+6) .quick-head { background: #0e7490; }
.quick-box:nth-child(8n+7) .quick-head { background: #be123c; }
.quick-box:nth-child(8n+8) .quick-head { background: #15803d; }
.quick-head { color: #fff; padding: 11px 14px; font-weight: 800; font-size: 15px; margin: 0; }
.quick-box .post-list, .quick-box p { padding: 0 14px; }
.quick-box p { padding-bottom: 12px; }

/* v1.2.0: state buttons */
.state-buttons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.state-buttons a { background: #fff; border: 1px solid #fdba74; color: var(--text); border-radius: 8px; padding: 11px 10px; text-align: center; font-size: 13px; font-weight: 600; }
.state-buttons a:hover { border-color: var(--orange); color: var(--orange-dark); text-decoration: none; }

/* v1.2.0: subscribe block */
.subscribe-block { background: linear-gradient(135deg, #0b1a33, #1e3a8a); color: #fff; border-radius: var(--radius); padding: 22px 18px; margin-bottom: 18px; }
.subscribe-block h2 { color: #fff; }
.subscribe-block p { opacity: 0.85; }
.btn-subscribe { background: #f59e0b; color: #111; border-radius: 8px; padding: 12px 20px; font-size: 14px; }
.btn-subscribe:hover { background: #fbbf24; }
.subscribe-note { font-size: 12px; margin-top: 10px; }

/* v1.2.3: footer — two rows. Row 1: Brand / Qualification / Department /
   Quick Links. Row 2: full-width State Wise Jobs, five equal region
   columns, each a single vertical list with nowrap state names. */
.footer-grid-v12 { max-width: var(--wrap); margin: 0 auto; padding: 0 16px 18px; display: grid; grid-template-columns: 1.2fr 0.8fr 0.9fr 0.8fr; gap: 28px; }
.footer-grid-v12 h3 { color: #fff; font-size: 16px; margin: 0 0 10px; }
.footer-grid-v12 ul { list-style: none; padding: 0; margin: 0; line-height: 1.7; font-size: 13px; }
.footer-grid-v12 a { color: var(--muted-2); }
.footer-grid-v12 a:hover { color: #fff; text-decoration: underline; }
.footer-brand p { color: var(--muted-2); margin: 0; font-size: 13px; line-height: 1.55; }
.footer-states-row { max-width: var(--wrap); margin: 0 auto; padding: 16px 16px 14px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.footer-states-row h3 { color: #fff; font-size: 16px; margin: 0 0 12px; }
.footer-states-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.footer-state-group h4 { color: #fbbf24; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; margin: 0 0 8px; }
.footer-state-group ul { list-style: none; padding: 0; margin: 0; line-height: 1.7; font-size: 13px; }
.footer-state-group li { white-space: nowrap; }
.footer-state-group a { color: var(--muted-2); white-space: nowrap; word-break: normal; overflow-wrap: normal; hyphens: none; }
.footer-state-group a:hover { color: #fff; text-decoration: underline; }
/* v1.2.4: ONE slim bottom bar — copyright left, links right, single line. */
.footer-bottom-bar { max-width: var(--wrap); margin: 0 auto; padding: 12px 16px; border-top: 1px solid rgba(255, 255, 255, 0.12); display: flex; gap: 8px 16px; flex-wrap: wrap; justify-content: space-between; align-items: center; }
.footer-bottom-links { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-bottom-bar a { color: var(--muted-2); font-size: 13px; }
.footer-bottom-bar a:hover { color: #fff; }
.footer-copy { color: var(--muted-2); font-size: 13px; opacity: 0.85; }

/* v1.2.3: footer — Row 1 to 2 columns and State Wise regions to 2 columns on tablet. */
@media (max-width: 1024px) {
  .hero-v12 h1 { font-size: 42px; }
  .footer-grid-v12 { grid-template-columns: repeat(2, 1fr); }
  .footer-states-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hero-v12 h1 { font-size: 34px; }
  .hero-v12 .hero-stats strong { font-size: 26px; }
  .closing-grid-4 { grid-template-columns: 1fr 1fr; }
  .closing-grid-4 .closing-card:nth-child(2n) { border-right: 0; }
  .featured-grid-2 { grid-template-columns: 1fr; }
  .featured-cell:nth-child(odd) { border-right: 0; padding-right: 0; }
  .featured-cell:nth-child(even) { padding-left: 0; }
  .dept-layout, .jobs-layout-v12 { grid-template-columns: 1fr; }
  .dept-card-grid { grid-template-columns: repeat(2, 1fr); }
  .org-circles { grid-template-columns: repeat(2, 1fr); }
  .exam-grid, .state-buttons { grid-template-columns: repeat(2, 1fr); }
  .quick-grid-2 { grid-template-columns: 1fr; }
  /* v1.2.3: footer stacks to 1 column on phones; slim bottom bar centers. */
  .footer-grid-v12 { grid-template-columns: 1fr; }
  .footer-states-grid { grid-template-columns: 1fr; }
  .footer-bottom-bar { flex-direction: column; align-items: center; text-align: center; }
  .footer-bottom-links { justify-content: center; }
  .anchor-inner { gap: 16px; }
}
@media (max-width: 480px) {
  .closing-grid-4 { grid-template-columns: 1fr; }
}
