/*
Theme Name: AllSarkariResult SuperFast
Theme URI: https://allsarkariresult.in
Author: AllSarkariResult Team
Author URI: https://allsarkariresult.in
Description: Ultra-fast 100/100 PageSpeed SEO Optimized Sarkari Result WordPress Theme with zero render-blocking CSS, 6-category single-box layout, and highlighted single post typography.
Version: 3.0.0
Text Domain: allsarkariresult
*/

/* CSS Reset & Variables */
:root {
  --red: #b91c1c;
  --dark-red: #881337;
  --gold: #d97706;
  --blue: #1d4ed8;
  --green: #15803d;
  --purple: #7e22ce;
  --text-dark: #0f172a;
  --text-muted: #475569;
  --bg-light: #f8fafc;
  --border: #e2e8f0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

/* Container */
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 12px; }

/* Ticker */
.ticker-bar {
  background: #7f1d1d;
  color: #fff;
  padding: 6px 12px;
  font-size: 13px;
  display: flex;
  align-items: center;
}
.ticker-badge {
  background: #facc15;
  color: #713f12;
  font-weight: 800;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
  margin-right: 10px;
  flex-shrink: 0;
}
.ticker-bar marquee { font-weight: 600; }

/* Header */
.site-header {
  background: #ffffff;
  border-bottom: 2px solid var(--red);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}
.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}
.site-logo { display: flex; align-items: center; gap: 8px; }
.logo-badge {
  background: var(--red);
  color: #fff;
  font-weight: 900;
  font-size: 18px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}
