/*
Theme Name: Sarkariresult
Theme URI: https://sarkariresult.com.cm/
Author: OpenAI
Author URI: https://openai.com/
Description: Responsive government-jobs style WordPress theme inspired by Sarkari Result layouts.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: sarkariresult
*/

:root {
  --sr-red: #cd0808;
  --sr-red-deep: #982704;
  --sr-blue: #05055f;
  --sr-blue-text: #0c0a8d;
  --sr-link: #0000c0;
  --sr-link-hover: #e10101;
  --sr-bg: #ffffff;
  --sr-surface: #ffffff;
  --sr-border: #000000;
  --sr-footer: #212121;
  --sr-muted: #5a5a5a;
  --sr-accent: #1b78e2;
  --sr-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  --sr-width: 1070px;
}

*,
*::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: #000000;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

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

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

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

p {
  margin: 0 0 0.9rem;
}

ul,
ol {
  margin: 0 0 1rem 1.35rem;
  padding: 0;
}

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

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

button,
input,
select,
textarea {
  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 14px;
  left: 10px;
  top: 10px;
  background: var(--sr-blue);
  color: #ffffff;
  z-index: 1000;
}

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

.inside-header {
  padding: 50px 40px;
}

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

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

.main-title {
  text-transform: uppercase;
  font-size: 45px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.main-title a,
.main-title a:hover {
  color: #ffffff;
  text-decoration: none;
}

.site-description {
  color: #ffffff;
  font-size: 25px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.22px;
}

.main-navigation,
.main-navigation ul ul {
  background: var(--sr-blue);
}

.inside-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 31px;
}

.menu-toggle,
.menu-bar-item > a,
.main-navigation .main-nav ul li > a {
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  line-height: 46px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle svg,
.menu-bar-item svg,
.dropdown-menu-toggle svg,
.gp-icon svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

.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 {
  position: relative;
}

.main-navigation .main-nav ul li > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 47px;
  padding: 0 9px;
  text-decoration: none;
}

.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li:focus-within > a,
.main-navigation .main-nav ul li.current-menu-item > a,
.menu-bar-item > a:hover,
.menu-bar-item > a:focus {
  background: var(--sr-red-deep);
  color: #ffffff;
}

.sub-menu {
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 204px;
  display: none;
  background: rgba(61, 55, 54, 0.96);
  z-index: 30;
}

.menu-item-has-children:hover > .sub-menu,
.menu-item-has-children:focus-within > .sub-menu,
.menu-item-has-children.is-open > .sub-menu {
  display: block;
}

.sub-menu .menu-item a {
  display: block;
  padding: 10px 12px;
  line-height: 1.4;
}

.menu-bar-items {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-bar-item > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 47px;
  text-decoration: none;
}

.featured-image.page-header-image {
  margin-top: 0;
  text-align: center;
}

.featured-image.page-header-image img {
  width: 150px;
  height: 150px;
  object-fit: cover;
}

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

.site-content {
  padding: 0 8px;
}

.site-content .content-area {
  width: 100%;
}

.site-main > * {
  margin-bottom: 0;
}

.inside-article {
  background: var(--sr-surface);
  padding: 0 8px;
}

.entry-header,
.page-header {
  margin-bottom: 1rem;
}

.entry-title,
.page-title {
  margin: 0;
  color: var(--sr-blue-text);
  font-size: 40px;
  font-weight: 600;
}

.entry-content {
  color: #000000;
}

.entry-content p:last-child {
  margin-bottom: 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  margin: 0 0 0.8rem;
  font-family: "Times New Roman", Times, serif;
}

.entry-content h2 {
  color: #ef0303;
  text-align: center;
  font-size: 20px;
}

.entry-content h3 {
  color: #009703;
  text-align: center;
  font-size: 19px;
}

.entry-content h4,
.entry-content h5,
.entry-content h6 {
  font-size: 20px;
}

.wp-block-latest-posts__list {
  padding-left: 20px;
}

.wp-block-latest-posts__list li {
  padding-bottom: 15px;
  line-height: 1.2;
  font-size: 95%;
}

.wp-block-latest-posts__list a {
  color: #0000ef;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: blue;
}

.wp-block-button__link,
.sr-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border: 0;
  background: var(--sr-accent);
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.wp-block-button__link:hover,
.wp-block-button__link:focus,
.sr-button:hover,
.sr-button:focus {
  background: #0f63be;
  color: #ffffff;
}

.sr-empty-state {
  margin: 0;
  padding: 14px;
  border: 1px dashed #c4c4c4;
  color: var(--sr-muted);
  font-size: 15px;
}

.sr-home-main,
.sr-page-main,
.sr-single-main {
  padding-bottom: 28px;
}

.sr-home-panel,
.sr-copy-block,
.sr-faq-card,
.sr-page-panel,
.sr-post-shell,
.sr-archive-shell,
.sr-entry-card {
  padding: 16px 12px;
}

