/*
Theme Name: SarkariAlertPro
Theme URI: https://yoursite.com
Author: Your Name
Author URI: https://yoursite.com
Description: Government Job Alert WordPress Theme with AI-powered auto-posting from Claude. Navy and Orange color scheme.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: sarkari-alert-pro
Tags: government-jobs, job-alert, sarkari, custom-colors, two-columns
*/

:root {
  --navy: #1B3470;
  --navy-dark: #112250;
  --navy-mid: #243f87;
  --orange: #F47C1E;
  --orange-dark: #d4680f;
  --orange-light: #fff4ea;
  --white: #ffffff;
  --gray-50: #F7F8FC;
  --gray-100: #EEF0F8;
  --gray-200: #D8DBE8;
  --gray-400: #9198B4;
  --gray-600: #5A6180;
  --text: #1a2040;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 2px 16px rgba(27,52,112,0.10);
  --shadow-lg: 0 8px 32px rgba(27,52,112,0.15);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Plus Jakarta Sans', sans-serif; color: var(--text); background: #f4f5f9; font-size: 14px; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

/* ── TOP BAR ── */
.topbar { background: var(--navy-dark); color: rgba(255,255,255,0.7); font-size: 12px; padding: 7px 4%; display: flex; justify-content: space-between; align-items: center; }
.topbar-left { display: flex; gap: 20px; }
.topbar-right a { color: rgba(255,255,255,0.6); font-size: 12px; margin-left: 14px; transition: color 0.2s; }
.topbar-right a:hover { color: var(--orange); }

/* ── NAV ── */
#site-navigation { background: var(--navy); padding: 0 4%; display: flex; align-items: center; justify-content: space-between; height: 66px; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 12px rgba(0,0,0,0.2); }
.nav-logo { display: flex; align-items: center; gap: 10px; }
.logo-box { width: 40px; height: 40px; background: var(--orange); border-radius: 9px; display: flex; align-items: center; justify-content: center; }
.logo-box img { width: 24px; height: 24px; filter: brightness(0) invert(1); }
.site-title a { font-size: 20px; font-weight: 800; color: white; }
.site-title a span { color: var(--orange); }
.main-navigation ul { display: flex; align-items: center; gap: 4px; list-style: none; }
.main-navigation ul li a { font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.75); padding: 7px 14px; border-radius: 7px; transition: all 0.2s; display: block; }
.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item a { background: rgba(255,255,255,0.12); color: white; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.btn-bell { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: white; padding: 7px 16px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.btn-bell:hover { background: rgba(255,255,255,0.18); }
.btn-subscribe { background: var(--orange); color: white; padding: 8px 18px; border-radius: 8px; font-size: 13px; font-weight: 700; cursor: pointer; border: none; transition: all 0.2s; }
.btn-subscribe:hover { background: var(--orange-dark); }

/* ── TICKER ── */
.ticker { background: var(--orange); padding: 8px 4%; display: flex; align-items: center; gap: 16px; overflow: hidden; }
.ticker-label { background: var(--navy); color: white; font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 4px; white-space: nowrap; letter-spacing: 0.06em; }
.ticker-track { flex: 1; overflow: hidden; }
.ticker-inner { display: flex; gap: 48px; animation: tick 35s linear infinite; white-space: nowrap; }
.ticker-inner span { font-size: 12px; font-weight: 600; color: white; }
@keyframes tick { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ── HERO ── */
.hero { background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%); padding: 40px 4% 36px; display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.hero-tag { display: inline-flex; align-items: center; gap: 7px; background: rgba(244,124,30,0.18); border: 1px solid rgba(244,124,30,0.4); color: #ffb068; font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: 20px; margin-bottom: 16px; }
.hero h1 { font-size: 30px; font-weight: 800; color: white; line-height: 1.25; margin-bottom: 12px; }
.hero h1 span { color: var(--orange); }
.hero p { font-size: 14px; color: rgba(255,255,255,0.65); line-height: 1.7; margin-bottom: 22px; max-width: 520px; }
.search-bar { display: flex; background: white; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-lg); margin-bottom: 24px; }
.search-bar input[type="search"] { flex: 1; border: none; outline: none; padding: 13px 16px; font-size: 14px; font-family: inherit; color: var(--text); }
.search-bar select { border: none; border-left: 1px solid var(--gray-100); outline: none; padding: 13px 14px; font-size: 13px; font-family: inherit; color: var(--gray-600); background: white; cursor: pointer; }
.search-bar button { background: var(--orange); color: white; border: none; padding: 13px 22px; font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit; transition: background 0.2s; }
.search-bar button:hover { background: var(--orange-dark); }
.hero-stats { display: flex; gap: 28px; }
.h-stat-num { font-size: 22px; font-weight: 800; color: var(--orange); }
.h-stat-label { font-size: 11px; color: rgba(255,255,255,0.5); margin-top: 1px; }
.latest-card { background: white; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.latest-card-header { background: var(--orange); padding: 12px 16px; display: flex; align-items: center; gap: 8px; }
.latest-card-header span { font-size: 13px; font-weight: 700; color: white; }
.blink { width: 8px; height: 8px; border-radius: 50%; background: white; animation: blink 1s infinite; }
@keyframes blink { 0%,100%{opacity:1}50%{opacity:0.3} }
.alert-item { padding: 12px 16px; border-bottom: 1px solid var(--gray-100); display: flex; gap: 10px; align-items: flex-start; transition: background 0.2s; cursor: pointer; }
.alert-item:hover { background: var(--gray-50); }
.alert-item:last-child { border-bottom: none; }
.alert-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); margin-top: 5px; flex-shrink: 0; }
.alert-title { font-size: 12px; font-weight: 600; color: var(--navy); line-height: 1.4; margin-bottom: 3px; }
.alert-meta { font-size: 11px; color: var(--gray-400); }

/* ── BADGES ── */
.badge { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 10px; display: inline-block; margin-top: 3px; }
.badge-new { background: var(--orange); color: white; }
.badge-central { background: #e8f0ff; color: var(--navy); }
.badge-state { background: #e8f8f0; color: #1a6b3a; }
.badge-hot { background: #ffeaea; color: #c0392b; }

/* ── MAIN LAYOUT ── */
.site-content { max-width: 100%; padding: 28px 4%; display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }

/* ── CATEGORIES ── */
.cats { padding: 28px 4% 0; }
.cats-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.cat-card { background: white; border-radius: var(--radius-lg); padding: 18px 14px; text-align: center; border: 1px solid var(--gray-100); box-shadow: var(--shadow); cursor: pointer; transition: all 0.2s; }
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--orange); }
.cat-icon { font-size: 24px; margin-bottom: 8px; }
.cat-name { font-size: 12px; font-weight: 700; color: var(--navy); margin-bottom: 3px; }
.cat-count { font-size: 11px; color: var(--gray-400); }

/* ── FILTER BAR ── */
.filter-bar { background: white; border-radius: var(--radius); padding: 14px 18px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 20px; box-shadow: var(--shadow); border: 1px solid var(--gray-100); }
.filter-label { font-size: 12px; font-weight: 700; color: var(--navy); margin-right: 4px; }
.filter-chip { font-size: 12px; padding: 5px 14px; border-radius: 20px; border: 1.5px solid var(--gray-200); background: white; color: var(--gray-600); cursor: pointer; font-weight: 500; transition: all 0.2s; font-family: inherit; }
.filter-chip:hover, .filter-chip.active { background: var(--navy); color: white; border-color: var(--navy); }

/* ── SECTION HEADING ── */
.section-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.section-heading h2 { font-size: 18px; font-weight: 700; color: var(--navy); }
.section-heading a { font-size: 13px; color: var(--orange); font-weight: 600; }

/* ── JOB CARD (single post style) ── */
.job-card { background: white; border-radius: var(--radius-lg); margin-bottom: 14px; border: 1px solid var(--gray-100); box-shadow: var(--shadow); overflow: hidden; transition: all 0.2s; }
.job-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.job-card-top { padding: 16px 18px 14px; display: flex; gap: 14px; align-items: flex-start; border-bottom: 1px solid var(--gray-100); }
.job-logo { width: 48px; height: 48px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; flex-shrink: 0; }
.job-logo-navy { background: var(--navy); color: white; }
.job-logo-orange { background: var(--orange-light); color: var(--orange); }
.job-title { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 3px; }
.job-title a { color: inherit; }
.job-title a:hover { color: var(--orange); }
.job-org { font-size: 12px; color: var(--gray-600); margin-bottom: 6px; }
.job-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.jbadge { font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 10px; }
.jb-navy { background: #e8f0ff; color: var(--navy); }
.jb-orange { background: var(--orange-light); color: var(--orange-dark); }
.jb-green { background: #e8f8f0; color: #1a6b3a; }
.jb-new { background: var(--orange); color: white; }
.job-card-meta { padding: 12px 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.meta-cell .meta-key { color: var(--gray-400); font-size: 11px; margin-bottom: 2px; }
.meta-cell .meta-val { font-weight: 600; color: var(--text); font-size: 13px; }
.job-card-footer { padding: 12px 18px; background: var(--gray-50); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.deadline { font-size: 12px; font-weight: 600; color: var(--gray-600); }
.deadline span { color: var(--orange); }
.job-actions { display: flex; gap: 8px; }
.btn-apply { background: var(--navy); color: white; border: none; padding: 7px 18px; border-radius: 7px; font-size: 12px; font-weight: 700; cursor: pointer; font-family: inherit; transition: all 0.2s; }
.btn-apply:hover { background: var(--navy-mid); }
.btn-apply-orange { background: var(--orange); }
.btn-apply-orange:hover { background: var(--orange-dark); }
.btn-save { background: white; border: 1.5px solid var(--gray-200); color: var(--gray-600); padding: 7px 14px; border-radius: 7px; font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit; transition: all 0.2s; }
.btn-save:hover { border-color: var(--navy); color: var(--navy); }

/* ── SINGLE POST ── */
.single-job-hero { background: linear-gradient(135deg, var(--navy-dark), var(--navy)); padding: 32px 4%; color: white; }
.single-job-hero h1 { font-size: 26px; font-weight: 800; color: white; margin-bottom: 8px; }
.single-job-hero .org { font-size: 14px; color: rgba(255,255,255,0.65); margin-bottom: 14px; }
.entry-content { background: white; border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); margin-bottom: 20px; }
.entry-content h2 { font-size: 17px; font-weight: 700; color: var(--navy); border-left: 3px solid var(--orange); padding-left: 12px; margin: 20px 0 12px; }
.entry-content h3 { font-size: 15px; font-weight: 700; color: var(--navy); margin: 14px 0 8px; }
.entry-content p { font-size: 14px; color: var(--gray-600); line-height: 1.75; margin-bottom: 12px; }
.entry-content table { width: 100%; border-collapse: collapse; margin-bottom: 16px; font-size: 13px; }
.entry-content table th { background: var(--navy); color: white; padding: 10px 14px; text-align: left; }
.entry-content table td { padding: 10px 14px; border-bottom: 1px solid var(--gray-100); }
.entry-content table tr:nth-child(even) td { background: var(--gray-50); }
.entry-content ul { padding-left: 20px; margin-bottom: 12px; }
.entry-content ul li { font-size: 14px; color: var(--gray-600); line-height: 1.7; }
.apply-box { background: var(--navy); border-radius: var(--radius-lg); padding: 24px; color: white; text-align: center; margin-bottom: 20px; }
.apply-box h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.apply-box p { font-size: 13px; color: rgba(255,255,255,0.65); margin-bottom: 16px; }
.btn-apply-big { background: var(--orange); color: white; border: none; padding: 13px 36px; border-radius: 10px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit; transition: all 0.2s; }
.btn-apply-big:hover { background: var(--orange-dark); }

/* ── SIDEBAR ── */
.widget-area {}
.sidebar-card { background: white; border-radius: var(--radius-lg); border: 1px solid var(--gray-100); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 20px; }
.sidebar-header { background: var(--navy); color: white; padding: 12px 16px; font-size: 13px; font-weight: 700; }
.sidebar-header-orange { background: var(--orange); }
.sidebar-body { padding: 14px 16px; }
.sidebar-item { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--gray-100); cursor: pointer; }
.sidebar-item:last-child { border-bottom: none; }
.sidebar-item:hover .si-label { color: var(--orange); }
.si-label { font-size: 13px; font-weight: 500; color: var(--text); transition: color 0.2s; }
.si-count { font-size: 11px; font-weight: 700; background: var(--gray-100); color: var(--gray-600); padding: 2px 8px; border-radius: 10px; }
.exam-item { padding: 10px 0; border-bottom: 1px solid var(--gray-100); }
.exam-item:last-child { border-bottom: none; }
.exam-name { font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 3px; }
.exam-date { font-size: 11px; color: var(--gray-400); }
.exam-prog { height: 4px; background: var(--gray-100); border-radius: 2px; margin-top: 6px; overflow: hidden; }
.exam-prog-fill { height: 100%; border-radius: 2px; background: var(--orange); }
.wp-connect-card { background: linear-gradient(135deg, var(--navy), var(--navy-mid)); border-radius: var(--radius-lg); padding: 18px; color: white; margin-bottom: 20px; }
.wp-connect-title { font-size: 14px; font-weight: 700; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.wp-logo-sm { width: 26px; height: 26px; background: #21759b; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; color: white; }
.wp-connect-desc { font-size: 12px; color: rgba(255,255,255,0.6); line-height: 1.6; margin-bottom: 14px; }
.wp-form input { width: 100%; padding: 8px 10px; border-radius: 7px; border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.1); color: white; font-size: 12px; font-family: inherit; margin-bottom: 8px; }
.wp-form input::placeholder { color: rgba(255,255,255,0.4); }
.btn-wp-connect { width: 100%; background: var(--orange); color: white; border: none; padding: 9px; border-radius: 7px; font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; }
.tg-card { background: linear-gradient(135deg,#0088cc,#006aaa); border-radius: var(--radius-lg); padding: 16px; color: white; margin-bottom: 20px; display: flex; gap: 12px; align-items: center; }
.tg-icon { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.btn-tg { background: white; color: #0088cc; border: none; padding: 6px 14px; border-radius: 6px; font-size: 12px; font-weight: 700; cursor: pointer; margin-top: 8px; font-family: inherit; }

/* ── STATES ── */
.states { padding: 0 4% 28px; }
.states-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.state-card { background: white; border-radius: var(--radius); padding: 14px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--gray-100); box-shadow: var(--shadow); cursor: pointer; transition: all 0.2s; }
.state-card:hover { border-color: var(--navy); background: var(--navy); }
.state-card:hover .state-name { color: white; }
.state-card:hover .state-count { color: rgba(255,255,255,0.6); }
.state-name { font-size: 13px; font-weight: 600; color: var(--navy); transition: color 0.2s; }
.state-count { font-size: 11px; color: var(--gray-400); transition: color 0.2s; }

/* ── PAGINATION ── */
.pagination { display: flex; gap: 8px; justify-content: center; padding: 20px 0; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; font-size: 13px; font-weight: 600; background: white; color: var(--navy); border: 1px solid var(--gray-200); transition: all 0.2s; }
.page-numbers:hover, .page-numbers.current { background: var(--navy); color: white; border-color: var(--navy); }

/* ── FOOTER ── */
#colophon { background: var(--navy-dark); color: rgba(255,255,255,0.6); padding: 48px 4% 24px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 2.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-about p { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,0.45); margin-top: 12px; max-width: 240px; }
.footer-logo-text { font-size: 18px; font-weight: 800; color: white; }
.footer-logo-text span { color: var(--orange); }
.widget-title { font-size: 12px; font-weight: 700; color: white; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.footer-widget-area ul { list-style: none; }
.footer-widget-area ul li a { display: block; font-size: 13px; color: rgba(255,255,255,0.45); margin-bottom: 9px; transition: color 0.2s; }
.footer-widget-area ul li a:hover { color: var(--orange); }
.site-info { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px; display: flex; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,0.3); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .latest-card { display: none; }
  .site-content { grid-template-columns: 1fr; }
  .cats-grid { grid-template-columns: repeat(3, 1fr); }
  .states-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .job-card-meta { grid-template-columns: repeat(2, 1fr); }
  .main-navigation { display: none; }
}
