/*
Theme Name: WB Govt Jobs
Theme URI: https://wbgovtjobs.com
Author: WB Govt Jobs
Author URI: https://wbgovtjobs.com
Description: A lightweight, SEO-optimized WordPress theme for West Bengal government job alerts. Professional, mobile-first design with fast loading and zero JS dependencies.
Version: 1.0.0
Requires at least: 5.6
Tested up to: 6.7
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: wb-govt-jobs
Tags: government, jobs, recruitment, west-bengal, seo, lightweight, responsive
*/

/* ==========================================================================
   CSS Custom Properties
   ========================================================================== */

:root {
    --color-navy: #1B2A4A;
    --color-navy-dark: #131E36;
    --color-saffron: #FF9933;
    --color-saffron-dark: #E6851F;
    --color-white: #FFFFFF;
    --color-bg-alt: #F5F7FA;
    --color-text: #2D3748;
    --color-text-light: #718096;
    --color-green: #38A169;
    --color-red: #E53E3E;
    --color-border: #E2E8F0;
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --radius: 6px;
    --max-width: 1200px;
    --header-height: 72px;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-stack);
    color: var(--color-text);
    background: var(--color-white);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-saffron-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover, a:focus {
    color: var(--color-navy);
}

ul, ol {
    padding-left: 1.5em;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    color: var(--color-navy);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5em;
}

h1 { font-size: 1.875rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
    margin-bottom: 1em;
}

blockquote {
    border-left: 4px solid var(--color-saffron);
    padding: 1em 1.5em;
    margin: 1.5em 0;
    background: var(--color-bg-alt);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
}

code, pre {
    font-family: var(--font-mono);
    font-size: 0.875em;
}

pre {
    background: var(--color-navy);
    color: var(--color-white);
    padding: 1.25em;
    border-radius: var(--radius);
    overflow-x: auto;
    margin-bottom: 1.5em;
}

hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 2em 0;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.site-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-content {
    flex: 1;
    padding: 2em 0;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1em;
}

.content-area {
    display: flex;
    gap: 2em;
    align-items: flex-start;
}

.main-content {
    flex: 1;
    min-width: 0;
}

.sidebar-area {
    width: 300px;
    flex-shrink: 0;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
    background: var(--color-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    border-bottom: 2px solid var(--color-border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-height);
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1em;
    gap: 1.5em;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 0.75em;
    flex-shrink: 0;
    min-width: max-content;
}

.site-branding .custom-logo {
    height: 56px;
    width: auto;
}

.site-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.site-title a {
    color: var(--color-navy);
    text-decoration: none;
}

.site-title a:hover {
    color: var(--color-saffron);
}

.site-description {
    display: none;
}

/* Primary Navigation */

.primary-nav {
    display: flex;
    align-items: center;
    gap: 1.5em;
}

.nav-menu {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 0.15em;
    padding: 0;
    margin: 0;
    justify-content: flex-end;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 0.4em 0.6em;
    color: var(--color-navy);
    font-size: 0.835rem;
    font-weight: 500;
    border-radius: var(--radius);
    white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a {
    color: var(--color-white);
    background: var(--color-navy);
}

/* Dropdown menus */
.nav-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-white);
    min-width: 200px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 0.5em 0;
    z-index: 100;
}

.nav-menu li:hover > .sub-menu {
    display: block;
}

.nav-menu .sub-menu a {
    color: var(--color-text);
    padding: 0.5em 1em;
    border-radius: 0;
}

.nav-menu .sub-menu a:hover {
    background: var(--color-bg-alt);
    color: var(--color-navy);
}

.nav-menu .sub-menu .current-menu-item > a,
.nav-menu .sub-menu .current_page_item > a,
.nav-menu .sub-menu .current-menu-ancestor > a {
    color: var(--color-white);
    background: var(--color-navy);
}

/* Header Search */
.header-search {
    position: relative;
}

.header-search-toggle {
    background: none;
    border: none;
    color: var(--color-navy);
    cursor: pointer;
    padding: 0.5em;
    font-size: 1.1rem;
    line-height: 1;
}

