/* Sarkari Result Exact Theme Stylesheet */
:root {
  --primary-red: #ab1010;
  --dark-red: #8b0000;
  --link-blue: #0000c0;
  --link-hover: #e10101;
  --border-color: #ab1010;
  --bg-light: #f7f7f7;
  --table-border: #888888;
  --yellow-highlight: #fff091;
  --green-btn: #25D366;
  --telegram-blue: #0088cc;
  --target-size: 38px;
}

@media (pointer: coarse) {
  :root {
    --target-size: 44px;
  }
}

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

/* Complete Ad-Block / Ads Cleaner */
.adsbygoogle,
ins.adsbygoogle,
ins,
[class*="adsbygoogle"],
[id*="google_ads"],
iframe[id*="google_ads"],
.ad-slot,
.ad-container,
.adsbox {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  width: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
}

body {
  font-family: 'Source Sans Pro', Roboto, Arial, sans-serif;
  background-color: #fdfdfd;
  color: #111;
  line-height: 1.5;
  font-size: 15px;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

:where(a, code) {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

img {
  max-inline-size: 100%;
  block-size: auto;
}

a {
  color: var(--link-blue);
  text-decoration: none;
}

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

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

/* Site Header */
.site-header {
  background-color: var(--primary-red);
  color: #fff;
  padding: 12px 0;
  text-align: center;
  border-bottom: 2px solid var(--dark-red);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-decoration: none !important;
  color: #fff;
}

.header-logo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #fff;
  padding: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  object-fit: cover;
  transition: transform 0.2s ease;
}

.brand-link:hover .header-logo {
  transform: scale(1.04);
}

.brand-text {
  text-align: left;
}

.site-branding .main-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin: 0;
  color: #fff;
}

.site-branding .site-description {
  font-size: 16px;
  font-weight: 600;
  color: #ffeb3b;
  margin-top: 2px;
}

/* Navigation Bar */
.main-nav {
  background-color: #222;
  border-bottom: 3px solid var(--primary-red);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.nav-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  position: relative;
}

.nav-menu li a {
  display: block;
  color: #fff;
  padding: 11px 18px;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  border-right: 1px solid #333;
  transition: background-color 0.2s;
}

.nav-menu li a:hover,
.nav-menu li.active a {
  background-color: var(--primary-red);
  color: #fff;
  text-decoration: none;
}

.nav-search {
  padding: 6px 12px;
  display: flex;
  align-items: center;
}

.nav-search input {
  padding: 6px 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px 0 0 4px;
  outline: none;
}

.nav-search button {
  padding: 6px 12px;
  background-color: var(--primary-red);
  border: 1px solid var(--primary-red);
  color: #fff;
  font-weight: bold;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}

/* Notice Ticker */
.notice-ticker {
  background: #fff;
  border: 1px solid #e0e0e0;
  padding: 10px 15px;
  margin: 10px auto;
  border-radius: 4px;
  font-size: 15px;
  text-align: center;
  line-height: 1.4;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

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

/* Social Buttons */
.social-buttons-bar {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 12px 0;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 5px;
  color: #fff !important;
  font-weight: bold;
  font-size: 14px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  text-decoration: none !important;
  transition: transform 0.15s ease;
}

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

.social-btn.whatsapp {
  background-color: var(--green-btn);
}

.social-btn.telegram {
  background-color: var(--telegram-blue);
}

.social-btn.admin {
  background-color: #333;
}

/* Top Highlight Cards (8 Color Boxes) */
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 12px 0 20px 0;
}

.highlight-card {
  padding: 10px 8px;
  border-radius: 5px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: opacity 0.2s, transform 0.15s;
}

.highlight-card:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

.highlight-card a {
  color: #ffffff !important;
  text-decoration: none !important;
  display: block;
  width: 100%;
}

/* Main 3 Column & 6 Box Grids */
.section-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 25px;
}

.sarkari-box {
  background: #ffffff;
  border: 2px solid var(--border-color);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
}

.sarkari-box-header {
  background-color: var(--primary-red);
  color: #fff;
  padding: 8px 10px;
  text-align: center;
}

.sarkari-box-header h2 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin: 0;
  text-transform: capitalize;
}

.sarkari-box-content {
  padding: 10px 10px 10px 25px;
  flex-grow: 1;
}

.sarkari-box-content ul {
  list-style-type: disc;
  margin: 0;
  padding: 0;
}

