/*
Theme Name: MaziJob - Majhi Naukri Style Govt Job Portal
Theme URI: https://mazijob.com
Author: Swapnil Hanawate
Author URI: mailto:swapnilhanawate1@gmail.com
Description: A high-performance, 100% mobile-friendly, copyright-free WordPress recruitment theme inspired by Majhi Naukri (majhinaukri.in), fully optimized for Google AdSense approval, fast smartphone loading, and rich Schema.org JobPosting SEO snippets.
Version: 2.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mazijob
Tags: government-jobs, recruitment, ad-ready, marathi, seo-friendly, two-columns, responsive-layout, mobile-first
*/

:root {
  --primary: #c21807; /* Majhi Naukri classic red accent */
  --primary-dark: #9a1205;
  --secondary: #0d47a1; /* Deep navy blue */
  --accent: #16a34a; /* Green for apply links */
  --accent-dark: #15803d;
  --bg-light: #f4f6f9;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Mukta', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.6;
}

img, svg, video, canvas, audio, iframe, embed, object {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: #0284c7;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 12px;
}

/* Header & Topbar */
.site-header {
  background: #ffffff;
  border-bottom: 3px solid var(--primary);
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  width: 100%;
}

.top-bar {
  background: #0f172a;
  color: #f8fafc;
  font-size: 0.78rem;
  padding: 6px 0;
  border-bottom: 1px solid #1e293b;
}

.top-bar-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

@media (min-width: 768px) {
  .top-bar-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    font-size: 0.85rem;
  }
}

.top-bar a {
  color: #38bdf8;
  font-weight: 500;
}

/* Header Main Branding & Ads */
.header-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 0;
  gap: 12px;
  width: 100%;
}

@media (min-width: 992px) {
  .header-main {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    padding: 16px 0;
  }
}

.site-branding h1 {
  margin: 0;
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.1;
}

.site-branding p {
  margin: 4px 0 0 0;
  font-size: 0.85rem;
  color: #475569;
  font-weight: 500;
}

.header-ads {
  width: 100%;
  max-width: 728px;
}

/* Main Navigation Bar (Swipeable on Mobile, never wraps) */
.main-navigation {
  background: var(--primary);
  width: 100%;
  max-width: 100%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: relative;
}

.main-navigation .container,
.main-navigation .menu-primary-container,
.main-navigation div {
  width: 100%;
  max-width: 100%;
}

.main-navigation ul,
.main-navigation .menu {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 4px 6px !important;
  gap: 4px !important;
  width: 100% !important;
}

.main-navigation ul::-webkit-scrollbar,
.main-navigation .menu::-webkit-scrollbar {
  display: none !important;
}

.main-navigation li {
  flex-shrink: 0 !important;
  list-style: none !important;
}

.main-navigation li a {
  display: inline-block;
  padding: 8px 12px;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 4px;
  transition: background 0.15s ease;
}

.main-navigation li a:hover,
.main-navigation li.current-menu-item a {
  background: var(--primary-dark);
}

@media (min-width: 992px) {
  .main-navigation ul,
  .main-navigation .menu {
    flex-wrap: wrap !important;
    overflow-x: visible !important;
    padding: 0 !important;
    gap: 0 !important;
  }
  .main-navigation li a {
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: 0;
  }
}

/* Flash News Ticker */
.news-ticker {
  background: #fffbeb;
  border: 1px solid #fef08a;
  color: #854d0e;
  padding: 6px 10px;
  margin: 10px 0;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.82rem;
  overflow: hidden;
  width: 100%;
}

.ticker-badge {
  white-space: nowrap;
  flex-shrink: 0;
  background: #eab308;
  color: #713f12;
  font-size: 0.72rem;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 800;
}

.news-ticker marquee {
  flex: 1;
  min-width: 0;
}

/* Site Main Layout (Strictly 1-Column on Mobile/Tablet, 2-Columns on Desktop > 992px) */
.site-main {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  margin-top: 14px !important;
  width: 100% !important;
  max-width: 100% !important;
}

.content-area,
.sidebar-area {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

@media (min-width: 992px) {
  .site-main {
    display: grid !important;
    grid-template-columns: 1fr 320px !important;
    gap: 24px !important;
    margin-top: 20px !important;
  }
}

/* Job Table & Mobile Card Responsive Layout */
.job-section-title {
  background: #0d47a1;
  color: #ffffff;
  padding: 10px 14px;
  font-weight: 800;
  font-size: 1.05rem;
  border-radius: 6px 6px 0 0;
}

.job-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 6px 6px;
  margin-bottom: 20px;
}

.job-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

.job-table th {
  background: #1e3a8a;
  color: #ffffff;
  text-align: left;
  padding: 10px 12px;
  font-size: 0.9rem;
  font-weight: 700;
}

.job-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.job-table tr:hover {
  background: #f8fafc;
}

