/*
Theme Name: Sarkariresult
Author: OpenAI
Description: Fast and responsive WordPress theme for Sarkari Result style publishing websites.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: sarkariresult
*/

:root {
  --sr-red: #c31313;
  --sr-red-dark: #980707;
  --sr-blue: #07196a;
  --sr-blue-dark: #04124c;
  --sr-yellow: #ffe278;
  --sr-bg: #f5f5f5;
  --sr-white: #ffffff;
  --sr-text: #111111;
  --sr-muted: #4e4e4e;
  --sr-border: #111111;
  --sr-link: #0018c9;
  --sr-link-hover: #d80000;
  --sr-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  --sr-radius: 14px;
  --sr-width: 1080px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html.sr-modal-open,
html.sr-modal-open body {
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--sr-bg);
  color: var(--sr-text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

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

a:hover,
a:focus {
  color: var(--sr-link-hover);
}

p,
ul,
ol,
table {
  margin-top: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0;
}

th,
td {
  border: 1px solid var(--sr-border);
  padding: 12px 14px;
  vertical-align: top;
}

th {
  width: 42%;
  background: #fff5bc;
  font-weight: 700;
  text-align: left;
}

td {
  background: #ffffff;
}

button,
input,
textarea,
select {
  font: inherit;
}

.grid-container {
  width: min(var(--sr-width), calc(100% - 16px));
  margin-inline: auto;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.screen-reader-text:focus {
  clip: auto;
  width: auto;
  height: auto;
  margin: 0;
  padding: 10px 12px;
  top: 10px;
  left: 10px;
  background: var(--sr-blue);
  color: var(--sr-white);
  z-index: 999;
}

.site-header {
  background: var(--sr-red);
}

.inside-header {
  padding: 42px 24px;
}

.site-branding {
  text-align: center;
}

.main-title,
.site-description {
  margin: 0;
}

.main-title {
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 700;
}

.main-title a,
.main-title a:hover {
  color: var(--sr-white);
  text-decoration: none;
}

.site-description {
  margin-top: 10px;
  color: var(--sr-white);
  font-size: clamp(18px, 2.8vw, 28px);
  font-weight: 700;
}

.main-navigation {
  background: var(--sr-blue);
  position: sticky;
  top: 0;
  z-index: 40;
}

.inside-navigation {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
}

.main-nav {
  flex: 1 1 auto;
}

.menu,
.sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.menu > .menu-item > a,
.menu-toggle,
.menu-bar-item > a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  color: var(--sr-white);
  font-weight: 700;
  text-decoration: none;
}

.menu > .menu-item > a:hover,
.menu > .current-menu-item > a,
.menu-toggle:hover,
.menu-bar-item > a:hover {
  background: var(--sr-red-dark);
  color: var(--sr-white);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-bar-items {
  margin-left: auto;
}

.menu-bar-item {
  display: inline-flex;
}

.gp-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.site {
  padding: 14px 0 26px;
}

.inside-article,
.sr-post-shell,
.sr-page-panel,
.sr-archive-shell {
  background: var(--sr-white);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: var(--sr-radius);
  box-shadow: var(--sr-shadow);
}

.inside-article,
.sr-page-panel,
.sr-archive-shell,
.sr-post-shell {
  padding: 18px;
}

.sr-home-shell,
.sr-page-main,
.sr-single-main {
  display: grid;
  gap: 16px;
}

.sr-home-panel,
.sr-copy-block,
.sr-faq-card {
  margin-bottom: 0;
}

.sr-home-intro strong {
  color: var(--sr-red-dark);
}

.sr-home-boxes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.sr-home-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 84px;
  padding: 12px;
  border: 2px solid #7b0000;
  border-radius: 12px;
  background: linear-gradient(180deg, #ec2d2d, #ad0505);
  color: var(--sr-white);
  text-align: center;
  text-decoration: none;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.sr-home-box:hover,
.sr-home-box:focus {
  color: var(--sr-white);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(135, 0, 0, 0.24);
}

.sr-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.sr-category-card {
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 12px;
  overflow: hidden;
  background: #fffdf8;
}

.sr-category-card-head {
  background: var(--sr-blue);
  padding: 12px 14px;
}

.sr-category-card-head h2 {
  margin: 0;
  color: var(--sr-white);
  font-size: 22px;
  text-align: center;
}

.sr-category-card-body {
  padding: 14px;
}

.sr-link-list {
  margin: 0;
  padding-left: 18px;
}

.sr-link-list li + li {
  margin-top: 8px;
}

.sr-link-list a {
  font-weight: 700;
}

.sr-list-actions {
  padding: 0 14px 14px;
}

.sr-view-more,
.apply-button,
.sr-table-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--sr-red);
  color: var(--sr-white);
  font-weight: 700;
  text-decoration: none;
}

.sr-view-more:hover,
.apply-button:hover,
.sr-table-button:hover {
  color: var(--sr-white);
  background: var(--sr-red-dark);
}

.sr-copy-block h2,
.sr-faq-card h2 {
  margin: 0 0 12px;
  color: var(--sr-blue);
  font-size: 28px;
  line-height: 1.2;
}

.sr-copy-block h3,
.sr-faq-card h3,
.entry-content h3 {
  color: var(--sr-blue);
}

.social-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.social-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--sr-white);
  font-weight: 700;
  text-decoration: none;
}