.sr-home-lead {
  font-size: 19px;
  font-weight: 600;
  text-align: center;
}

.sr-home-live {
  display: flex;
  justify-content: center;
  margin: 18px 0 10px;
}

.sr-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border-radius: 999px;
  background: #ffffff;
  color: #c40000;
  border: 2px solid #ff0000;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.sr-live-pill::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #ff0000;
  box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.65);
  animation: sr-pulse 1.8s infinite;
}

@keyframes sr-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.65);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 0, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
  }
}

.sr-home-actions,
.sr-social-actions,
.social-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.social-button,
.apply-button,
.sr-chip-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 700;
}

.sr-chip-link {
  background: #f5f7fb;
  border: 1px solid #c8d2e8;
  color: var(--sr-blue-text);
}

.sr-chip-link:hover,
.sr-chip-link:focus {
  background: #e9efff;
  color: var(--sr-link-hover);
}

.apply-button {
  color: #ff0000;
  background: #ffffff;
  border: 2px solid #ff0000;
}

.apply-button:hover,
.apply-button:focus {
  background: #ffefef;
}

.social-button {
  color: #ffffff;
}

.social-button.whatsapp {
  background: #25d366;
}

.social-button.telegram {
  background: #0088cc;
}

.social-button img,
.social-button svg {
  width: 20px;
  height: 20px;
}

.sr-tools-link {
  text-align: center;
  font-size: 20px;
  padding: 10px;
  text-decoration: underline;
}

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

.sr-update-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  padding: 14px 12px;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
  text-decoration: underline;
  box-shadow: var(--sr-shadow);
}