.header-search-form {
    display: none;
    position: absolute;
    top: calc(100% + 0.5em);
    right: 0;
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 0.75em;
    width: 280px;
    z-index: 200;
}

.header-search.active .header-search-form {
    display: block;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-navy);
    cursor: pointer;
    padding: 0.5em;
    font-size: 1.5rem;
    line-height: 1;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-navy);
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Accent Bar / Marquee */
.accent-bar {
    background: var(--color-saffron);
    color: var(--color-navy);
    overflow: hidden;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1;
    padding: 6px 0;
}

.marquee-track {
    display: flex;
    animation: marqueeScroll 30s linear infinite;
    white-space: nowrap;
}

.marquee-track span {
    padding: 0 3em;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==========================================================================
   Search Form
   ========================================================================== */

.search-form {
    display: flex;
    gap: 0;
}

.search-form .search-field {
    flex: 1;
    padding: 0.6em 1em;
    border: 2px solid var(--color-border);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    font-family: var(--font-stack);
    font-size: 0.95rem;
    color: var(--color-text);
    outline: none;
    transition: border-color 0.2s;
}

.search-form .search-field:focus {
    border-color: var(--color-saffron);
}

.search-form .search-submit {
    padding: 0.6em 1.25em;
    background: var(--color-saffron);
    color: var(--color-white);
    border: 2px solid var(--color-saffron);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-family: var(--font-stack);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.search-form .search-submit:hover {
    background: var(--color-saffron-dark);
    border-color: var(--color-saffron-dark);
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

.breadcrumbs {
    font-size: 0.85rem;
    color: var(--color-text-light);
    padding: 0.75em 0;
    margin-bottom: 1em;
}

.breadcrumbs a {
    color: var(--color-text-light);
}

.breadcrumbs a:hover {
    color: var(--color-saffron-dark);
}

.breadcrumbs .separator {
    margin: 0 0.4em;
    color: var(--color-border);
}

/* ==========================================================================
   Job Cards (Archive / Index)
   ========================================================================== */

.job-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5em;
}

.job-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 0;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.job-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.job-card-thumb {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.job-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.job-card:hover .job-card-thumb img {
    transform: scale(1.05);
}

.job-card-body {
    flex: 1;
    padding: 1.25em;
    display: flex;
    flex-direction: column;
}

.job-card-header {
    margin-bottom: 0.5em;
}

.job-card-title {
    font-size: 1.05rem;
    margin-bottom: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-card-title a {
    color: var(--color-navy);
}

.job-card-title a:hover {
    color: var(--color-saffron-dark);
}

.job-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75em;
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-bottom: 0.75em;
    flex-wrap: wrap;
}

.job-card-meta .meta-date::before {
    content: "\1F4C5 ";
}

.job-card-meta .meta-reading-time::before {
    content: "\231A ";
}

.job-card-excerpt {
    font-size: 0.875rem;
    color: var(--color-text);
    margin-bottom: 1em;
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-card-footer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: auto;
}

.read-more-link {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-white);
    padding: 0.5em 1.2em;
    background: var(--color-navy);
    border: none;
    border-radius: var(--radius);
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.read-more-link:hover {
    background: var(--color-saffron-dark);
    color: var(--color-white);
    transform: translateY(-1px);
}

/* Category Badges */
.category-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.2em 0.6em;
    border-radius: 3px;
    color: var(--color-white);
    white-space: nowrap;
}

.badge-wbpsc { background: #3182CE; }
.badge-wbssc { background: #38A169; }
.badge-wbprb { background: #E53E3E; }
.badge-wbhrb { background: #805AD5; }
.badge-wbprms { background: #DD6B20; }
.badge-admit-card { background: #319795; }
.badge-result { background: #2F855A; }
.badge-syllabus { background: #4C51BF; }
.badge-preparation-tips { background: #B7791F; }
.badge-latest-jobs { background: #C53030; }
.badge-default { background: #718096; }

/* Card border colors per board */
.job-card.board-wbpsc { border-left-color: #3182CE; }
.job-card.board-wbssc { border-left-color: #38A169; }
.job-card.board-wbprb { border-left-color: #E53E3E; }
.job-card.board-wbhrb { border-left-color: #805AD5; }
.job-card.board-wbprms { border-left-color: #DD6B20; }
.job-card.board-admit-card { border-left-color: #319795; }
.job-card.board-result { border-left-color: #2F855A; }
.job-card.board-syllabus { border-left-color: #4C51BF; }

/* ==========================================================================
   Single Post / Page Content
   ========================================================================== */

.entry-featured-image {
    margin-bottom: 1.25em;
    border-radius: var(--radius);
    overflow: hidden;
}

.entry-featured-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
}

.entry-header {
    margin-bottom: 1.5em;
    padding-bottom: 1em;
    border-bottom: 2px solid var(--color-bg-alt);
}

.entry-title {
    font-size: 1.75rem;
    margin-bottom: 0.4em;
}

.entry-meta {
    display: flex;
    align-items: center;
    gap: 1.25em;
    font-size: 0.85rem;
    color: var(--color-text-light);
    flex-wrap: wrap;
}

.entry-content {
    font-size: 1rem;
    line-height: 1.8;
}

.entry-content h2 {
    margin-top: 2em;
    padding-bottom: 0.3em;
    border-bottom: 2px solid var(--color-bg-alt);
}

.entry-content h3 {
    margin-top: 1.5em;
}

.entry-content ul, .entry-content ol {
    margin-bottom: 1.25em;
}

.entry-content li {
    margin-bottom: 0.3em;
}

.entry-content a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.entry-content img {
    border-radius: var(--radius);
    margin: 1em 0;
}

/* ==========================================================================
   Tables (Responsive)
   ========================================================================== */

.entry-content table,
.wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 0.9rem;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.5em 0;
}

.entry-content table th,
.entry-content table td {
    padding: 0.75em 1em;
    text-align: left;
    border: 1px solid var(--color-border);
}

.entry-content table th {
    background: var(--color-navy);
    color: var(--color-white);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.entry-content table tr:nth-child(even) {
    background: var(--color-bg-alt);
}

.entry-content table tr:hover {
    background: #EBF4FF;
}

/* ==========================================================================
   Page Templates
   ========================================================================== */

/* Parent page child listing (table of contents) */
.child-pages-list {
    list-style: none;
    padding: 0;
    margin: 1.5em 0;
}

.child-pages-list li {
    border-bottom: 1px solid var(--color-border);
}

.child-pages-list a {
    display: flex;
    align-items: center;
    padding: 0.85em 0.5em;
    color: var(--color-navy);
    font-weight: 500;
    transition: padding-left 0.2s;
}

.child-pages-list a::before {
    content: "\25B6";
    font-size: 0.6em;
    margin-right: 0.8em;
    color: var(--color-saffron);
}

.child-pages-list a:hover {
    padding-left: 1em;
    color: var(--color-saffron-dark);
    background: var(--color-bg-alt);
}

/* Parent link on child pages */
.parent-page-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 0.75em;
}

.parent-page-link::before {
    content: "\2190";
}

.parent-page-link:hover {
    color: var(--color-saffron-dark);
}

/* ==========================================================================
   Related Posts
   ========================================================================== */

.related-posts {
    margin-top: 3em;
    padding-top: 2em;
    border-top: 2px solid var(--color-bg-alt);
}

.related-posts h2 {
    font-size: 1.25rem;
    margin-bottom: 1em;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1em;
}

.related-post-card {
    background: var(--color-bg-alt);
    border-radius: var(--radius);
    padding: 1em;
    transition: box-shadow 0.2s;
}

.related-post-card:hover {
    box-shadow: var(--shadow-md);
}

.related-post-card h3 {
    font-size: 0.95rem;
    margin-bottom: 0.4em;
}

.related-post-card h3 a {
    color: var(--color-navy);
}

.related-post-card h3 a:hover {
    color: var(--color-saffron-dark);
}

.related-post-card .meta-date {
    font-size: 0.8rem;
    color: var(--color-text-light);
}

/* Post Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1em;
    margin-top: 2em;
    padding-top: 1.5em;
    border-top: 1px solid var(--color-border);
}

.post-navigation a {
    display: block;
    padding: 0.75em 1em;
    background: var(--color-bg-alt);
    border-radius: var(--radius);
    font-size: 0.875rem;
    max-width: 48%;
    transition: background 0.2s;
}

.post-navigation a:hover {
    background: var(--color-border);
}

.post-navigation .nav-label {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25em;
}

.post-navigation .nav-next {
    text-align: right;
    margin-left: auto;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4em;
    margin-top: 2.5em;
    padding-top: 1.5em;
    border-top: 1px solid var(--color-border);
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25em;
    height: 2.25em;
    padding: 0 0.5em;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
    background: var(--color-bg-alt);
    transition: all 0.2s;
}

.pagination .page-numbers:hover {
    background: var(--color-saffron);
    color: var(--color-white);
}

.pagination .page-numbers.current {
    background: var(--color-navy);
    color: var(--color-white);
}

.pagination .dots {
    background: none;
}

/* ==========================================================================
   Sidebar & Widgets
   ========================================================================== */

.widget {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.25em;
    margin-bottom: 1.5em;
}

.widget-title {
    font-size: 1rem;
    margin-bottom: 0.75em;
    padding-bottom: 0.5em;
    border-bottom: 2px solid var(--color-saffron);
    color: var(--color-navy);
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget li {
    padding: 0.4em 0;
    border-bottom: 1px solid var(--color-bg-alt);
}

.widget li:last-child {
    border-bottom: none;
}

.widget li a {
    color: var(--color-text);
    font-size: 0.9rem;
}

.widget li a:hover {
    color: var(--color-saffron-dark);
}

.widget select {
    width: 100%;
    padding: 0.5em;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-family: var(--font-stack);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: var(--color-navy-dark);
    color: rgba(255, 255, 255, 0.8);
    margin-top: auto;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2em;
    padding: 2.5em 0;
}

.footer-col h3 {
    color: var(--color-white);
    font-size: 1rem;
    margin-bottom: 1em;
    padding-bottom: 0.5em;
    border-bottom: 2px solid var(--color-saffron);
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col li {
    margin-bottom: 0.4em;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: var(--color-saffron);
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    margin-bottom: 0.4em;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-nav a:hover {
    color: var(--color-saffron);
}

.copyright-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.25em 0;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 2em;
    right: 2em;
    width: 40px;
    height: 40px;
    background: var(--color-navy);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, background 0.2s;
    z-index: 900;
    box-shadow: var(--shadow-md);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--color-saffron);
}

/* ==========================================================================
   Archive / Category Header
   ========================================================================== */

.archive-header {
    background: linear-gradient(135deg, var(--color-navy) 0%, #2d4373 100%);
    color: var(--color-white);
    padding: 2em 1.5em;
    border-radius: var(--radius);
    margin-bottom: 2em;
}

.archive-header.board-wbpsc { border-left-color: #3182CE; }
.archive-header.board-wbssc { border-left-color: #38A169; }
.archive-header.board-wbprb { border-left-color: #E53E3E; }
.archive-header.board-wbhrb { border-left-color: #805AD5; }
.archive-header.board-wbprms { border-left-color: #DD6B20; }

.archive-title {
    font-size: 1.5rem;
    margin-bottom: 0.3em;
    color: var(--color-white);
}

.archive-description {
    font-size: 0.925rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

.archive-description p:last-child {
    margin-bottom: 0;
}

/* Search Results Header */
.search-header {
    background: var(--color-bg-alt);
    padding: 1.5em;
    border-radius: var(--radius);
    margin-bottom: 2em;
}

.search-results-count {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* ==========================================================================
   404 Page
   ========================================================================== */

.error-404-content {
    text-align: center;
    padding: 3em 0;
}

.error-404-content h1 {
    font-size: 4rem;
    color: var(--color-border);
    margin-bottom: 0.25em;
}

.error-404-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1em;
}

.error-404-content p {
    color: var(--color-text-light);
    max-width: 500px;
    margin: 0 auto 2em;
}

.error-404-content .search-form {
    max-width: 400px;
    margin: 0 auto 2em;
}

.error-404-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5em;
    margin-top: 1.5em;
}

.error-404-categories a {
    padding: 0.5em 1em;
    background: var(--color-bg-alt);
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-navy);
    transition: all 0.2s;
}

.error-404-categories a:hover {
    background: var(--color-saffron);
    color: var(--color-white);
}

/* ==========================================================================
   Screen Reader Text (Accessibility)
   ========================================================================== */

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: var(--color-bg-alt);
    clip: auto !important;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ==========================================================================
   Responsive Design (Mobile First Overrides)
   ========================================================================== */

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }

    .menu-toggle {
        display: block;
    }

    .primary-nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--color-white);
        padding: 1em;
        border-top: 2px solid var(--color-border);
        box-shadow: var(--shadow-lg);
        flex-direction: column;
        gap: 0;
    }

    .primary-nav.is-open {
        display: flex;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .nav-menu a {
        padding: 0.75em 0.5em;
        color: var(--color-navy);
        border-bottom: 1px solid var(--color-border);
    }

    .nav-menu .sub-menu {
        position: static;
        box-shadow: none;
        padding-left: 1em;
        background: var(--color-bg-alt);
        border-radius: 0;
    }

    .nav-menu li:hover > .sub-menu {
        display: block;
    }

    .nav-menu .sub-menu a {
        color: var(--color-text);
    }

    .header-search {
        width: 100%;
    }

    .header-search-form {
        position: static;
        width: 100%;
        box-shadow: none;
        background: transparent;
        padding: 0.5em 0;
    }

    .header-search.active .header-search-form {
        display: block;
    }

    .header-search-form .search-field {
        border-color: var(--color-border);
        background: var(--color-bg-alt);
        color: var(--color-text);
    }

    .site-branding .custom-logo {
        height: 44px;
    }

    .site-title {
        font-size: 1rem;
    }

    /* Layout */
    .content-area {
        flex-direction: column;
    }

    .sidebar-area {
        width: 100%;
    }

    .container {
        padding: 0 0.75em;
    }

    /* Cards - single column on mobile */
    .job-cards {
        grid-template-columns: 1fr;
        gap: 1em;
    }

    .job-card-thumb {
        height: 160px;
    }

    .job-card-body {
        padding: 1em;
    }

    /* Larger touch targets for mobile */
    .nav-menu a {
        padding: 0.85em 0.75em;
        min-height: 44px;
    }

    .read-more-link {
        padding: 0.6em 1.2em;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    /* Related Posts */
    .related-posts-grid {
        grid-template-columns: 1fr;
    }

    /* Post Navigation */
    .post-navigation {
        flex-direction: column;
    }

    .post-navigation a {
        max-width: 100%;
    }

    /* Footer */
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 1.5em;
    }

    /* Entry */
    .entry-title {
        font-size: 1.375rem;
    }

    .entry-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4em;
    }

    /* Back to top */
    .back-to-top {
        bottom: 1em;
        right: 1em;
        width: 36px;
        height: 36px;
    }

    /* Tables */
    .entry-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .footer-widgets {
        grid-template-columns: 1fr 1fr;
    }

    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sidebar-area {
        width: 260px;
    }
}

/* ==========================================================================
   Book Recommendation Boxes (Study Guide Pages)
   ========================================================================== */

.book-recommendation {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-saffron);
    border-radius: var(--radius);
    padding: 1.25em 1.5em;
    margin-bottom: 1.5em;
}

.book-recommendation h3 {
    font-size: 1.05rem;
    color: var(--color-navy);
    margin-bottom: 0.4em;
}

.book-recommendation p {
    font-size: 0.925rem;
    margin-bottom: 0.5em;
}

.book-recommendation p:last-child {
    margin-bottom: 0;
}

.book-recommendation strong {
    color: var(--color-navy);
}

.book-recommendation .buy-link {
    display: inline-block;
    background: #FF9900;
    color: #111;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.5em 1.2em;
    border-radius: var(--radius);
    margin-top: 0.5em;
    transition: background 0.2s, transform 0.1s;
}

.book-recommendation .buy-link:hover {
    background: #e68a00;
    color: #111;
    transform: translateY(-1px);
}

/* ==========================================================================
   Ad Slots (AdSense Ready)
   ========================================================================== */

.ad-slot {
    margin: 1.5em 0;
    text-align: center;
    overflow: hidden;
    clear: both;
}

.ad-slot-header {
    margin: 0 0 0.5em;
    min-height: 90px;
}

.ad-slot-in-content {
    margin: 2em 0;
    padding: 1em 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.ad-slot-sidebar {
    margin-bottom: 1.5em;
    min-height: 250px;
}

.ad-slot-after-post {
    margin-top: 2em;
    padding-top: 1em;
    border-top: 1px solid var(--color-border);
}

.ad-slot-between-posts {
    margin: 1em 0;
    min-height: 100px;
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    .ad-slot-header {
        min-height: 50px;
    }

    .ad-slot-sidebar {
        min-height: 100px;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    *,
    *::before,
    *::after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    a, a:visited {
        text-decoration: underline;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }

    .site-header,
    .site-footer,
    .sidebar-area,
    .accent-bar,
    .back-to-top,
    .pagination,
    .post-navigation,
    .related-posts,
    .menu-toggle,
    .search-form,
    .header-search {
        display: none !important;
    }

    .content-area {
        display: block;
    }

    .main-content {
        width: 100%;
    }

    .entry-content table {
        page-break-inside: avoid;
    }

    h1, h2, h3 {
        page-break-after: avoid;
    }

    img {
        page-break-inside: avoid;
    }
}

/* ==========================================================================
   WordPress Alignment Classes
   ========================================================================== */

.alignleft {
    float: left;
    margin: 0.5em 1.5em 1em 0;
}

.alignright {
    float: right;
    margin: 0.5em 0 1em 1.5em;
}

.aligncenter {
    display: block;
    margin: 1em auto;
}

.alignwide {
    margin-left: -1em;
    margin-right: -1em;
    max-width: calc(100% + 2em);
}

.alignfull {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    max-width: 100vw;
    width: 100vw;
}

.wp-caption {
    max-width: 100%;
    margin-bottom: 1em;
}

.wp-caption-text {
    font-size: 0.8rem;
    color: var(--color-text-light);
    text-align: center;
    padding-top: 0.5em;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.text-center { text-align: center; }
.text-muted { color: var(--color-text-light); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1em; }
.mt-1 { margin-top: 1em; }
.mt-2 { margin-top: 2em; }

/* ==========================================================================
   Homepage SEO Sections
   ========================================================================== */

.home-intro {
    background: var(--color-bg-alt);
    border-left: 4px solid var(--color-saffron);
    border-radius: 8px;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.5rem;
}
.home-intro-title {
    font-size: 1.6rem;
    color: var(--color-navy);
    margin: 0 0 0.6rem;
}
.home-intro-desc {
    color: var(--color-text);
    margin: 0 0 1rem;
    line-height: 1.7;
}
.home-board-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.board-link {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}
.board-link:hover { opacity: 0.85; text-decoration: none; }
.board-psc  { background: #1B2A4A; color: #fff; }
.board-ssc  { background: #2e7d32; color: #fff; }
.board-prb  { background: #b71c1c; color: #fff; }
.board-hrb  { background: #1565c0; color: #fff; }
.board-tool { background: var(--color-saffron); color: #fff; }

.latest-jobs-heading {
    font-size: 1.15rem;
    color: var(--color-text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-border, #e2e8f0);
}

.home-seo-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid var(--color-border, #e2e8f0);
}
.home-seo-section h2 {
    color: var(--color-navy);
    font-size: 1.3rem;
    margin-top: 2rem;
}
.home-seo-section h3 {
    color: var(--color-navy);
    font-size: 1rem;
    margin: 1rem 0 0.4rem;
}

.board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin: 1rem 0 1.5rem;
}
.board-card {
    background: var(--color-bg-alt);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    border-top: 3px solid var(--color-saffron);
}
.board-card h3 { margin-top: 0; font-size: 0.95rem; }
.board-card h3 a { color: var(--color-navy); }
.board-card p { font-size: 0.875rem; color: var(--color-text); margin: 0; line-height: 1.6; }

.home-tools-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1.25rem 0 1.75rem;
}
.tool-cta-btn {
    background: var(--color-navy);
    color: #fff;
    padding: 0.6rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.2s;
}
.tool-cta-btn:hover { background: var(--color-saffron); color: #fff; text-decoration: none; }
