/*
Theme Name: MP Naukri
Theme URI: https://mpnaukri.in
Author: MP Naukri Team
Author URI: https://mpnaukri.in
Description: A professional government job portal theme for Madhya Pradesh state jobs. Features job listings, department archives, district filters, Ajax-powered search, and SEO-optimized job posting schema markup.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mp-naukri
Tags: jobs, government, madhya-pradesh, portal, custom-post-type, ajax

MP Naukri - मध्यप्रदेश की सरकारी नौकरियाँ
*/

/* =============================================
   CSS Custom Properties
   ============================================= */
:root {
    --primary:       #1a237e;
    --primary-dark:  #0d1257;
    --primary-light: #3949ab;
    --accent:        #ff6f00;
    --accent-light:  #ffa000;
    --success:       #2e7d32;
    --danger:        #c62828;
    --warning:       #f57f17;
    --bg:            #f5f5f5;
    --bg-white:      #ffffff;
    --bg-card:       #ffffff;
    --text-dark:     #1a1a2e;
    --text-mid:      #424242;
    --text-light:    #757575;
    --text-muted:    #9e9e9e;
    --border:        #e0e0e0;
    --border-light:  #f0f0f0;
    --shadow-sm:     0 1px 3px rgba(0,0,0,.08);
    --shadow-md:     0 4px 12px rgba(0,0,0,.12);
    --shadow-lg:     0 8px 24px rgba(0,0,0,.15);
    --radius-sm:     4px;
    --radius:        8px;
    --radius-lg:     12px;
    --radius-xl:     16px;
    --transition:    0.2s ease;
    --font-body:     'Noto Sans', sans-serif;
    --font-heading:  'Noto Sans', sans-serif;
    --container:     1200px;
    --header-h:      70px;
}

/* =============================================
   Reset & Base
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; display: block; }

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
}

p { margin-bottom: 1rem; color: var(--text-mid); }

/* =============================================
   Layout Utilities
   ============================================= */
.container { max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 16px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.85rem; }
.text-xs { font-size: 0.75rem; }

.fw-bold { font-weight: 700; }
.fw-600 { font-weight: 600; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

.section { padding: 48px 0; }
.section-sm { padding: 32px 0; }
.section-lg { padding: 64px 0; }

.section-title {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 8px;
    position: relative;
    padding-left: 14px;
}
.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 28px;
    background: var(--accent);
    border-radius: 2px;
}
.section-subtitle { color: var(--text-light); font-size: 0.9rem; margin-bottom: 28px; }

