/*
Theme Name: SarkariExam Theme
Theme URI: https://vacancyexam.in
Author: VacancyExam
Author URI: https://vacancyexam.in
Description: India's No.1 Government Job Portal Theme - SarkariExam. Professional Sarkari Naukri website theme with latest jobs, admit card, results, answer key sections.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sarkariexam
Tags: government, jobs, news, hindi, portal, sarkari
*/

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

:root {
  --red: #cc0000;
  --dark-red: #990000;
  --orange: #ff6600;
  --yellow: #ffcc00;
  --bg: #f4f4f4;
  --white: #ffffff;
  --text: #222222;
  --light-text: #555555;
  --border: #dddddd;
  --link: #cc0000;
  --section-head: #cc0000;
}

body {
  font-family: 'Noto Sans', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

a { text-decoration: none; color: var(--link); }
a:hover { text-decoration: underline; color: var(--dark-red); }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

/* ===== TOP BAR ===== */
.top-bar {
  background: #222;
  color: #ccc;
  padding: 5px 0;
  font-size: 12px;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}
.top-bar a { color: #ffcc00; font-weight: 600; }
.top-bar .date { color: #aaa; }

/* ===== HEADER ===== */
header.site-header {
  background: linear-gradient(135deg, var(--dark-red) 0%, var(--red) 60%, #ff4500 100%);
  padding: 12px 0;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}
header.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.logo-area { display: flex; align-items: center; gap: 14px; }
.logo-icon {
  width: 60px; height: 60px;
  background: var(--white);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.logo-text { color: white; }
.logo-text h1 {
  font-family: 'Rajdhani', 'Arial', sans-serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
}
.logo-text h1 a { color: white; text-decoration: none; }
.logo-text p {
  font-size: 11px;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.5px;
}
.header-stats { display: flex; gap: 16px; flex-wrap: wrap; }
.stat-box {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  padding: 6px 14px;
  text-align: center;
  color: white;
}
.stat-box .num { font-size: 18px; font-weight: 700; font-family: 'Rajdhani', sans-serif; }
.stat-box .lbl { font-size: 10px; color: rgba(255,255,255,0.8); }

/* ===== NAV ===== */
nav.site-nav {
  background: #222;
  border-bottom: 3px solid var(--red);
  position: sticky; top: 0; z-index: 100;
}
nav.site-nav .container { display: flex; align-items: center; overflow-x: auto; }
nav.site-nav ul { display: flex; margin: 0; padding: 0; list-style: none; }
nav.site-nav ul li a {
  display: block;
  color: #eee;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  border-right: 1px solid #444;
  transition: background 0.2s, color 0.2s;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.5px;
  text-decoration: none;
}
nav.site-nav ul li a:hover,
nav.site-nav ul li.current-menu-item > a,
nav.site-nav ul li.current_page_item > a {
  background: var(--red);
  color: white;
  text-decoration: none;
}

/* ===== BREAKING NEWS TICKER ===== */
.ticker-wrap {
  background: var(--yellow);
  border-bottom: 2px solid var(--orange);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.ticker-label {
  background: var(--red);
  color: white;
  padding: 6px 14px;
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
  display: flex; align-items: center; gap: 5px;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 1px;
  flex-shrink: 0;
}
.ticker-label .dot {
  width: 8px; height: 8px;
  background: #ffcc00;
  border-radius: 50%;
  animation: blink 1s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.2} }
.ticker-content { padding: 6px 0; overflow: hidden; flex: 1; }
.ticker-content marquee { font-size: 12.5px; font-weight: 600; color: #333; }
.ticker-content marquee a { color: var(--dark-red); margin: 0 20px; }
.ticker-content marquee a::before { content: "🔔 "; }

/* ===== ALERT BAR ===== */
.alert-bar {
  background: linear-gradient(90deg, #004499, #0066dd);
  color: white;
  text-align: center;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 600;
}
.alert-bar a { color: #ffcc00; }

/* ===== CONTAINER ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 14px; }

/* ===== MAIN LAYOUT ===== */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 16px;
  padding: 14px 0;
}
@media(max-width:768px){ .main-layout { grid-template-columns: 1fr; } }

/* ===== SECTION HEADER ===== */
.section-header {
  background: var(--red);
  color: white;
  padding: 8px 14px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: 4px 4px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
}
.section-header a { color: #ffcc00; font-size: 12px; font-family: 'Noto Sans', sans-serif; font-weight: 400; text-decoration: none; }
.section-header a:hover { text-decoration: underline; }

/* ===== CARD / BOX ===== */
.box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0 0 4px 4px;
  margin-bottom: 0;
  overflow: hidden;
}
.box-wrap { margin-bottom: 16px; }

/* ===== JOB LIST ===== */
.job-list { margin: 0; padding: 0; list-style: none; }
.job-list li {
  border-bottom: 1px dotted #ddd;
  padding: 8px 14px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  transition: background 0.15s;
}
.job-list li:hover { background: #fff8f8; }
.job-list li::before {
  content: "▶";
  color: var(--red);
  font-size: 10px;
  margin-top: 3px;
  flex-shrink: 0;
}
.job-list li a { color: #1a1a1a; font-size: 13px; line-height: 1.4; }
.job-list li a:hover { color: var(--red); text-decoration: none; }
.job-list .badge {
  display: inline-block;
  background: var(--red);
  color: white;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 10px;
  margin-left: 6px;
  vertical-align: middle;
  white-space: nowrap;
  font-weight: 600;
}
.job-list .badge.new { background: #009900; }
.job-list .badge.hot { background: #ff6600; }
.job-list .badge.imp { background: #9900cc; }
.job-list .date-tag {
  font-size: 11px;
  color: #888;
  white-space: nowrap;
  margin-left: auto;
  flex-shrink: 0;
}

/* ===== CATEGORY GRID ===== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 12px;
}
@media(max-width:600px){ .cat-grid { grid-template-columns: repeat(2,1fr); } }
.cat-card {
  background: linear-gradient(135deg, #fff5f5, #ffe8e8);
  border: 1px solid #ffcccc;
  border-radius: 8px;
  padding: 14px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-decoration: none;
}
.cat-card:hover {
  background: var(--red);
  border-color: var(--dark-red);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(204,0,0,0.25);
  text-decoration: none;
}
.cat-card:hover .cat-name, .cat-card:hover .cat-count { color: white; }
.cat-icon { font-size: 26px; }
.cat-name { font-size: 12px; font-weight: 700; color: var(--text); font-family: 'Rajdhani', sans-serif; letter-spacing: 0.3px; }
.cat-count { font-size: 11px; color: var(--red); font-weight: 600; }

/* ===== TWO COLUMN INSIDE MAIN ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media(max-width:580px){ .two-col { grid-template-columns: 1fr; } }

/* ===== STATE JOBS ===== */
.state-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 6px;
  padding: 10px;
}
.state-item {
  background: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  color: var(--text);
}
.state-item:hover { background: #ffeeee; border-color: #ffaaaa; text-decoration: none; }
.state-item .flag { font-size: 14px; }

/* ===== SIDEBAR ===== */
.sidebar { display: flex; flex-direction: column; gap: 14px; }
.sidebar-section .section-header { font-size: 15px; }

/* Search box */
.search-box { padding: 10px; }
.search-box input {
  width: 100%;
  padding: 8px 12px;
  border: 2px solid var(--border);
  border-radius: 4px 0 0 4px;
  font-size: 13px;
  outline: none;
  border-right: none;
}
.search-box input:focus { border-color: var(--red); }
.search-box form { display: flex; }
.search-box button {
  background: var(--red);
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

/* ===== QUICK LINKS ===== */
.quick-links {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 8px;
  padding: 10px;
}
.quick-link-btn {
  background: linear-gradient(135deg, #cc0000, #ff3300);
  color: white;
  text-align: center;
  padding: 10px 6px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  text-decoration: none;
}
.quick-link-btn:nth-child(2) { background: linear-gradient(135deg, #006600, #009900); }
.quick-link-btn:nth-child(3) { background: linear-gradient(135deg, #004499, #0066cc); }
.quick-link-btn:nth-child(4) { background: linear-gradient(135deg, #884400, #cc6600); }
.quick-link-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.2); color: white; text-decoration: none; }
.quick-link-btn .ql-icon { font-size: 20px; }

/* ===== NOTICE BOX ===== */
.notice-box {
  background: #fffbe6;
  border: 1px solid #ffd700;
  border-left: 4px solid #ff6600;
  border-radius: 4px;
  padding: 10px 14px;
  margin: 10px;
  font-size: 12.5px;
}
.notice-box strong { color: var(--red); display: block; margin-bottom: 4px; }

/* ===== TAG CLOUD ===== */
.tag-cloud { padding: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  background: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 3px 10px;
  font-size: 11px;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  color: var(--text);
}
.tag:hover { background: var(--red); color: white; border-color: var(--red); text-decoration: none; }

/* ===== FEATURED BANNER ===== */
.featured-banner {
  background: linear-gradient(135deg, #fff5e6, #ffe0b2);
  border: 2px solid #ff9800;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.featured-banner .fb-icon { font-size: 32px; }
.featured-banner h3 { font-size: 14px; color: #cc4400; font-weight: 700; margin-bottom: 2px; }
.featured-banner p { font-size: 12px; color: #666; }
.featured-banner .apply-btn {
  background: var(--red);
  color: white;
  padding: 7px 16px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  font-family: 'Rajdhani', sans-serif;
  margin-left: auto;
  flex-shrink: 0;
  text-decoration: none;
}
.featured-banner .apply-btn:hover { background: var(--dark-red); text-decoration: none; color: white; }

/* ===== EXAM CALENDAR ===== */
.exam-calendar { padding: 0; }
.exam-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px dotted #ddd;
}
.exam-date {
  background: var(--red);
  color: white;
  border-radius: 4px;
  padding: 4px 8px;
  text-align: center;
  min-width: 45px;
  flex-shrink: 0;
}
.exam-date .d { font-size: 16px; font-weight: 700; font-family: 'Rajdhani', sans-serif; line-height: 1; }
.exam-date .m { font-size: 10px; }
.exam-info a { font-size: 12.5px; color: #222; display: block; text-decoration: none; }
.exam-info a:hover { color: var(--red); }
.exam-info small { font-size: 11px; color: #888; }

/* ===== SINGLE POST ===== */
.post-content { background: white; padding: 20px; border: 1px solid var(--border); border-radius: 4px; }
.post-content h1, .post-content h2, .post-content h3 { color: var(--red); margin: 15px 0 8px; }
.post-content table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.post-content table th { background: var(--red); color: white; padding: 8px 12px; text-align: left; font-size: 13px; }
.post-content table td { padding: 7px 12px; border: 1px solid #ddd; font-size: 13px; }
.post-content table tr:nth-child(even) td { background: #fff8f8; }
.post-content .apply-link { display: inline-block; background: var(--red); color: white; padding: 10px 24px; border-radius: 4px; font-weight: 700; margin: 8px 4px; text-decoration: none; font-family: 'Rajdhani', sans-serif; font-size: 15px; }
.post-content .apply-link:hover { background: var(--dark-red); }

/* ===== FOOTER ===== */
footer.site-footer {
  background: #1a1a1a;
  color: #ccc;
  padding: 30px 0 0;
  margin-top: 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #333;
}
@media(max-width:700px){ .footer-grid { grid-template-columns: repeat(2,1fr); } }
.footer-col h4 {
  color: var(--yellow);
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  border-bottom: 1px solid #333;
  padding-bottom: 6px;
  letter-spacing: 0.5px;
}
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col ul li { margin-bottom: 5px; }
.footer-col ul li a { color: #aaa; font-size: 12px; }
.footer-col ul li a:hover { color: var(--yellow); }
.footer-bottom {
  text-align: center;
  padding: 12px 0;
  font-size: 12px;
  color: #666;
}
.footer-bottom a { color: var(--yellow); }

/* ===== SCROLL TOP ===== */
.scroll-top {
  position: fixed;
  bottom: 20px; right: 20px;
  background: var(--red);
  color: white;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
  z-index: 999;
  transition: background 0.2s;
  border: none;
}
.scroll-top:hover { background: var(--dark-red); }

/* ===== FLOATING SOCIAL BAR ===== */
#social-left-bar {
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  z-index: 9999;
  background: #ffffff;
  padding: 12px 8px;
  border-radius: 0 12px 12px 0;
  box-shadow: 3px 0 15px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
}
#social-left-bar h3 {
  margin: 0 0 12px 0;
  font-size: 13px;
  font-weight: bold;
  color: #333;
  text-align: center;
  line-height: 1.2;
}
#social-left-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  margin: 6px 0;
  color: white;
  font-size: 20px;
  text-decoration: none;
  border-radius: 50%;
  transition: all 0.3s ease;
}
#social-left-bar a.facebook { background: #1877F2; }
#social-left-bar a.whatsapp { background: #25D366; }
#social-left-bar a.telegram { background: #0088cc; }
#social-left-bar a.youtube  { background: #FF0000; }
#social-left-bar a:hover { transform: scale(1.12); box-shadow: 0 4px 12px rgba(0,0,0,0.25); }
#social-left-bar a.facebook:hover { background: #0e5aa8; }
#social-left-bar a.whatsapp:hover { background: #1da851; }
#social-left-bar a.telegram:hover { background: #006699; }
#social-left-bar a.youtube:hover  { background: #c00; }

/* ===== PAGINATION ===== */
.pagination { text-align: center; padding: 16px 0; }
.pagination .page-numbers {
  display: inline-block;
  padding: 6px 12px;
  margin: 2px;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: var(--text);
  font-size: 13px;
  text-decoration: none;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover { background: var(--red); color: white; border-color: var(--red); }

/* ===== WIDGETS ===== */
.widget { margin-bottom: 16px; }
.widget-title { /* styled via section-header class */ }

/* ===== RESPONSIVE ===== */
@media(max-width:480px) {
  .logo-text h1 { font-size: 22px; }
  .header-stats { display: none; }
  .featured-banner { flex-wrap: wrap; }
  .state-grid { grid-template-columns: repeat(2,1fr); }
}
