/* ==========================================================================
   Bharti Jankari (bhartijankari.com) - Core Stylesheet
   Super fast, lightweight, mobile-first design system
   ========================================================================== */

:root {
  --primary: #b30000;
  --primary-dark: #800000;
  --secondary: #0d2b45;
  --accent: #ff6600;
  --success: #008744;
  --info: #0056b3;
  --warning: #d97706;
  --dark: #1e293b;
  --light: #f8fafc;
  --border: #e2e8f0;
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.05);
  --radius: 8px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #f1f5f9;
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--info);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  text-decoration: underline;
  color: var(--primary);
}

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

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  background: linear-gradient(135deg, #0d2b45 0%, #17365d 100%);
  color: #fff;
  border-bottom: 3px solid var(--primary);
  box-shadow: var(--shadow-md);
}

.header-top {
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.brand-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-icon {
  background: var(--primary);
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(179,0,0,0.35);
}

.brand-text h1 {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  letter-spacing: -0.5px;
}

.brand-text h1 span {
  color: #ff9933;
}

.brand-text p {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 2px;
}

.header-cta-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none !important;
  color: #fff !important;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.btn-wa {
  background: #25d366;
}

.btn-tg {
  background: #0088cc;
}

/* Nav Menu */
.site-nav {
  background: #081d30;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.nav-list {
  display: flex;
  list-style: none;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.nav-list::-webkit-scrollbar {
  display: none;
}

.nav-list li a {
  display: block;
  padding: 10px 16px;
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}

.nav-list li a:hover,
.nav-list li.active a {
  background: rgba(255,255,255,0.06);
  color: #ff9933;
  border-bottom-color: #ff9933;
}

/* ==========================================================================
   Ticker / Breaking News
   ========================================================================== */
.news-ticker {
  background: #fff;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
}

.ticker-badge {
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  padding: 8px 14px;
  white-space: nowrap;
  text-transform: uppercase;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ticker-content {
  overflow: hidden;
  white-space: nowrap;
  padding: 0 10px;
  flex: 1;
}

.ticker-marquee {
  display: inline-block;
  animation: marquee 35s linear infinite;
  padding-left: 100%;
}

.ticker-marquee:hover {
  animation-play-state: paused;
}

.ticker-item {
  color: var(--text-main);
  margin-right: 32px;
  font-weight: 500;
}

.ticker-item strong {
  color: var(--primary);
}

@keyframes marquee {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-100%, 0); }
}

/* ==========================================================================
   Highlight Quick Cards (The Big Grid)
   ========================================================================== */
.quick-access-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.quick-card {
  padding: 12px 10px;
  border-radius: var(--radius);
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  color: #fff !important;
  text-decoration: none !important;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 70px;
}