/* =============================================
   Buttons
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }

.btn-accent {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.btn-accent:hover { background: var(--accent-light); border-color: var(--accent-light); color: #fff; }

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }

.btn-outline-accent {
    background: transparent;
    color: var(--accent);
    border-color: var(--accent);
}
.btn-outline-accent:hover { background: var(--accent); color: #fff; }

.btn-sm { padding: 6px 14px; font-size: 0.82rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

.btn-success { background: var(--success); color: #fff; border-color: var(--success); }
.btn-success:hover { background: #1b5e20; border-color: #1b5e20; color: #fff; }

/* =============================================
   Badges / Tags
   ============================================= */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-primary   { background: #e8eaf6; color: var(--primary); }
.badge-accent    { background: #fff3e0; color: var(--accent); }
.badge-success   { background: #e8f5e9; color: var(--success); }
.badge-danger    { background: #ffebee; color: var(--danger); }
.badge-warning   { background: #fffde7; color: var(--warning); }
.badge-new       { background: var(--accent); color: #fff; }
.badge-hot       { background: var(--danger); color: #fff; }
.badge-vacancies { background: var(--primary); color: #fff; font-size: 0.8rem; padding: 4px 10px; }

/* =============================================
   Cards (General)
   ============================================= */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-body { padding: 20px; }
.card-footer { padding: 14px 20px; background: var(--bg); border-top: 1px solid var(--border); }

/* =============================================
   Forms
   ============================================= */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--text-mid); }

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-family: var(--font-body);
    color: var(--text-dark);
    background: #fff;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,35,126,.1); }
.form-control::placeholder { color: var(--text-muted); }

select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23757575' fill='none' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }

/* =============================================
   Breadcrumb
   ============================================= */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    padding: 12px 0;
    font-size: 0.82rem;
    color: var(--text-light);
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { color: var(--text-muted); }
.breadcrumb-current { color: var(--text-dark); font-weight: 600; }

/* =============================================
   Pagination
   ============================================= */
.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 32px;
}
.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.85rem;
    color: var(--text-mid);
    background: #fff;
    transition: all var(--transition);
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* =============================================
   Sidebar
   ============================================= */
.sidebar-widget {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: 24px;
}
.sidebar-widget-title {
    font-size: 0.95rem;
    font-weight: 700;
    padding: 14px 18px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sidebar-widget-body { padding: 16px 18px; }

/* Filter checkboxes */
.filter-list { display: flex; flex-direction: column; gap: 10px; }
.filter-item { display: flex; align-items: center; gap: 10px; }
.filter-item input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }
.filter-item label { font-size: 0.85rem; cursor: pointer; flex: 1; }
.filter-item .count { font-size: 0.75rem; color: var(--text-muted); background: var(--bg); padding: 2px 7px; border-radius: 10px; }

/* =============================================
   Tables
   ============================================= */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.data-table th { background: var(--primary); color: #fff; padding: 10px 14px; text-align: left; font-weight: 600; }
.data-table td { padding: 10px 14px; border-bottom: 1px solid var(--border-light); }
.data-table tr:hover td { background: #f8f9ff; }
.data-table tr:last-child td { border-bottom: none; }

.detail-table { width: 100%; border-collapse: collapse; }
.detail-table tr:nth-child(even) td { background: #f8f9ff; }
.detail-table td {
    padding: 12px 16px;
    border: 1px solid var(--border);
    font-size: 0.88rem;
    vertical-align: top;
}
.detail-table td:first-child { font-weight: 600; width: 35%; color: var(--primary); background: #f0f3ff; }

/* =============================================
   Loading / Spinner
   ============================================= */
.spinner {
    width: 32px; height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin: 20px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

.ajax-loading { display: none; text-align: center; padding: 20px; }
.ajax-loading.active { display: block; }

/* =============================================
   Alerts / Notices
   ============================================= */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 0.88rem;
    margin-bottom: 16px;
    border-left: 4px solid;
}
.alert-info    { background: #e3f2fd; border-color: #1976d2; color: #0d47a1; }
.alert-success { background: #e8f5e9; border-color: #388e3c; color: #1b5e20; }
.alert-warning { background: #fff8e1; border-color: #f9a825; color: #e65100; }
.alert-danger  { background: #ffebee; border-color: #d32f2f; color: #b71c1c; }

/* =============================================
   Breaking News Ticker
   ============================================= */
.ticker-wrap {
    background: var(--accent);
    color: #fff;
    overflow: hidden;
    padding: 0;
    font-size: 0.82rem;
}
.ticker-label {
    background: var(--primary-dark);
    color: #fff;
    padding: 6px 14px;
    font-weight: 700;
    font-size: 0.78rem;
    white-space: nowrap;
    flex-shrink: 0;
}
.ticker-inner { display: flex; align-items: center; overflow: hidden; height: 32px; }
.ticker-content {
    display: flex;
    gap: 40px;
    white-space: nowrap;
    animation: ticker-scroll 30s linear infinite;
    padding: 0 20px;
}
.ticker-content a { color: #fff; font-weight: 500; }
.ticker-content a:hover { text-decoration: underline; color: #fff; }
.ticker-sep { color: rgba(255,255,255,0.5); }

@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =============================================
   Responsive Utility Classes
   ============================================= */
.hide-mobile  { }
.show-mobile  { display: none; }

@media (max-width: 991px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-6 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .grid-6 { grid-template-columns: repeat(2, 1fr); }
    .hide-mobile { display: none !important; }
    .show-mobile { display: block !important; }
    :root { --header-h: 60px; }
    .section { padding: 32px 0; }
    .section-lg { padding: 40px 0; }
    .section-title { font-size: 1.25rem; }
}