.logo-title { font-size: 20px; font-weight: 900; color: var(--red); letter-spacing: -0.5px; }
.logo-title span { color: var(--gold); }
.logo-title .in { font-size: 11px; background: #fee2e2; color: #991b1b; padding: 1px 4px; border-radius: 3px; }

/* Search Bar */
.search-form { display: flex; position: relative; width: 280px; }
.search-form input {
  width: 100%;
  padding: 6px 12px;
  border: 1px solid #f87171;
  border-radius: 20px;
  font-size: 12px;
  outline: none;
}
.btn-tools {
  background: #f59e0b;
  color: #451a03;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

/* Nav Menu */
.main-nav { background: var(--red); color: #fff; }
.nav-scroll {
  display: flex;
  overflow-x: auto;
  white-space: nowrap;
  gap: 4px;
  padding: 6px 0;
}
.nav-scroll a {
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 4px;
  transition: 0.15s;
}
.nav-scroll a:hover { background: #991b1b; }
.nav-scroll a.highlight-tool { background: #facc15; color: #451a03; font-weight: 900; }

/* Quick Action Strip */
.action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  margin: 14px 0;
}
.action-btn {
  text-align: center;
  padding: 10px 6px;
  border-radius: 6px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.bg-jobs { background: #b91c1c; }
.bg-admit { background: #1d4ed8; }
.bg-results { background: #15803d; }
.bg-answer { background: #d97706; }
.bg-yojana { background: #7e22ce; }
.bg-tools { background: #4338ca; }

/* 6 Equal Grid Boxes (1 for each Category) */
.boxes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 16px 0;
}
@media (max-width: 900px) {
  .boxes-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .boxes-grid { grid-template-columns: 1fr; }
}

.sarkari-box {
  background: #ffffff;
  border-radius: 8px;
  border: 2px solid;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}
.box-header {
  padding: 8px 12px;
  color: #ffffff;
  font-weight: 900;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.box-header .btn-view {
  background: #ffffff;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 800;
  border-radius: 3px;
  text-transform: uppercase;
}
.box-list { list-style: none; font-size: 13px; flex: 1; }
.box-list li {
  padding: 9px 12px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.box-list li:hover { background: #fef2f2; }
.box-list a { font-weight: 600; color: #1e293b; line-height: 1.35; flex: 1; }
.box-list a:hover { color: var(--red); }
.badge-new {
  font-size: 9px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 3px;
  background: #fee2e2;
  color: #b91c1c;
  margin-left: 4px;
}

/* Category Colors */
.border-jobs { border-color: #b91c1c; }
.head-jobs { background: #b91c1c; }
.head-jobs .btn-view { color: #b91c1c; }

.border-admit { border-color: #1d4ed8; }
.head-admit { background: #1d4ed8; }
.head-admit .btn-view { color: #1d4ed8; }

.border-results { border-color: #15803d; }
.head-results { background: #15803d; }
.head-results .btn-view { color: #15803d; }

.border-answer { border-color: #d97706; }
.head-answer { background: #d97706; }
.head-answer .btn-view { color: #d97706; }

.border-yojana { border-color: #7e22ce; }
.head-yojana { background: #7e22ce; }
.head-yojana .btn-view { color: #7e22ce; }

.border-admission { border-color: #0f766e; }
.head-admission { background: #0f766e; }
.head-admission .btn-view { color: #0f766e; }

/* SINGLE POST LOOK & HIGHLIGHTED HEADINGS */
.single-container { max-width: 860px; margin: 16px auto; }
.single-card {
  background: #ffffff;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

/* Flash Live Update Box */
.live-update-alert {
  background: #fffbeb;
  border-left: 5px solid #f59e0b;
  padding: 12px 16px;
  margin: 14px 0;
  border-radius: 0 6px 6px 0;
}
.live-update-alert h4 { color: #92400e; font-size: 14px; font-weight: 900; margin-bottom: 4px; }
.live-update-alert p { font-size: 13px; color: #78350f; font-weight: 600; }
.live-update-alert a.alert-btn {
  display: inline-block;
  margin-top: 8px;
  background: #b91c1c;
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

/* High-Contrast Highlighted Headings */
.post-title {
  font-size: 24px;
  font-weight: 900;
  color: #b91c1c;
  line-height: 1.3;
  margin-bottom: 12px;
  border-bottom: 2px solid #fee2e2;
  padding-bottom: 8px;
}
@media (max-width: 600px) { .post-title { font-size: 20px; } }

.single-card h2, .entry-content h2 {
  font-size: 17px;
  font-weight: 900;
  color: #ffffff;
  background: linear-gradient(90deg, #b91c1c 0%, #991b1b 100%);
  padding: 8px 14px;
  border-radius: 5px;
  margin: 22px 0 12px 0;
  box-shadow: 0 2px 4px rgba(185, 28, 28, 0.15);
}
.single-card h3, .entry-content h3 {
  font-size: 15px;
  font-weight: 800;
  color: #1e293b;
  border-left: 4px solid #b91c1c;
  padding-left: 8px;
  margin: 16px 0 8px 0;
  background: #f8fafc;
  padding-top: 4px;
  padding-bottom: 4px;
}

/* Sarkari Table */
.sarkari-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 13px;
  background: #fff;
}
.sarkari-table th, .sarkari-table td {
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  text-align: left;
}
.sarkari-table th { background: #b91c1c; color: #ffffff; font-weight: 800; font-size: 14px; }
.sarkari-table tr:nth-child(even) { background: #f8fafc; }
.sarkari-table td.col-title { font-weight: 700; width: 35%; background: #f1f5f9; }

/* Action Links Table */
.links-table th { background: #0f172a; text-align: center; }
.btn-apply {
  display: inline-block;
  background: #b91c1c;
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 4px;
  text-transform: uppercase;
}
.btn-pdf {
  display: inline-block;
  background: #1d4ed8;
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 4px;
  text-transform: uppercase;
}
.btn-custom {
  display: inline-block;
  background: #15803d;
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 4px;
  text-transform: uppercase;
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  margin-top: 30px;
  padding: 24px 0 12px 0;
  font-size: 12px;
  border-top: 4px solid var(--red);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 8px; border-bottom: 1px solid #334155; padding-bottom: 4px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 6px; }
.footer-col a:hover { color: #facc15; }
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 10px; text-align: center; color: #64748b; font-size: 11px; }