.sarkari-box-content ul li {
  margin-bottom: 7px;
  line-height: 1.35;
}

.sarkari-box-content ul li a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--link-blue);
}

.sarkari-box-content ul li a:hover {
  color: var(--link-hover);
}

.sarkari-box-footer {
  padding: 6px 10px;
  text-align: right;
  border-top: 1px solid #f0f0f0;
  background-color: #fafafa;
}

.view-more-btn {
  display: inline-block;
  background-color: var(--primary-red);
  color: #fff !important;
  font-weight: 700;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 3px;
  text-transform: uppercase;
}

.view-more-btn:hover {
  background-color: var(--dark-red);
  text-decoration: none;
}

/* Post Detail View */
.post-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  padding: 20px;
  margin: 15px 0 30px 0;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.post-title-main {
  color: var(--primary-red);
  font-size: 26px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
  line-height: 1.3;
}

.post-meta-info {
  text-align: center;
  color: #666;
  font-size: 14px;
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.short-details-box {
  background-color: #fffef2;
  border: 1px solid #f2e29f;
  padding: 12px 15px;
  border-radius: 4px;
  margin-bottom: 20px;
  font-size: 14.5px;
  text-align: justify;
}

/* Sarkari Result Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 15px 0;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #fff;
}

.table-responsive:focus {
  outline: 2px solid var(--primary-red);
}

.post-content {
  overflow-x: hidden;
  max-width: 100%;
}

.post-content table {
  width: 100% !important;
  min-width: 480px;
  border-collapse: collapse;
  margin: 0;
  font-size: 14px;
  background-color: #fff;
}

.post-content table,
.post-content th,
.post-content td {
  border: 1px solid var(--table-border);
}

.post-content th {
  background-color: var(--primary-red);
  color: #ffffff;
  padding: 8px;
  font-size: 15px;
  text-align: center;
}

.post-content td {
  padding: 8px 10px;
  vertical-align: top;
}

.post-content td[style*="background-color: #fff091"],
.post-content td[style*="background-color: yellow"] {
  background-color: var(--yellow-highlight) !important;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
  color: var(--primary-red);
  margin: 15px 0 10px 0;
}

.post-content ul {
  padding-left: 20px;
  margin: 8px 0;
}

.post-content ul li {
  margin-bottom: 6px;
}

/* Category Listing Page */
.category-header {
  background-color: var(--primary-red);
  color: #fff;
  padding: 15px;
  text-align: center;
  border-radius: 4px;
  margin: 15px 0;
}

.category-header h1 {
  font-size: 26px;
  font-weight: 800;
  margin: 0;
}

.category-list {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 15px 25px;
  margin-bottom: 20px;
}

.category-list ul {
  list-style-type: square;
}

.category-list li {
  padding: 8px 0;
  border-bottom: 1px dashed #eee;
  font-size: 15px;
  font-weight: 600;
}

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

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin: 20px 0;
}

.pagination a,
.pagination span {
  padding: 6px 12px;
  border: 1px solid #ccc;
  background: #fff;
  font-weight: bold;
}

.pagination .active {
  background-color: var(--primary-red);
  color: #fff;
  border-color: var(--primary-red);
}

/* Footer */
.site-footer {
  background-color: #222;
  color: #bbb;
  padding: 25px 0 15px 0;
  margin-top: 40px;
  font-size: 13.5px;
  line-height: 1.6;
}

.site-footer a {
  color: #fff;
}

/* Footer Links */
.footer-nav-links {
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #333;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.footer-nav-links a {
  color: #ddd;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.15s;
}

.footer-nav-links a:hover {
  color: #ffeb3b;
  text-decoration: underline;
}

.footer-nav-links .sep {
  color: #555;
}

