/*
Theme Name: SarkariNaukri
Theme URI: https://sarkarinaukri.in
Author: SarkariNaukri Team
Description: Professional Government Jobs Website Theme - Saffron/Navy Tricolor Style
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: sarkarinaukri
*/

:root {
  --saffron: #FF6600;
  --saffron-light: #FF8C00;
  --saffron-pale: #FFF3E0;
  --white: #ffffff;
  --green: #138808;
  --navy: #0a1f44;
  --navy-mid: #1a3a6e;
  --grey-bg: #F4F6FB;
  --grey-text: #555;
  --border: #e2e8f0;
  --shadow: 0 4px 24px rgba(10,31,68,0.10);
  --radius: 12px;
}

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

body {
  font-family: 'Baloo 2', sans-serif;
  background: var(--grey-bg);
  color: var(--navy);
  overflow-x: hidden;
}

/* ========== TOP BAR ========== */
.sn-topbar {
  background: var(--navy);
  color: #afc6ff;
  font-size: 0.78rem;
  letter-spacing: 0.4px;
  padding: 6px 0;
  border-bottom: 2px solid var(--saffron);
}
.sn-topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sn-ticker {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  flex: 1;
}
.sn-ticker-label {
  background: var(--saffron);
  color: white;
  padding: 2px 10px;
  border-radius: 3px;
  font-weight: 700;
  white-space: nowrap;
  font-size: 0.75rem;
}
.sn-ticker-text {
  white-space: nowrap;
  animation: sn-scroll-left 30s linear infinite;
  color: #e0e8ff;
}
@keyframes sn-scroll-left {
  0% { transform: translateX(60%); }
  100% { transform: translateX(-100%); }
}
.sn-topbar-right {
  display: flex;
  gap: 16px;
  align-items: center;
  white-space: nowrap;
  font-size: 0.76rem;
}
.sn-topbar-right span { color: #7fa8ff; }

/* ========== HEADER ========== */
#sn-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #0d2d5e 100%);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.sn-header-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.sn-logo-area {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.sn-logo-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--saffron), #ffaa00);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 4px 14px rgba(255,102,0,0.45);
}
.sn-logo-text h1 {
  font-size: 1.55rem;
  font-weight: 800;
  color: white;
  line-height: 1;
  letter-spacing: -0.5px;
  margin: 0;
}
.sn-logo-text h1 span { color: var(--saffron); }
.sn-logo-text p {
  font-size: 0.72rem;
  color: #8faadd;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 2px;
}
.sn-header-search {
  flex: 1;
  max-width: 400px;
  display: flex;
}
.sn-header-search input {
  flex: 1;
  padding: 10px 16px;
  border: none;
  border-radius: 8px 0 0 8px;
  font-size: 0.9rem;
  outline: none;
  background: rgba(255,255,255,0.12);
  color: white;
  border: 1px solid rgba(255,255,255,0.18);
}
.sn-header-search input::placeholder { color: #8faadd; }
.sn-header-search button {
  padding: 10px 18px;
  background: var(--saffron);
  border: none;
  border-radius: 0 8px 8px 0;
  color: white;
  font-size: 1rem;
  cursor: pointer;
}
.sn-header-stats {
  display: flex;
  gap: 20px;
}
.sn-stat-pill {
  text-align: center;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,0.12);
}
.sn-stat-pill .num { font-size: 1.1rem; font-weight: 800; color: var(--saffron); line-height: 1; }
.sn-stat-pill .lbl { font-size: 0.65rem; color: #8faadd; text-transform: uppercase; letter-spacing: 0.5px; }

/* ========== NAV ========== */
#sn-nav {
  background: linear-gradient(90deg, #FF5500 0%, #FF7A00 40%, #FF6600 100%);
  border-top: 1px solid rgba(255,255,255,0.15);
}
.sn-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 2px;
}
#sn-nav a, #primary-menu li a {
  color: white !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
  white-space: nowrap;
}
#sn-nav a:hover, #primary-menu li a:hover,
#sn-nav a.active { background: rgba(0,0,0,0.2); }
#primary-menu { list-style: none; display: flex; margin: 0; padding: 0; }
#primary-menu li { position: relative; }
#primary-menu li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--navy);
  min-width: 200px;
  border-radius: 0 0 8px 8px;
  box-shadow: var(--shadow);
  z-index: 200;
}
#primary-menu li:hover ul { display: block; }
#primary-menu li ul li a { padding: 10px 16px !important; border-bottom: 1px solid rgba(255,255,255,0.08); }