.social-button.whatsapp {
  background: #1aa64a;
}

.social-button.telegram {
  background: #1b8ad6;
}

.social-button.youtube {
  background: #d91010;
}

.social-button.facebook {
  background: #1f56b6;
}

.social-button.instagram {
  background: #c92d7a;
}

.social-button.x {
  background: #111111;
}

.sr-social-actions {
  margin-bottom: 12px;
}

.sr-page-panel .entry-title,
.sr-archive-shell .entry-title,
.sr-single-title {
  margin: 0 0 12px;
  color: var(--sr-blue);
  line-height: 1.2;
}

.sr-single-title {
  font-size: clamp(28px, 5vw, 42px);
  text-align: center;
}

.sr-post-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 18px;
  font-weight: 700;
  color: var(--sr-muted);
  margin-bottom: 14px;
}

.short_Details {
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 2px solid #f0c227;
  border-left: 7px solid var(--sr-red);
  background: linear-gradient(180deg, #fff9de 0%, #fff0b8 100%);
  border-radius: 10px;
  font-size: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.sr-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0;
}

.sr-info-card,
.sr-highlight-card,
.sr-data-section,
.sr-related-card {
  background: var(--sr-white);
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 12px;
  padding: 16px;
}

.sr-info-card,
.sr-data-section,
.sr-highlight-card {
  overflow: hidden;
}

.sr-info-card > h2,
.sr-data-section > h2,
.sr-highlight-card > h2 {
  display: flex;
  align-items: center;
  margin: -16px -16px 14px;
  padding: 12px 16px;
  background: linear-gradient(90deg, #b80f12 0%, #08237f 100%);
  color: var(--sr-white);
  font-size: 24px;
  line-height: 1.25;
}

.sr-info-card--dates > h2 {
  background: linear-gradient(90deg, #c01515 0%, #f0932b 100%);
}

.sr-info-card--fees > h2 {
  background: linear-gradient(90deg, #004f98 0%, #2c82c9 100%);
}

.sr-info-card--age > h2 {
  background: linear-gradient(90deg, #2d6a4f 0%, #40916c 100%);
}

.sr-highlight-card {
  margin-bottom: 18px;
  text-align: center;
  background: linear-gradient(180deg, #fff6b8 0%, #ffe887 100%);
  border: 2px solid #e0b400;
}

.sr-highlight-card p {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: #6d0909;
}

.sr-data-section {
  margin-top: 18px;
}

.sr-data-section--content {
  background: linear-gradient(180deg, #ffffff 0%, #fffdf7 100%);
}

.sr-single-content {
  margin-top: 4px;
}

.sr-single-content > *:last-child {
  margin-bottom: 0;
}

.sr-table-wrap {
  width: 100%;
  margin-top: 10px;
  overflow-x: auto;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  -webkit-overflow-scrolling: touch;
}

.sr-table-wrap table {
  margin: 0;
}

.sr-content-table,
.sr-links-table,
.sr-data-section table,
.sr-info-card table {
  background: var(--sr-white);
}

.sr-single-content .sr-content-table {
  min-width: 560px;
}

.sr-info-card .sr-content-table,
.sr-data-section > .sr-table-wrap .sr-content-table,
.sr-links-table {
  min-width: 100%;
}

.sr-content-table tr:nth-child(even),
.sr-links-table tr:nth-child(even),
.sr-data-section table tr:nth-child(even),
.sr-info-card table tr:nth-child(even) {
  background: #fafafa;
}

.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  margin: 18px 0 12px;
  line-height: 1.25;
  color: var(--sr-blue);
}

.sr-single-content h2,
.sr-single-content h3,
.sr-single-content h4,
.sr-single-content h5,
.sr-single-content h6 {
  padding: 10px 14px;
  border-left: 6px solid #ffe278;
  border-radius: 10px;
  background: linear-gradient(90deg, #0a257f 0%, #1237b4 100%);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(7, 25, 106, 0.14);
}

.sr-single-content p {
  margin-bottom: 14px;
}

.sr-single-content ul,
.sr-single-content ol,
.sr-point-list {
  margin-bottom: 14px;
  padding-left: 22px;
}

.sr-single-content li,
.sr-point-list li {
  margin-bottom: 8px;
}

.entry-content ul,
.entry-content ol {
  padding-left: 20px;
}

.sr-point-list {
  margin-top: 0;
}

.sr-point-list li::marker {
  color: var(--sr-red);
  font-weight: 700;
}

.sr-links-table th {
  width: 58%;
}

.sr-links-table td {
  min-width: 180px;
}

.sr-table-button {
  min-width: 132px;
}

.sr-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.sr-related-card h3 {
  margin: 0 0 12px;
  color: var(--sr-blue);
}

.sr-featured-image-end {
  margin-top: 18px;
  text-align: center;
}

.sr-featured-image-end img {
  border-radius: 12px;
  box-shadow: var(--sr-shadow);
}

.sr-archive-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sr-archive-item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.sr-archive-item:first-child {
  padding-top: 0;
}

.sr-archive-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.sr-archive-item a {
  font-weight: 700;
  text-decoration: none;
}

.sr-archive-date {
  color: var(--sr-muted);
  font-weight: 700;
  white-space: nowrap;
}

.sr-pagination-wrap {
  margin-top: 18px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nav-links .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 8px;
  background: var(--sr-white);
  text-decoration: none;
  font-weight: 700;
}

.nav-links .current {
  background: var(--sr-blue);
  color: var(--sr-white);
}

.sr-empty-state {
  margin: 0;
  color: var(--sr-muted);
  font-weight: 700;
}

.site-footer {
  margin-top: 24px;
  background: #121212;
  color: var(--sr-white);
}

.sr-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0;
}

.sr-footer-copy,
.sr-footer-nav {
  margin: 0;
}

.sr-footer-nav a,
.sr-footer-copy a {
  color: var(--sr-white);
  text-decoration: none;
}

.sr-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.gp-search-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}

.gp-modal--open {
  display: block;
}

.gp-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.gp-modal__container {
  width: min(720px, 100%);
  background: var(--sr-white);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--sr-shadow);
}

.search-modal-fields {
  display: flex;
  gap: 10px;
}

.search-field {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 10px;
}

.search-modal-fields button {
  min-width: 54px;
  border: 0;
  border-radius: 10px;
  background: var(--sr-blue);
  color: var(--sr-white);
  cursor: pointer;
}

.search-modal-fields button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

@media (max-width: 960px) {
  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    display: none;
    width: 100%;
  }

  .main-navigation.toggled .main-nav {
    display: block;
  }

  .inside-navigation {
    flex-wrap: wrap;
    padding: 0 12px;
  }

  .menu {
    display: block;
    padding-bottom: 12px;
  }

  .menu > .menu-item > a {
    width: 100%;
  }

  .menu-bar-items {
    margin-left: 0;
  }

  .sr-home-boxes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sr-category-grid,
  .sr-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  body {
    font-size: 15px;
  }

  .inside-header {
    padding: 28px 16px;
  }

  .inside-article,
  .sr-page-panel,
  .sr-archive-shell,
  .sr-post-shell {
    padding: 14px;
  }

  .sr-home-box {
    min-height: 74px;
    font-size: 17px;
  }

  .sr-category-grid,
  .sr-info-grid,
  .sr-related-grid {
    grid-template-columns: 1fr;
  }

  .sr-info-card > h2,
  .sr-data-section > h2,
  .sr-highlight-card > h2 {
    margin: -14px -14px 12px;
    padding: 10px 12px;
    font-size: 21px;
  }

  .short_Details {
    font-size: 16px;
  }

  th,
  td {
    padding: 10px 11px;
    font-size: 14px;
  }

  .sr-single-content .sr-content-table {
    min-width: 520px;
  }

  .sr-links-table td {
    min-width: 160px;
  }

  .sr-table-button {
    width: 100%;
  }

  .sr-archive-item {
    flex-direction: column;
  }

  .search-modal-fields {
    flex-direction: column;
  }

  .search-modal-fields button {
    width: 100%;
    min-height: 48px;
  }
}