.sr-update-card:nth-child(6n + 1) { background: #7d0000; }
.sr-update-card:nth-child(6n + 2) { background: #065f0a; }
.sr-update-card:nth-child(6n + 3) { background: #0c3fb7; }
.sr-update-card:nth-child(6n + 4) { background: #8f4800; }
.sr-update-card:nth-child(6n + 5) { background: #5b032f; }
.sr-update-card:nth-child(6n + 6) { background: #056f76; }

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

.sr-category-card {
  background: #ffffff;
  border: 1px solid #d7d7d7;
  box-shadow: var(--sr-shadow);
  padding: 14px 14px 16px;
}

.sr-category-title {
  margin: 0 0 12px;
  color: #111111;
  text-align: center;
  font-family: "Times New Roman", Times, serif;
  font-size: 30px;
  font-weight: 700;
}

.sr-list-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}

.sr-home-top-pages {
  padding-top: 6px;
}

.sr-top-pages-copy,
.sr-copy-block p,
.sr-page-intro {
  text-align: center;
  text-transform: capitalize;
}

.sr-top-pages-table-wrap {
  overflow-x: auto;
}

.sr-top-pages-table {
  width: min(100%, 770px);
  margin: 0 auto;
}

.sr-top-pages-table td {
  text-align: center;
  padding: 8px;
}

.sr-copy-block {
  margin-top: 8px;
}

.sr-copy-block h2 {
  margin: 0 0 10px;
  color: var(--sr-blue-text);
  text-align: center;
  text-transform: capitalize;
  font-size: 30px;
  font-weight: 600;
}

.sr-note-list {
  margin-top: 8px;
}

.sr-faq-card {
  margin-top: 18px;
  border-radius: 5px;
  background: #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.sr-faq-card h2 {
  margin: 0 0 18px;
  color: #111111;
  font-size: 28px;
}

.sr-faq-item + .sr-faq-item {
  margin-top: 12px;
}

.sr-faq-item strong {
  display: block;
  margin-bottom: 6px;
}

.sr-page-panel .entry-title {
  color: var(--sr-blue-text);
}

.sr-page-special-title {
  margin: 0 0 16px;
  color: var(--sr-blue-text);
  font-size: 30px;
  text-align: center;
  font-family: "Times New Roman", Times, serif;
}

.sr-page-section-list {
  margin-top: 20px;
}

.sr-page-section-list h2 {
  margin: 0 0 10px;
  color: #111111;
  font-size: 30px;
  text-align: center;
  font-family: "Times New Roman", Times, serif;
}

.sr-post-shell {
  max-width: 930px;
  margin: 0 auto;
  padding-top: 20px;
  font-family: "Times New Roman", Times, serif;
}

.sr-single-title {
  margin: 0 0 10px;
  color: #0312e6;
  font-size: 20px;
  text-transform: capitalize;
}

.sr-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  margin-bottom: 10px;
}

.sr-post-date {
  margin: 0;
  color: #000000;
  font-size: 15px;
  font-weight: 600;
}

.custom-post-time {
  color: #ff0000;
  font-size: 15px;
  font-weight: 600;
}

.short_Details {
  max-width: 750px;
  margin-bottom: 18px;
  font-size: 19px;
  text-transform: capitalize;
}

.short_Details p,
.short_Details li {
  font-size: inherit;
}

.sr-single-content,
.sr-single-bottom {
  font-size: 19px;
}

.sr-single-content a {
  color: #000fe3;
}

.sr-single-content a:hover {
  color: #f30000;
}

.sr-single-content table,
.sr-single-bottom table {
  margin: 0 0 1rem;
}

.sr-single-content ul,
.sr-single-content ol {
  margin-left: 1.5rem;
}

.sr-post-related {
  margin-top: 20px;
}

.sr-post-related table h3 {
  margin-bottom: 10px;
  color: #111111;
  text-align: left;
}

.sr-post-related p {
  margin-bottom: 10px;
}

.sr-archive-shell,
.sr-entry-card {
  max-width: 930px;
  margin: 0 auto;
}

.sr-archive-description,
.sr-entry-card-excerpt {
  margin-bottom: 18px;
}

.sr-entry-card {
  border: 1px solid #d7d7d7;
  box-shadow: var(--sr-shadow);
}

.sr-entry-card + .sr-entry-card {
  margin-top: 18px;
}

.sr-entry-card-title {
  margin: 0 0 10px;
  color: var(--sr-blue-text);
  font-size: 26px;
  font-family: "Times New Roman", Times, serif;
}

.sr-entry-card-meta {
  margin-bottom: 10px;
  color: #555555;
  font-size: 14px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 22px 0;
}

.nav-links .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #d7d7d7;
  background: #ffffff;
  color: var(--sr-link);
  text-decoration: none;
}

.nav-links .current,
.nav-links .page-numbers:hover,
.nav-links .page-numbers:focus {
  background: var(--sr-blue);
  color: #ffffff;
}

.site-footer {
  margin-top: 20px;
}

.sr-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
  border-top: 2px solid #a89a9a;
  background: var(--sr-footer);
  color: #ffffff;
}

.sr-footer-copy {
  font-size: 15px;
}

.sr-footer-copy,
.sr-footer-copy a,
.sr-footer-nav a {
  color: #ffffff;
}

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

.sr-footer-nav a {
  font-size: 15px;
  text-decoration: none;
}

.sr-footer-nav a:hover,
.sr-footer-nav a:focus {
  color: #ff0000;
}

.gp-modal:not(.gp-modal--open) {
  display: none;
}

.gp-modal__overlay {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 25vh;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(3px);
  z-index: 10000;
}

.gp-modal__container {
  width: min(500px, calc(100vw - 20px));
}

.search-modal-form {
  background: #ffffff;
  color: #000000;
  box-shadow: var(--sr-shadow);
}

.search-modal-fields {
  display: flex;
}

.search-modal-fields .search-field {
  width: 100%;
  height: 60px;
  padding: 0 18px;
  border: 0;
  background: transparent;
  outline: none;
}

.search-modal-fields button {
  width: 60px;
  border: 0;
  background: transparent;
  color: #000000;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .main-title {
    font-size: 32px;
    line-height: 1.2;
  }

  .site-description {
    font-size: 18px;
  }

  .entry-title,
  .page-title {
    font-size: 25px;
  }

  .sr-footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .sr-footer-nav {
    justify-content: center;
  }
}

@media (max-width: 900px) {
  .inside-navigation {
    padding: 0 18px;
  }

  .menu-toggle {
    display: inline-flex;
  }

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

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

  .menu {
    flex-direction: column;
    align-items: stretch;
  }

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

  .main-navigation .main-nav ul li > a {
    width: 100%;
    justify-content: space-between;
    min-height: 46px;
    padding: 0 4px;
  }

  .sub-menu {
    position: static;
    min-width: 0;
    margin-top: 0;
  }

  .main-navigation.toggled .sub-menu {
    display: none;
  }

  .menu-item-has-children.is-open > .sub-menu {
    display: block;
  }

  .inside-navigation {
    flex-wrap: wrap;
  }

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

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

@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  .grid-container,
  .site.grid-container.container {
    width: calc(100% - 8px);
  }

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

  .site-content {
    padding: 4px 9px 4px 4px;
  }

  .inside-article,
  .sr-home-panel,
  .sr-copy-block,
  .sr-faq-card,
  .sr-page-panel,
  .sr-post-shell,
  .sr-archive-shell,
  .sr-entry-card {
    padding-inline: 4px;
  }

  .entry-title,
  .page-title {
    font-size: 26px;
  }

  .sr-category-title,
  .sr-page-section-list h2,
  .sr-copy-block h2 {
    font-size: 22px;
  }

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

  .wp-block-latest-posts__list {
    padding-left: 0;
  }

  .wp-block-latest-posts__list a {
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
  }

  .sr-single-title {
    font-size: 17px;
  }

  .short_Details,
  .sr-single-content,
  .sr-single-bottom {
    font-size: 16px;
  }

  .sr-post-related table,
  .sr-top-pages-table {
    min-width: 540px;
  }

  .gp-modal__overlay {
    padding-top: 18vh;
  }
}