.footer-email-link {
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.footer-email-link:hover {
  color: #ffffff;
  text-decoration: none;
  opacity: 0.85;
}

/* Informational & Legal Pages (Contact Us, Privacy Policy, Disclaimer) */
.info-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  padding: 24px 30px;
  margin: 15px 0 35px 0;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.info-body {
  font-size: 15px;
  line-height: 1.7;
  color: #222;
}

.info-body p {
  margin-bottom: 14px;
}

.info-section {
  margin: 25px 0;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.info-section h2 {
  color: var(--primary-red);
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 10px;
}

.info-section ul {
  padding-left: 25px;
  margin: 10px 0;
}

.info-section ul li {
  margin-bottom: 7px;
}

.contact-channels-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 20px 0;
}

.contact-channel-box {
  background: #fdfdfd;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.contact-channel-box h3 {
  font-size: 17px;
  color: #1a202c;
  margin: 8px 0;
}

.contact-channel-box p {
  font-size: 13.5px;
  color: #64748b;
  margin-bottom: 12px;
}

.channel-icon {
  margin-bottom: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-channel-img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease;
}

.contact-channel-box:hover .contact-channel-img {
  transform: scale(1.08);
}

.email-highlight-link {
  font-size: 18px;
  color: var(--primary-red);
  text-decoration: underline;
  word-break: break-all;
}

.footer-disclaimer {
  background: #181818;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 15px;
  text-align: justify;
}

.footer-copy {
  text-align: center;
  border-top: 1px solid #333;
  padding-top: 15px;
}

/* Homepage Bottom SEO & Informational Section */
.home-seo-wrapper {
  margin: 30px 0 35px 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 22px 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.home-seo-intro {
  font-size: 14.5px;
  line-height: 1.65;
  color: #1a202c;
  margin-bottom: 14px;
  text-align: center;
}

.home-seo-intro a {
  color: var(--primary-red);
  font-weight: 700;
  text-decoration: underline;
}

.home-seo-subtitle {
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: #1a202c;
  margin: 16px 0 12px 0;
}

.home-seo-subtitle span {
  color: var(--primary-red);
  text-decoration: underline;
}

.home-seo-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 22px;
}

.home-seo-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 13.5px;
  border: 1px solid #444;
}

.home-seo-table td {
  border: 1px solid #555;
  padding: 9px 12px;
  background: #fafafa;
}

.home-seo-table a {
  color: #0b57d0;
  font-weight: 600;
  text-decoration: none;
  display: block;
}

.home-seo-table a:hover {
  text-decoration: underline;
  color: var(--primary-red);
}

.home-seo-block {
  margin-bottom: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}

.home-seo-block-header {
  background: var(--primary-red);
  color: #ffffff;
  padding: 8px 14px;
  font-size: 15.5px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.3px;
}

.home-seo-block-content {
  padding: 14px 16px;
  background: #ffffff;
  font-size: 13.5px;
  line-height: 1.65;
  color: #2d3748;
}

.home-seo-block-content p {
  margin-bottom: 8px;
}

.home-seo-block-content p:last-child {
  margin-bottom: 0;
}

.home-seo-block-content ul {
  margin: 8px 0 8px 20px;
  padding: 0;
}

.home-seo-block-content li {
  margin-bottom: 6px;
}

.home-seo-faq-title {
  font-size: 19px;
  font-weight: 700;
  color: #1a202c;
  margin: 28px 0 16px 0;
  border-bottom: 2px solid var(--primary-red);
  padding-bottom: 6px;
}

.home-seo-faq-item {
  margin-bottom: 15px;
}

.home-seo-faq-q {
  font-size: 14.5px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
}

.home-seo-faq-a {
  font-size: 13.5px;
  color: #4b5563;
  line-height: 1.6;
}

/* ========================================================
   Mobile & Responsive Adaptations (Modern Web Guidance Compliant)
   ======================================================== */

