/*
Theme Name: SarkariYukti Pro
Theme URI: https://sarkariyukti.com
Author: SarkariYukti Team
Description: Custom Government Job Portal, Result, Admit Card & PDF eBook Store WordPress Theme matching exact SarkariYukti mockup.
Version: 1.0.0
Text Domain: sarkariyukti
*/

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@400;500;600;700;800&family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  --navy: #0d2b52;
  --navy-dark: #081e3b;
  --red: #d91c1c;
  --red-dark: #b31212;
  --yellow: #facc15;
  --yellow-hover: #eab308;
  --bg-page: #f1f5f9;
  --text-dark: #1e293b;
  --border-light: #e2e8f0;
}

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

body {
  font-family: 'Poppins', 'Noto Sans Devanagari', sans-serif;
  background-color: var(--bg-page);
  color: var(--text-dark);
  line-height: 1.5;
}

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

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

/* Top Bar */
.top-bar {
  background: var(--navy);
  color: #ffffff;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.top-bar-left span, .top-bar-left a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #e2e8f0;
}

.top-bar-left a:hover {
  color: var(--yellow);
}

.social-circles a {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
}

.sc-fb { background: #1877f2; }
.sc-yt { background: #ff0000; }
.sc-tg { background: #0088cc; }
.sc-ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }

.btn-follow-top {
  background: var(--yellow);
  color: var(--navy-dark) !important;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Main Header */
.main-header {
  background: #ffffff;
  padding: 14px 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.logo-title span {
  color: var(--red);
}

.logo-tagline {
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.logo-tagline::before, .logo-tagline::after {
  content: "";
  display: inline-block;
  width: 22px;
  height: 2px;
  background: var(--red);
}

.header-search {
  flex: 1;
  max-width: 430px;
}

.header-search form {
  display: flex;
  border: 2px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
  background: #f8fafc;
}

.header-search input {
  flex: 1;
  border: none;
  padding: 10px 14px;
  font-size: 14px;
  background: transparent;
  outline: none;
  font-family: inherit;
}

.header-search button {
  background: #1d4ed8;
  color: #fff;
  border: none;
  padding: 0 18px;
  cursor: pointer;
  font-size: 16px;
}

.ebook-header-btn {
  background: linear-gradient(180deg, #fde047 0%, #facc15 100%);
  border: 2px solid #eab308;
  border-radius: 10px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy-dark);
  box-shadow: 0 3px 6px rgba(234, 179, 8, 0.25);
  transition: transform 0.2s;
}

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

.ebook-header-btn .eb-title {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.1;
}

.ebook-header-btn .eb-sub {
  font-size: 11px;
  font-weight: 700;
  color: #1e293b;
}

/* Primary Nav */
.primary-nav {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.nav-list > li {
  position: relative;
}

.nav-list > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 15px;
  border-right: 1px solid rgba(255,255,255,0.1);
  transition: background 0.2s;
}

.nav-list > li > a:hover {
  background: rgba(255,255,255,0.12);
}

.nav-home-btn a {
  background: var(--yellow) !important;
  color: var(--navy-dark) !important;
  font-size: 16px !important;
  padding: 12px 16px !important;
}

.nav-ebook-btn a {
  background: var(--red) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
}

/* Dropdown Submenu */
.nav-list ul.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  min-width: 210px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  border-top: 3px solid var(--red);
  list-style: none;
  z-index: 1000;
}

.nav-list li:hover > ul.sub-menu {
  display: block;
}

.nav-list ul.sub-menu li a {
  display: block;
  padding: 10px 15px;
  color: var(--navy);
  font-size: 13.5px;
  font-weight: 600;
  border-bottom: 1px solid #f1f5f9;
}

.nav-list ul.sub-menu li a:hover {
  background: #f8fafc;
  color: var(--red);
}

/* Breaking News Bar */
.breaking-bar {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 8px 0;
  margin-bottom: 16px;
}

.breaking-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 4px 6px 4px 4px;
}

.breaking-label {
  background: var(--red);
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 6px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.breaking-marquee {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
}

.breaking-marquee a {
  margin: 0 18px;
  color: var(--navy);
}

.breaking-marquee a:hover {
  color: var(--red);
  text-decoration: underline;
}

.breaking-all-btn {
  background: var(--navy);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

/* Hero + Latest Updates Grid */
.hero-section {
  display: grid;
  grid-template-columns: 2.15fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}

.hero-slider {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #60a5fa 100%);
  min-height: 310px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
}

.hero-slide {
  display: none;
  width: 100%;
  padding: 28px 46px;
  color: #ffffff;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.hero-slide.active {
  display: flex;
}

.hero-badge {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  padding: 5px 18px;
  border-radius: 6px;
  transform: skewX(-8deg);
  margin-bottom: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.hero-title {
  font-size: 38px;
  font-weight: 800;
  color: var(--yellow);
  text-shadow: 2px 3px 6px rgba(0,0,0,0.45);
  line-height: 1.15;
  margin-bottom: 10px;
}

.hero-sub {
  background: rgba(13, 43, 82, 0.85);
  display: inline-block;
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
}

.hero-cta {
  display: inline-block;
  background: var(--red);
  color: #ffffff;
  font-weight: 700;
  font-size: 16px;
  padding: 10px 24px;
  border-radius: 30px;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.hero-cta:hover {
  background: var(--red-dark);
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  color: #fff;
  border: none;
  width: 34px;
  height: 44px;
  font-size: 18px;
  cursor: pointer;
  border-radius: 6px;
  z-index: 10;
}

.slider-prev { left: 10px; }
.slider-next { right: 10px; }

.slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
}

.slider-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
}

.slider-dot.active {
  background: #ffffff;
  transform: scale(1.2);
}

/* Latest Updates Box */
.updates-box {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
}

.box-header-navy {
  background: var(--navy);
  color: #ffffff;
  padding: 11px 16px;
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.updates-list {
  list-style: none;
  padding: 8px 14px;
  flex: 1;
}

.updates-list li {
  padding: 9px 0;
  border-bottom: 1px solid #e2e8f0;
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.updates-list li:last-child {
  border-bottom: none;
}

.updates-list li a:hover {
  color: var(--red);
}

.badge-new {
  background: var(--red);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.box-footer-link {
  display: block;
  text-align: center;
  padding: 9px;
  background: #f8fafc;
  color: #1d4ed8;
  font-weight: 700;
  font-size: 13px;
  border-top: 1px solid #e2e8f0;
}

/* 5 Quick Action Cards */
.quick-cards-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.q-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}

.q-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

.q-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  flex-shrink: 0;
}

.qi-blue { background: #1d4ed8; }
.qi-purple { background: #7e22ce; }
.qi-green { background: #15803d; }
.qi-orange { background: #ea580c; }
.qi-red { background: #dc2626; }

.q-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

.q-card-sub {
  font-size: 11.5px;
  color: #475569;
  font-weight: 500;
}

/* Middle 3-Column Section */
.middle-grid {
  display: grid;
  grid-template-columns: 1fr 1.65fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}

.panel-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.panel-header-red {
  background: var(--red);
  color: #ffffff;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 16px;
}

.panel-header-red a {
  font-size: 12px;
  background: rgba(0,0,0,0.2);
  padding: 3px 9px;
  border-radius: 12px;
  color: #fff;
}

.job-links-list {
  list-style: none;
  padding: 8px 14px;
}

.job-links-list li {
  padding: 10px 0;
  border-bottom: 1px solid #e2e8f0;
  font-size: 13.5px;
  font-weight: 600;
}

.job-links-list li:last-child {
  border-bottom: none;
}

.job-links-list li a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
}

.job-links-list li a:hover {
  color: var(--red);
}

/* E-Book Promo Center Card */
.ebook-promo-card {
  background: linear-gradient(135deg, #fef9c3 0%, #fde047 100%);
  border: 2px solid #eab308;
  border-radius: 12px;
  padding: 18px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 12px rgba(234, 179, 8, 0.2);
}

.ebook-top-pill {
  background: var(--navy);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  align-self: center;
  margin-bottom: 6px;
}

.ebook-promo-title {
  text-align: center;
  font-size: 27px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
}

.ebook-promo-title span {
  color: var(--red);
}

.ebook-promo-sub {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
}

.ebook-promo-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.ebook-stack {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.book-spine {
  padding: 6px 10px;
  border-radius: 5px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 2px 3px 5px rgba(0,0,0,0.2);
}

.ebook-features {
  list-style: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
}

.ebook-features li {
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.price-burst {
  background: var(--red);
  color: #ffffff;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  text-align: center;
  line-height: 1.1;
  border: 3px dashed #fde047;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  flex-shrink: 0;
}

.price-burst strong {
  font-size: 20px;
}

.price-burst span {
  font-size: 11px;
}

.ebook-buy-btn {
  display: inline-block;
  background: var(--red);
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 20px;
  border-radius: 25px;
  margin-top: 8px;
  text-align: center;
}

/* Popular Categories 2x3 */
.pop-cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 12px;
}

.pop-cat-item {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 8px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy);
  transition: all 0.2s;
}

.pop-cat-item:hover {
  background: #eff6ff;
  border-color: #2563eb;
  color: #1d4ed8;
}

.pop-cat-icon {
  font-size: 22px;
  margin-bottom: 4px;
  display: block;
}

/* Additional Dynamic Post Sections (Admit Card, Result, eBooks) */
.extra-grids {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

/* Services Strip */
.services-section {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 22px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  padding: 14px;
}

.service-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 10px;
  text-align: center;
}

.service-item .s-ico {
  font-size: 26px;
  margin-bottom: 6px;
  display: block;
}

.service-item h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}

.service-item p {
  font-size: 11.5px;
  color: #475569;
  font-weight: 500;
}

/* Single Post & Archive Content Styling */
.content-wrapper {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 20px;
  margin: 20px auto;
}

.article-box {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.04);
}

.article-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.3;
}

.article-meta {
  font-size: 13px;
  color: #64748b;
  padding-bottom: 12px;
  margin-bottom: 18px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.article-content {
  font-size: 15.5px;
  line-height: 1.75;
  color: #1e293b;
}

.article-content h2, .article-content h3 {
  color: var(--navy);
  margin: 18px 0 10px;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.article-content table th, .article-content table td {
  border: 1px solid #cbd5e1;
  padding: 10px 12px;
  text-align: left;
}

.article-content table th {
  background: var(--navy);
  color: #ffffff;
}

/* PDF Download Box inside Single Post */
.pdf-download-card {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 2px solid #2563eb;
  border-radius: 12px;
  padding: 20px;
  margin: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.pdf-download-info h4 {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
}

.pdf-download-info p {
  font-size: 13.5px;
  color: #334155;
}

.btn-pdf-download {
  background: var(--red);
  color: #ffffff !important;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  box-shadow: 0 4px 10px rgba(217, 28, 28, 0.3);
}

.btn-pdf-download:hover {
  background: var(--red-dark);
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: #ffffff;
  padding: 26px 0 18px;
  margin-top: 30px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand h3 {
  font-size: 26px;
  font-weight: 800;
  font-style: italic;
}

.footer-brand p {
  font-size: 12px;
  color: #cbd5e1;
}

.newsletter-box {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.newsletter-form {
  display: flex;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  padding: 3px;
}

.newsletter-form input {
  border: none;
  padding: 8px 14px;
  font-size: 13.5px;
  outline: none;
  min-width: 220px;
}

.newsletter-form button {
  background: var(--yellow);
  color: var(--navy-dark);
  border: none;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 6px;
  cursor: pointer;
}

.footer-bottom {
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsive */
@media (max-width: 992px) {
  .hero-section, .middle-grid, .extra-grids, .content-wrapper {
    grid-template-columns: 1fr;
  }
  .quick-cards-grid, .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .quick-cards-grid, .services-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 26px;
  }
}