/* ========== ALERT BANNER ========== */
.sn-alert-banner {
  background: linear-gradient(90deg, var(--green), #1db310);
  color: white;
  text-align: center;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}
.sn-alert-banner a { color: #fff; text-decoration: underline; margin-left: 10px; font-weight: 700; }

/* ========== HERO ========== */
.sn-hero {
  background: linear-gradient(120deg, var(--navy) 0%, #1a3a6e 50%, #0d2457 100%);
  padding: 50px 20px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.sn-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,102,0,0.18) 0%, transparent 70%);
  border-radius: 50%;
}
.sn-hero-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.sn-hero-badge {
  display: inline-block;
  background: rgba(255,102,0,0.18);
  border: 1px solid rgba(255,102,0,0.4);
  color: #ffbb66;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.sn-hero h2 {
  font-size: 2.4rem;
  font-weight: 800;
  color: white;
  line-height: 1.2;
  margin-bottom: 14px;
}
.sn-hero h2 span { color: var(--saffron); }
.sn-hero p { font-size: 1rem; color: #8faadd; margin-bottom: 28px; }
.sn-hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.sn-btn-primary {
  background: linear-gradient(135deg, var(--saffron), #ff8c00);
  color: white;
  padding: 13px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(255,102,0,0.4);
  transition: transform 0.2s;
}
.sn-btn-primary:hover { transform: translateY(-2px); color: white; }
.sn-btn-outline {
  background: transparent;
  color: white;
  padding: 13px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,0.3);
  transition: border-color 0.2s;
}
.sn-btn-outline:hover { border-color: white; color: white; }

/* ========== QUICK CATEGORIES ========== */
.sn-quick-cats {
  max-width: 1200px;
  margin: -24px auto 0;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}
.sn-cats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.sn-cat-card {
  background: white;
  border-radius: var(--radius);
  padding: 20px 14px;
  text-align: center;
  text-decoration: none;
  color: var(--navy);
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  transition: border-color 0.2s, transform 0.2s;
  cursor: pointer;
}
.sn-cat-card:hover { border-color: var(--saffron); transform: translateY(-3px); color: var(--navy); }
.sn-cat-icon { font-size: 2rem; margin-bottom: 8px; display: block; }
.sn-cat-card h3 { font-size: 0.85rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.sn-cat-card span { font-size: 0.72rem; color: var(--saffron); font-weight: 600; }

/* ========== MAIN LAYOUT ========== */
.sn-main-wrap {
  max-width: 1200px;
  margin: 32px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
}

/* ========== SECTION HEADERS ========== */
.sn-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}
.sn-section-head h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.sn-section-head h2::before {
  content: '';
  width: 4px; height: 20px;
  background: var(--saffron);
  border-radius: 2px;
  display: block;
}
.sn-section-head a { font-size: 0.8rem; color: var(--saffron); text-decoration: none; font-weight: 600; }

/* ========== JOB CARDS ========== */
.sn-jobs-list { display: flex; flex-direction: column; }
.sn-job-card {
  background: white;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: background 0.15s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.sn-job-card:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.sn-job-card:last-child { border-radius: 0 0 var(--radius) var(--radius); border-bottom: none; }
.sn-job-card:hover { background: var(--saffron-pale); }
.sn-job-dept {
  min-width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--saffron-pale), #ffe0b2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.sn-job-info { flex: 1; }
.sn-job-info h3 { font-size: 0.92rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; line-height: 1.3; }
.sn-job-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 5px; }
.sn-job-tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}
.tag-posts { background: #e3f0ff; color: #1a5bbf; }
.tag-new { background: var(--green); color: white; }
.tag-hot { background: #ff3333; color: white; }
.tag-state { background: #f0f0f0; color: #444; }
.sn-job-right { text-align: right; min-width: 80px; }
.sn-last-date { font-size: 0.68rem; color: #c0392b; font-weight: 700; }
.sn-last-date span { display: block; color: #999; font-weight: 500; font-size: 0.65rem; }

/* ========== SIDEBAR WIDGETS ========== */
.sn-sidebar { display: flex; flex-direction: column; gap: 20px; }
.sn-widget { background: white; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.sn-widget-head {
  background: linear-gradient(90deg, var(--navy), var(--navy-mid));
  padding: 12px 16px;
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.sn-widget-body { padding: 14px; }

.sn-notif-list { list-style: none; }
.sn-notif-list li {
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  line-height: 1.4;
  display: flex;
  gap: 8px;
}
.sn-notif-list li:last-child { border-bottom: none; }
.sn-notif-list li::before { content: '🔔'; font-size: 0.8rem; flex-shrink: 0; }
.sn-notif-list li a { color: var(--navy); text-decoration: none; font-weight: 600; }
.sn-notif-list li a:hover { color: var(--saffron); }
.sn-notif-date { display: block; font-size: 0.68rem; color: #999; margin-top: 2px; }

.sn-state-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sn-state-btn {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy-mid);
  text-decoration: none;
  text-align: center;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.sn-state-btn:hover { background: var(--saffron); border-color: var(--saffron); color: white; }

.sn-exam-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.sn-exam-item:last-child { border-bottom: none; }
.sn-exam-date-box {
  min-width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--saffron), #ff8c00);
  color: white;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.sn-exam-date-box .day { font-size: 1.1rem; font-weight: 700; line-height: 1; }
.sn-exam-date-box .mon { font-size: 0.6rem; font-weight: 600; text-transform: uppercase; opacity: 0.85; }
.sn-exam-info h4 { font-size: 0.82rem; font-weight: 700; color: var(--navy); }
.sn-exam-info p { font-size: 0.7rem; color: #888; margin-top: 2px; }

/* ========== RESULT / ADMIT CARD ========== */
.sn-result-item {
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: background 0.15s;
}
.sn-result-item:last-child { border-bottom: none; }
.sn-result-item:hover { background: var(--saffron-pale); }
.sn-result-item h4 { font-size: 0.87rem; font-weight: 700; color: var(--navy); margin: 0; }
.sn-result-item p { font-size: 0.7rem; color: #888; margin-top: 2px; }
.sn-badge {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  letter-spacing: 0.3px;
}
.badge-download { background: #e3f0ff; color: #1a5bbf; border: 1px solid #b3d1ff; }
.badge-result { background: #e6f9e6; color: #138808; border: 1px solid #a3dda3; }
.badge-key { background: #fff3e0; color: #b85c00; border: 1px solid #ffd599; }
.badge-syllabus { background: #f3e5f5; color: #7b1fa2; border: 1px solid #ce93d8; }

/* ========== ORGS ========== */
.sn-orgs-section { max-width: 1200px; margin: 0 auto 36px; padding: 0 20px; }
.sn-orgs-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 16px; }
.sn-org-card {
  background: white;
  border-radius: var(--radius);
  padding: 16px 10px;
  text-align: center;
  text-decoration: none;
  color: var(--navy);
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  transition: border-color 0.2s, transform 0.2s;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
}
.sn-org-card:hover { border-color: var(--saffron); transform: translateY(-2px); color: var(--navy); }
.sn-org-card .org-icon { font-size: 1.8rem; margin-bottom: 6px; display: block; }

/* ========== FOOTER ========== */
#sn-footer {
  background: var(--navy);
  color: #8faadd;
  padding: 40px 20px 0;
  margin-top: 20px;
}
.sn-footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sn-footer-brand h3 { color: white; font-size: 1.2rem; margin-bottom: 10px; }
.sn-footer-brand h3 span { color: var(--saffron); }
.sn-footer-brand p { font-size: 0.82rem; line-height: 1.6; max-width: 260px; }
.sn-footer-col h4 {
  color: white;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,102,0,0.3);
}
.sn-footer-col ul { list-style: none; }
.sn-footer-col ul li { margin-bottom: 7px; }
.sn-footer-col ul li a { color: #8faadd; text-decoration: none; font-size: 0.82rem; transition: color 0.2s; }
.sn-footer-col ul li a:hover { color: var(--saffron); }
.sn-footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
}
.sn-tricolor { display: flex; border-radius: 4px; overflow: hidden; }
.sn-tricolor span { width: 24px; height: 6px; display: block; }
.sn-tricolor .s { background: var(--saffron); }
.sn-tricolor .w { background: white; opacity: 0.6; }
.sn-tricolor .g { background: var(--green); }

/* ========== TABS ========== */
.sn-tabs-wrap { background: white; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 24px; }
.sn-tabs-header { display: flex; border-bottom: 2px solid var(--border); background: #f9fafb; }
.sn-tab-btn {
  flex: 1;
  padding: 12px 10px;
  border: none;
  background: transparent;
  font-weight: 600;
  font-size: 0.88rem;
  color: #888;
  cursor: pointer;
  letter-spacing: 0.4px;
  transition: color 0.2s;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}
.sn-tab-btn.active { color: var(--saffron); border-bottom-color: var(--saffron); background: white; }

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .sn-cats-grid { grid-template-columns: repeat(3, 1fr); }
  .sn-main-wrap { grid-template-columns: 1fr; }
  .sn-orgs-grid { grid-template-columns: repeat(3, 1fr); }
  .sn-footer-grid { grid-template-columns: 1fr 1fr; }
  .sn-header-stats { display: none; }
  .sn-hero h2 { font-size: 1.8rem; }
}
@media (max-width: 600px) {
  .sn-cats-grid { grid-template-columns: repeat(2, 1fr); }
  .sn-orgs-grid { grid-template-columns: repeat(2, 1fr); }
  .sn-footer-grid { grid-template-columns: 1fr; }
  .sn-header-search { display: none; }
  #sn-nav a { padding: 10px 10px; font-size: 0.82rem; }
}