@media (max-width: 900px) {
  .highlight-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .section-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 768px) {

  /* Header & Branding */
  .site-header {
    padding: 10px 0;
  }

  .brand-link {
    gap: 12px;
  }

  .header-logo {
    width: 52px;
    height: 52px;
  }

  .site-branding .main-title {
    font-size: clamp(20px, 5.5vw, 28px);
  }

  .site-branding .site-description {
    font-size: 13.5px;
  }

  /* Sticky Navigation with Horizontal Scrollable App-Like Tabs */
  .main-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  }

  .nav-container {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
  }

  .nav-menu {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
    white-space: nowrap;
    width: 100%;
    background-color: #1a1a1a;
    border-bottom: 1px solid #333;
  }

  .nav-menu::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari */
  }

  .nav-menu li {
    flex: 0 0 auto;
    border-right: 1px solid #2e2e2e;
  }

  .nav-menu li a {
    padding: 11px 15px;
    font-size: 13.5px;
    white-space: nowrap;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* Search Bar */
  .nav-search {
    padding: 8px 10px;
    width: 100%;
    background-color: #242424;
  }

  .nav-search input {
    flex: 1;
    min-width: 0;
    height: 38px;
    font-size: 14px;
  }

  .nav-search button {
    height: 38px;
    padding: 0 16px;
    font-size: 14px;
    min-height: 38px;
  }

  /* Notice Ticker */
  .notice-ticker {
    font-size: 13.5px;
    padding: 8px 10px;
    margin: 8px auto;
  }

  /* Social WhatsApp & Telegram Buttons (Keep normal, compact and centered) */
  .social-buttons-bar {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 10px auto;
    flex-wrap: wrap;
  }

  .social-btn {
    display: inline-flex;
    width: auto;
    flex: 0 0 auto;
    justify-content: center;
    align-items: center;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 4px;
    white-space: nowrap;
  }

  /* Highlight 8 Announcement Cards: Compact 2-column Grid */
  .highlight-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin: 10px 0 16px 0;
  }

  .highlight-card {
    padding: 8px 6px;
    min-height: 50px;
    font-size: 12px;
    line-height: 1.25;
  }

  /* Section Grid & 9 Column Boxes */
  .section-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 20px;
  }

  .sarkari-box-header h2 {
    font-size: 18px;
    padding: 2px 0;
  }

  .sarkari-box-content {
    padding: 10px 10px 10px 22px;
  }

  .sarkari-box-content ul li {
    margin-bottom: 10px;
  }

  .sarkari-box-content ul li a {
    font-size: 14.5px;
    display: inline;
    line-height: 1.45;
  }

  .sarkari-box-footer {
    padding: 8px 10px;
  }

  .view-more-btn {
    padding: 7px 16px;
    font-size: 13px;
    min-height: 36px;
  }

  /* Post Detail View */
  .post-card {
    padding: 14px 10px;
    margin: 10px 0 20px 0;
  }

  .post-title-main {
    font-size: clamp(18px, 5.5vw, 24px);
    margin-bottom: 8px;
  }

  .post-meta-info {
    font-size: 13px;
    padding-bottom: 8px;
  }

  .short-details-box {
    padding: 10px 12px;
    font-size: 13.5px;
  }

  /* Category Listing Page */
  .category-header {
    padding: 12px 10px;
    margin: 10px 0;
  }

  .category-header h1 {
    font-size: clamp(20px, 5.5vw, 24px);
  }

  .category-list {
    padding: 12px 15px;
  }

  .category-list li {
    padding: 10px 0;
    font-size: 14px;
  }

  /* Footer */
  .site-footer {
    padding: 20px 0 max(15px, env(safe-area-inset-bottom, 0px)) 0;
    margin-top: 30px;
  }

  .footer-desktop-only {
    display: none !important;
  }

  .footer-nav-links {
    gap: 6px 14px;
    margin-bottom: 15px;
    padding-bottom: 12px;
  }

  .footer-disclaimer {
    padding: 12px 10px;
    font-size: 12px;
  }

  .contact-channels-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .info-card {
    padding: 16px 12px;
    margin: 10px 0 25px 0;
  }

  .home-seo-wrapper {
    padding: 16px 12px;
    margin: 20px 0 25px 0;
  }

  .home-seo-intro {
    font-size: 13.5px;
    text-align: left;
  }

  .home-seo-block-header {
    font-size: 14.5px;
    padding: 7px 10px;
  }

  .home-seo-block-content {
    padding: 12px 10px;
    font-size: 13px;
  }

  .home-seo-table td {
    padding: 7px 8px;
    font-size: 12.5px;
    white-space: nowrap;
  }

  .info-section h2 {
    font-size: 17px;
  }

  .footer-nav-links {
    gap: 6px 10px;
  }

  .footer-nav-links a {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: 8px 0;
  }

  .brand-link {
    gap: 8px;
  }

  .header-logo {
    width: 42px;
    height: 42px;
  }

  .site-branding .main-title {
    font-size: 19px;
  }

  .site-branding .site-description {
    font-size: 12px;
  }

  .social-buttons-bar {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
  }

  .social-btn {
    width: auto;
    flex: 0 0 auto;
    padding: 6px 12px;
    font-size: 12px;
  }

  .highlight-card {
    font-size: 11.5px;
    padding: 6px 4px;
    min-height: 46px;
  }

  .post-content table {
    font-size: 12px;
  }

  .post-content th,
  .post-content td {
    padding: 6px 5px;
  }
}