/*
Theme Name: SarkariNaukri247
Theme URI: https://webspherex.xyz
Author: WebSpherex Studio
Author URI: https://webspherex.xyz
Description: Professional, fully responsive and dynamic Sarkari Result & Govt Job Portal WordPress Theme.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: sarkarinaukri247
*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  background-color: #f0f2f5;
  color: #222;
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 95%;
  max-width: 1240px;
  margin: 0 auto;
}

/* Top Bar */
.top-bar {
  background: #0d3b66;
  color: #fff;
  font-size: 13px;
  padding: 6px 0;
}
.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.top-links a {
  color: #e0e0e0;
  margin: 0 6px;
  font-size: 12px;
}
.top-links a:hover {
  color: #fff;
}
.top-social {
  display: flex;
  gap: 12px;
}
.top-social a {
  color: #fff;
  font-size: 14px;
}

/* Header */
.main-header {
  background: #fff;
  padding: 14px 0;
  border-bottom: 2px solid #e2e8f0;
}
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-emblem {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.logo-text h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
}
.navy { color: #004b93; }
.red { color: #d90429; }
.domain { color: #2b2d42; font-size: 20px; }
.tagline {
  font-size: 13px;
  font-weight: 700;
  color: #4a5568;
  margin-top: 3px;
}
.header-badge {
  background: linear-gradient(135deg, #0056b3, #001f3f);
  color: #fff;
  padding: 8px 18px;
  border-radius: 25px;
  text-align: center;
  border: 2px solid #ff9900;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}
.badge-title { font-size: 15px; font-weight: 800; text-transform: uppercase; }
.badge-sub { font-size: 11px; color: #e2e8f0; }

/* Navigation */
.navbar {
  background: #0066cc;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.nav-container {
  display: flex;
  align-items: center;
}
.nav-links {
  list-style: none;
  display: flex;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}
.nav-links li a {
  display: block;
  padding: 12px 16px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s;
}
.nav-links li a:hover, .nav-links li.current-menu-item a {
  background: #004d99;
}

/* Breaking Ticker */
.ticker-box {
  display: flex;
  background: #fff;
  margin: 12px auto;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.06);
  border: 1px solid #e2e8f0;
}
.ticker-label {
  background: #ff3333;
  color: #fff;
  padding: 8px 14px;
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ticker-content {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0 12px;
  font-weight: 600;
  font-size: 13px;
  overflow: hidden;
}
.ticker-content a {
  color: #1a202c;
  margin-right: 25px;
}
.ticker-content a:hover {
  color: #d90429;
}

/* Main Grid */
.main-grid {
  display: grid;
  grid-template-columns: 2fr 1.3fr 1fr;
  gap: 15px;
  margin-top: 15px;
  margin-bottom: 20px;
}

/* Hero Big Card */
.big-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.12);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.big-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 30%, rgba(0,0,0,0.88) 100%);
  z-index: 1;
}
.big-card-content {
  position: relative;
  z-index: 2;
}
.badge-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.job-pill { background: #d90429; }
.big-card-title {
  color: #ffe600;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 12px;
}
.big-card-title a {
  color: #ffe600;
}
.btn-yellow {
  display: inline-block;
  background: #ffcc00;
  color: #000;
  font-weight: 800;
  font-size: 13px;
  padding: 8px 18px;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.15s, background 0.15s;
}
.btn-yellow:hover {
  background: #ffd633;
  transform: translateY(-2px);
}

/* Center Updates */
.center-updates {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mini-update-card {
  background: #fff;
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  border-left: 4px solid #0066cc;
  border-top: 1px solid #edf2f7;
  border-right: 1px solid #edf2f7;
  border-bottom: 1px solid #edf2f7;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 90px;
}
.mini-update-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: #1a202c;
  line-height: 1.35;
  margin: 4px 0 6px 0;
}
.mini-update-card h3 a:hover {
  color: #0066cc;
}
.arrow-link {
  color: #d90429;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.arrow-link:hover {
  text-decoration: underline;
}

/* Quick Links Sidebar */
.quick-links-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  height: fit-content;
}
.quick-header {
  background: #0d3b66;
  color: #fff;
  padding: 10px 14px;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.quick-list {
  list-style: none;
}
.quick-list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid #edf2f7;
  font-size: 13px;
  font-weight: 700;
  color: #0d3b66;
  transition: background 0.15s;
}
.quick-list li a:hover {
  background: #f0f7ff;
}

/* Category Cards Row */
.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 25px;
}
.cat-card {
  padding: 14px 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
  transition: transform 0.15s;
}
.cat-card:hover {
  transform: translateY(-2px);
}
.cat-icon { font-size: 24px; }
.cat-card strong { display: block; font-size: 14px; line-height: 1.2; }
.cat-card span { font-size: 11px; opacity: 0.9; }

.blue-box { background: #0077b6; }
.green-box { background: #2a9d8f; }
.purple-box { background: #7209b7; }
.orange-box { background: #f77f00; }
.teal-box { background: #028090; }

/* Sarkari Result 3 Column Grid */
.posts-columns-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 30px;
}
.col-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  border: 1px solid #e2e8f0;
  overflow: hidden;
}
.col-header {
  padding: 10px 14px;
  font-weight: 800;
  font-size: 15px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.col-header.jobs { background: #0066cc; }
.col-header.result { background: #2a9d8f; }
.col-header.admit { background: #7209b7; }
.col-header a { font-size: 12px; color: #fff; text-decoration: underline; font-weight: 600; }

.col-card ul {
  list-style: none;
  padding: 6px 0;
}
.col-card ul li {
  padding: 9px 14px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
  line-height: 1.4;
}
.col-card ul li a {
  color: #004b93;
  font-weight: 600;
}
.col-card ul li a:hover {
  text-decoration: underline;
  color: #d90429;
}
.col-card ul li .new-tag {
  background: #ff3333;
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 700;
  margin-left: 6px;
}

/* Footer */
.main-footer {
  background: #0d3b66;
  color: #fff;
  padding: 25px 0 15px;
  margin-top: 40px;
}
.footer-links {
  text-align: center;
  margin-bottom: 15px;
}
.footer-links a {
  color: #e2e8f0;
  margin: 0 10px;
  font-size: 13px;
}
.footer-links a:hover {
  color: #ffcc00;
}
.footer-copy {
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
  border-top: 1px solid #1e4a78;
  padding-top: 12px;
}

/* Single Post & Page Content */
.single-container {
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  margin: 20px auto;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.single-title {
  font-size: 24px;
  color: #0d3b66;
  margin-bottom: 15px;
  border-bottom: 2px solid #edf2f7;
  padding-bottom: 10px;
}
.single-meta {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 20px;
}
.entry-content {
  font-size: 15px;
  line-height: 1.7;
}
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0;
}
.entry-content table, .entry-content th, .entry-content td {
  border: 1px solid #cbd5e1;
  padding: 8px 12px;
}
.entry-content th {
  background: #0066cc;
  color: #fff;
}

/* Responsive / Mobile Optimization */
@media (max-width: 900px) {
  .main-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .posts-columns-grid {
    grid-template-columns: 1fr;
  }
  .header-content {
    flex-direction: column;
    text-align: center;
  }
  .logo-area {
    flex-direction: column;
  }
  .big-card {
    min-height: 250px;
  }
  .big-card-title {
    font-size: 18px;
  }
  .ticker-box {
    flex-direction: column;
  }
  .ticker-label {
    width: 100%;
    justify-content: center;
  }
}