.quick-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.qc-ssc { background: linear-gradient(135deg, #1e3a8a, #2563eb); }
.qc-rrb { background: linear-gradient(135deg, #b91c1c, #dc2626); }
.qc-police { background: linear-gradient(135deg, #047857, #059669); }
.qc-result { background: linear-gradient(135deg, #0f766e, #0d9488); }
.qc-admit { background: linear-gradient(135deg, #c2410c, #ea580c); }
.qc-yojana { background: linear-gradient(135deg, #6d28d9, #7c3aed); }
.qc-tool-age { background: linear-gradient(135deg, #4338ca, #6366f1); }
.qc-tool-resizer { background: linear-gradient(135deg, #be185d, #ec4899); }

/* ==========================================================================
   Portal Main 6 Sections (Grid System)
   ========================================================================== */
.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 992px) {
  .portal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .portal-grid {
    grid-template-columns: 1fr;
  }
}

.section-box {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.box-header {
  padding: 10px 14px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.box-header h2 {
  font-size: 16px;
  font-weight: 800;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.box-header .header-badge {
  font-size: 11px;
  background: rgba(255,255,255,0.25);
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 700;
}

/* Box header themes */
.box-result .box-header { background: #008744; }
.box-admit .box-header { background: #c2410c; }
.box-form .box-header { background: #0d2b45; }
.box-jobs .box-header { background: #1e3a8a; }
.box-yojana .box-header { background: #6d28d9; }
.box-updates .box-header { background: #b30000; }

.box-content {
  padding: 8px 0;
  flex: 1;
}

.box-content ul {
  list-style: none;
}

.box-content ul li {
  padding: 9px 14px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13.5px;
  line-height: 1.45;
  transition: background 0.15s;
}

.box-content ul li:last-child {
  border-bottom: none;
}

.box-content ul li:hover {
  background: #f8fafc;
}

.box-content ul li a {
  color: #1e293b;
  display: block;
  font-weight: 500;
}

.box-content ul li a:hover {
  color: var(--primary);
  text-decoration: none;
}

.badge-new {
  display: inline-block;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 6px;
  text-transform: uppercase;
}

.badge-lastdate {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 6px;
}

.box-footer {
  padding: 8px 14px;
  background: #f8fafc;
  border-top: 1px solid var(--border);
  text-align: right;
}

.btn-view-more {
  font-size: 12px;
  font-weight: 700;
  color: var(--info);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-view-more:hover {
  color: var(--primary);
}

/* ==========================================================================
   Tools Promo Banner
   ========================================================================== */
.tools-banner-section {
  background: linear-gradient(135deg, #0d2b45 0%, #1e3a8a 100%);
  border-radius: var(--radius);
  padding: 20px;
  color: #fff;
  margin: 20px 0 30px;
  box-shadow: var(--shadow-md);
}

.tools-banner-header {
  text-align: center;
  margin-bottom: 16px;
}

.tools-banner-header h3 {
  font-size: 20px;
  font-weight: 800;
  color: #ff9933;
}

.tools-banner-header p {
  font-size: 13px;
  color: #cbd5e1;
}

.tools-cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.tool-promo-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff !important;
  text-decoration: none !important;
  transition: transform 0.2s, background 0.2s;
}

.tool-promo-card:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.18);
}

.tool-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #ff6600;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.tool-info h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
}

.tool-info p {
  font-size: 12px;
  color: #cbd5e1;
}

/* ==========================================================================
   Single Post Detail View (The Strict 8-Table Schema)
   ========================================================================== */
.post-container {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  margin: 18px 0 30px;
}

.post-header {
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.post-breadcrumbs {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.post-breadcrumbs a {
  color: var(--text-muted);
}

.post-title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.35;
  color: #0f172a;
  margin-bottom: 10px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: var(--text-muted);
}

.post-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Post Short Overview Alert */
.post-intro-alert {
  background: #eff6ff;
  border-left: 4px solid #2563eb;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 14px;
  color: #1e3a8a;
  margin-bottom: 24px;
  line-height: 1.6;
}

/* Post Table Styling */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 22px;
  -webkit-overflow-scrolling: touch;
}

.sarkari-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: #fff;
  border: 1px solid #cbd5e1;
}

.sarkari-table thead th {
  background: #0d2b45;
  color: #fff;
  font-weight: 700;
  text-align: left;
  padding: 10px 14px;
  border: 1px solid #0d2b45;
  font-size: 14px;
}

.sarkari-table th,
.sarkari-table td {
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  vertical-align: middle;
}

.sarkari-table tbody tr:nth-child(even) {
  background-color: #f8fafc;
}

.sarkari-table tbody tr:hover {
  background-color: #f1f5f9;
}

.table-label {
  font-weight: 700;
  color: #0f172a;
  width: 35%;
  background: #f8fafc;
}

.table-highlight {
  color: var(--primary);
  font-weight: 700;
}

.section-heading {
  font-size: 18px;
  font-weight: 800;
  color: #0d2b45;
  margin: 24px 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 6px;
}

.section-heading span.icon {
  color: var(--primary);
}

.important-links-table td a {
  display: inline-block;
  background: #b30000;
  color: #fff !important;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 4px;
  text-decoration: none !important;
  font-size: 13px;
  transition: background 0.2s;
}

.important-links-table td a:hover {
  background: #800000;
}

/* Steps list */
.steps-list {
  padding-left: 20px;
  margin-bottom: 20px;
  font-size: 14px;
}

.steps-list li {
  margin-bottom: 8px;
  line-height: 1.5;
}

/* ==========================================================================
   Sticky Bottom Join Bar (WhatsApp & Telegram)
   ========================================================================== */
.sticky-join-bar {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0d2b45;
  padding: 10px 14px;
  z-index: 999;
  box-shadow: 0 -4px 15px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 2px solid #ff9933;
}

.join-bar-text {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.join-bar-buttons {
  display: flex;
  gap: 8px;
}

.join-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #fff !important;
  text-decoration: none !important;
  transition: transform 0.15s;
}

.join-btn:hover {
  transform: translateY(-2px);
}

.join-btn-wa { background: #25d366; }
.join-btn-tg { background: #0088cc; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #081d30;
  color: #94a3b8;
  padding: 30px 0 20px;
  margin-top: 40px;
  border-top: 4px solid var(--primary);
  font-size: 13px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-col h4 {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-col p {
  line-height: 1.6;
  margin-bottom: 10px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 6px;
}

.footer-col ul li a {
  color: #94a3b8;
  text-decoration: none;
}

.footer-col ul li a:hover {
  color: #ff9933;
}

.footer-disclaimer {
  background: rgba(0,0,0,0.25);
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 12px;
  line-height: 1.5;
  color: #cbd5e1;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 14px;
  text-align: center;
  font-size: 12px;
}

.footer-bottom span {
  color: #ff9933;
  font-weight: 700;
}

/* ==========================================================================
   Utility Tools Specific CSS (Age Calculator & Resizer)
   ========================================================================== */
.tool-card-box {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  max-width: 720px;
  margin: 24px auto 36px;
}

.tool-header-area {
  text-align: center;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.tool-header-area h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--secondary);
}

.tool-header-area p {
  font-size: 13px;
  color: var(--text-muted);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 14px;
  color: #0f172a;
  background: #fff;
  transition: border-color 0.2s;
}

.form-control:focus {
  border-color: #2563eb;
  outline: none;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

.btn-calc {
  background: #b30000;
  color: #fff;
  border: none;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 800;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s;
}

.btn-calc:hover {
  background: #800000;
}

.calc-result-box {
  margin-top: 20px;
  padding: 16px;
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  display: none;
}

.calc-result-box.active {
  display: block;
}

.age-big-display {
  text-align: center;
  font-size: 22px;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 12px;
}

.age-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  text-align: center;
}

.age-stat-item {
  background: #fff;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.age-stat-item .num {
  font-size: 16px;
  font-weight: 800;
  color: var(--secondary);
}

.age-stat-item .lbl {
  font-size: 11px;
  color: var(--text-muted);
}