.job-mobile-meta {
  display: none;
}

/* Mobile & Tablet Friendly Card Transformation (<= 768px) */
@media (max-width: 768px) {
  .job-table-wrapper {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
  }
  .job-table, .job-table thead, .job-table tbody, .job-table th, .job-table td, .job-table tr {
    display: block !important;
    width: 100% !important;
  }
  .job-table thead, .job-table thead tr {
    display: none !important;
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
  }
  .job-table tbody {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }
  .job-table tr {
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 14px 12px !important;
    background: #ffffff !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important;
    margin-bottom: 0 !important;
  }
  .desktop-vacancies {
    display: none !important;
  }
  .job-table td {
    border: none !important;
    padding: 3px 0 !important;
    position: relative !important;
  }
  .job-table td:last-child {
    padding-top: 10px !important;
    border-top: 1px dashed #e2e8f0 !important;
    margin-top: 8px !important;
  }
  .job-mobile-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    align-items: center !important;
    margin: 8px 0 4px 0 !important;
    font-size: 0.85rem !important;
    color: #475569 !important;
  }
  .btn-apply {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    padding: 11px 16px !important;
    font-size: 0.95rem !important;
    margin-top: 4px !important;
  }
}

/* Badges */
.badge-new {
  background: #dc2626;
  color: #ffffff;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 800;
  display: inline-block;
  margin-left: 6px;
  vertical-align: middle;
}

.btn-apply {
  background: var(--accent);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  display: inline-block;
  font-size: 0.88rem;
  transition: background 0.15s ease;
}

.btn-apply:hover {
  background: var(--accent-dark);
}

/* Sidebar Elements */
.sidebar-telegram {
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  padding: 16px;
  border-radius: 6px;
  margin-bottom: 20px;
  text-align: center;
  width: 100%;
}

.sidebar-telegram h3 {
  color: #0369a1;
  margin-top: 0;
  font-size: 1.1rem;
}

.sidebar-telegram p {
  font-size: 0.88rem;
  color: #0c4a6e;
  margin: 6px 0 12px 0;
}

.sidebar-telegram .btn-tg {
  background: #0284c7;
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 4px;
  text-decoration: none;
  display: block;
  font-weight: 700;
  transition: background 0.15s;
}

.sidebar-telegram .btn-tg:hover {
  background: #0369a1;
}

.sidebar-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 20px;
  width: 100%;
}

.sidebar-box h3 {
  margin-top: 0;
  font-size: 1.05rem;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 6px;
  color: #0f172a;
}

.sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-links li {
  border-bottom: 1px dashed #e2e8f0;
  padding: 8px 0;
}

.sidebar-links li:last-child {
  border-bottom: none;
}

.sidebar-links a {
  color: #0f172a;
  text-decoration: none;
  font-size: 0.95rem;
  display: block;
  font-weight: 500;
}

.sidebar-links a:hover {
  color: var(--primary);
}

/* Ad Placements */
.ad-slot-container {
  margin: 14px 0;
  text-align: center;
  background: #ffffff;
  padding: 8px;
  border: 1px dashed #cbd5e1;
  border-radius: 4px;
  width: 100%;
  overflow: hidden;
}

.ad-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94a3b8;
  margin-bottom: 4px;
}

/* Single Post & Pages Responsive Styling */
.overview-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-top: 4px solid var(--primary);
  border-radius: 6px;
  padding: 14px;
  margin: 16px 0;
  width: 100%;
  overflow-x: auto;
}

.overview-table {
  width: 100%;
  border-collapse: collapse;
}

.overview-table td {
  padding: 8px;
  font-size: 0.92rem;
  border-bottom: 1px solid #f1f5f9;
}

@media (max-width: 480px) {
  .overview-table tr {
    display: flex;
    flex-direction: column;
    padding: 6px 0;
  }
  .overview-table td {
    padding: 2px 0;
    border: none;
  }
}

.links-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  background: #ffffff;
}

.links-table td, .links-table th {
  border: 1px solid #cbd5e1;
  padding: 10px;
  font-size: 0.92rem;
}

@media (max-width: 600px) {
  .links-table, .links-table tbody, .links-table tr, .links-table td {
    display: block;
    width: 100%;
  }
  .links-table tr {
    margin-bottom: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    overflow: hidden;
  }
  .links-table td {
    border: none;
    border-bottom: 1px solid #f1f5f9;
    padding: 8px 10px;
  }
}

.page-container {
  background: #ffffff;
  padding: 16px;
  border-radius: 6px;
  margin: 16px 0;
  border: 1px solid #e2e8f0;
  width: 100%;
}

@media (min-width: 768px) {
  .page-container {
    padding: 24px;
    margin: 20px 0;
  }
}

/* Footer Responsive */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  margin-top: 36px;
  padding: 24px 0 16px 0;
  border-top: 4px solid var(--primary);
  width: 100%;
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}
