/*
Theme Name: Sarkari Form Zone
Theme URI: https://sarkariformzone.com
Author: Sarkari Form Zone
Author URI: https://sarkariformzone.com
Description: WordPress theme inspired by SarkariResult.com - Government jobs, results, admit cards & exam updates. Built with Bootstrap 5 grid.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sarkariformzone
Tags: custom-menu, featured-images, threaded-comments, translation-ready, full-width-template, theme-options, government, jobs, education
*/

/* ==========================================================================
   Variables - Sarkari Result Color Scheme
   ========================================================================== */
:root {
  --sr-primary: #003366;
  --sr-primary-dark: #002a4d;
  --sr-secondary: #1a5276;
  --sr-success: #27ae60;
  --sr-warning: #f39c12;
  --sr-dark: #2c3e50;
  --sr-light: #ecf0f1;
  --sr-white: #ffffff;
  --sr-border: #bdc3c7;
  --sr-text: #333333;
  --sr-link: #2980b9;
  --header-bg: #003366;
  --header-text: #ffffff;
}

/* ==========================================================================
   Base
   ========================================================================== */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--sr-text);
  background: var(--sr-white);
  line-height: 1.6;
}

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

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

/* ==========================================================================
   Header - Sarkari Result Style
   ========================================================================== */
.sr-header {
  background: var(--header-bg);
  color: var(--header-text);
  padding: 15px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.sr-logo-wrap {
  text-align: center;
}

.sr-logo-img,
.sr-header .custom-logo-link img {
  max-height: 60px;
  width: auto;
  vertical-align: middle;
}

.sr-header .custom-logo-link {
  display: inline-block;
}

.sr-logo-text {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1px;
  margin: 0;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.sr-logo-tagline {
  font-size: 12px;
  opacity: 0.95;
  letter-spacing: 2px;
  margin-top: 2px;
}

/* Main Navigation */
.sr-nav-wrap {
  background: var(--sr-primary-dark);
  padding: 0;
}

.sr-nav .nav-link {
  color: var(--sr-white) !important;
  font-weight: 600;
  padding: 12px 18px !important;
  border-radius: 0;
  transition: background 0.2s;
}

.sr-nav .nav-link:hover,
.sr-nav .nav-link:focus {
  background: rgba(255,255,255,0.15);
  color: var(--sr-white) !important;
}

.sr-nav .nav-item.active .nav-link {
  background: rgba(255,255,255,0.2);
}

/* ==========================================================================
   Hero / Welcome Section
   ========================================================================== */
.sr-hero {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-bottom: 3px solid var(--sr-primary);
  padding: 20px 0;
  margin-bottom: 25px;
}

.sr-hero h1 {
  font-size: 22px;
  color: var(--sr-dark);
  margin-bottom: 8px;
  font-weight: 700;
}

.sr-hero .lead {
  font-size: 15px;
  color: #555;
  margin-bottom: 15px;
}
.sr-hero .sublead {
  font-size: 13px;
  color: #555;
  margin-bottom: 10px;
}


.sr-quick-links {
  font-size: 14px;
}

.sr-quick-links a {
  color: var(--sr-primary);
  font-weight: 600;
}

.sr-quick-links .sep {
  color: var(--sr-border);
  margin: 0 8px;
}

/* ==========================================================================
   Featured Links (|| separated)
   ========================================================================== */
.sr-featured-row {
  margin-bottom: 15px;
  font-size: 14px;
}

.sr-featured-row a {
  color: var(--sr-primary);
  font-weight: 600;
}

.sr-featured-row .sep {
  color: var(--sr-border);
  margin: 0 10px;
}

/* ==========================================================================
   Job Cards Grid (4 columns)
   ========================================================================== */
.sr-job-cards-grid .sr-job-card {
  background: var(--sr-job-card-bg, var(--sr-white));
}

.sr-job-card {
  background: var(--sr-white);
  border: 1px solid var(--sr-border);
  border-radius: 4px;
  padding: 15px;
  height: 100%;
  text-align: center;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.sr-job-card:hover {
  border-color: var(--sr-primary);
  box-shadow: 0 4px 12px rgba(196, 30, 58, 0.15);
}

.sr-job-card a {
  color: var(--sr-primary);
  font-weight: 600;
  font-size: 14px;
  display: block;
  text-decoration: none;
}

.sr-job-card a:hover {
  color: var(--sr-primary-dark);
  text-decoration: underline;
}

.sr-job-card .badge-type {
  font-size: 11px;
  background: var(--sr-secondary);
  color: white;
  padding: 3px 8px;
  border-radius: 3px;
  margin-top: 5px;
  display: inline-block;
}

/* When card has custom text color (e.g. white on red), title and badge inherit for readability */
.sr-job-card[style*="color:"] a,
.sr-job-card[style*="color:"] .badge-type {
  color: inherit;
}
.sr-job-card[style*="color:"] .badge-type {
  background: transparent;
  border: 1px solid currentColor;
}

/* ==========================================================================
   Content Sections (Result, Answer Key, Admit Card, etc.)
   ========================================================================== */
.sr-section {
  background: var(--sr-white);
  border: 1px solid var(--sr-border);
  border-radius: 4px;
  margin-bottom: 25px;
  overflow: hidden;
}

.sr-section-header {
  background: var(--sr-primary);
  color: var(--sr-white);
  padding: 12px 18px;
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.sr-section-header a {
  color: var(--sr-white);
  font-size: 14px;
  font-weight: 600;
  opacity: 0.95;
}

.sr-section-header a:hover {
  color: var(--sr-white);
  text-decoration: underline;
  opacity: 1;
}

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

.sr-section-list li {
  border-bottom: 1px solid #eee;
  padding: 10px 18px;
  font-size: 14px;
}

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

.sr-section-list a {
  color: var(--sr-text);
  font-weight: bold;
  font-size: 15px;
}

.sr-section-list a:hover {
  color: var(--sr-primary);
}

.sr-section-list .badge-updated {
  background: var(--sr-success);
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 2px;
  margin-left: 6px;
}

.sr-section-list .badge-extended {
  background: var(--sr-warning);
  color: #333;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 2px;
  margin-left: 6px;
}

/* ==========================================================================
   Home Page Content (below categories) - info block + 3-column widget area
   ========================================================================== */
.sr-home-info-block {
  border: 2px solid #ff7a00;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.sr-home-info-block-title {
  background: #a92e31;
  color: #fff;
  margin: 0;
  padding: 14px 20px;
  font-size: 18px;
  font-weight: 700;
}

.sr-home-info-block-body {
  background: #fff;
  color: #333;
  padding: 20px;
  font-size: 15px;
  line-height: 1.6;
}

.sr-home-info-block-body p:last-child {
  margin-bottom: 0;
}

/* Dark 3-column section (Quick Links, Apps, More) - front page only */
.sr-home-content-section {
  background: #2c3e50;
  color: #ecf0f1;
  padding: 35px 0 40px;
  margin-top: 2rem;
}

.sr-home-content-section .sr-home-widget-title {
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
}

.sr-home-content-section .widget {
  margin-bottom: 0;
}

.sr-home-content-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sr-home-content-section ul li {
  margin-bottom: 6px;
  font-size: 14px;
}

.sr-home-content-section a {
  color: #bdc3c7;
}

.sr-home-content-section a:hover {
  color: #fff;
}

/* ==========================================================================
   Section Repeater Meta (plugin) – front-end display
   ========================================================================== */
.sr-srm-section {
  border: 1px solid var(--sr-border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.sr-srm-section-title {
  background: var(--sr-primary);
  color: var(--sr-white);
  margin: 0;
  padding: 12px 18px;
  font-size: 1.15rem;
}

.sr-srm-row {
  padding: 12px 18px;
  border-bottom: 1px solid var(--sr-border);
}

.sr-srm-row:last-child {
  border-bottom: none;
}

.sr-srm-heading {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--sr-text);
}

.sr-srm-description {
  font-size: 14px;
  line-height: 1.6;
}

.sr-srm-description p:last-child {
  margin-bottom: 0;
}

/* New structure: Section → Block (Heading 1, Heading 2, Data list) */
.sr-srm-blocks {
  padding: 0 18px 18px;
}

/* 2-column layout: headings side by side (e.g. Important Dates | Application Fee) */
.sr-srm-section.sr-srm-cols-2col .sr-srm-blocks {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  width: 100%;
}

.sr-srm-section.sr-srm-cols-2col .sr-srm-block {
  padding: 11px 18px 0 0;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  border-bottom: none !important;
  border-right: 1px solid var(--sr-border);
  min-width: 0; /* allow grid item to shrink */
}

.sr-srm-section.sr-srm-cols-2col .sr-srm-block:nth-child(2n) {
  padding: 11px 0 0 18px;
  border-right: none;
}

.sr-srm-section.sr-srm-cols-2col .sr-srm-block:nth-child(2n-1) {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .sr-srm-section.sr-srm-cols-2col .sr-srm-blocks {
    grid-template-columns: 1fr;
  }
  .sr-srm-section.sr-srm-cols-2col .sr-srm-block {
    padding: 0 0 1rem;
    border-right: none;
    border-bottom: 1px solid var(--sr-border);
  }
  .sr-srm-section.sr-srm-cols-2col .sr-srm-block:nth-child(2n) {
    padding: 0 0 1rem;
  }
}

.sr-srm-block {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--sr-border);
}

.sr-srm-block:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
  padding-top: 11px;
}

.sr-srm-heading1 {
  margin: 0 0 6px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sr-text);
}

.sr-srm-heading2 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--sr-text);
}

.sr-srm-data-list {
  margin: 0 0 0 1em;
  padding-left: 1em;
  list-style: disc;
}

.sr-srm-data-list li {
  margin-bottom: 4px;
  font-size: 14px;
  line-height: 1.5;
}

.sr-srm-content {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 0;
}

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

/* ==========================================================================
   Some Useful Important Links (theme meta box)
   ========================================================================== */
.sr-useful-links {
  border: 1px solid var(--sr-border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.sr-useful-links-title {
  margin: 0;
  padding: 12px 18px;
  font-size: 1.15rem;
  font-weight: 700;
  text-align: center;
  color: #28a745;
  background: #f8f9fa;
  border-bottom: 1px solid var(--sr-border);
}

.sr-useful-links-table {
  padding: 0;
}

.sr-useful-links-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--sr-border);
}

.sr-useful-links-row:last-child {
  border-bottom: none;
}

.sr-useful-links-cell {
  padding: 12px 18px;
  border-right: 1px solid var(--sr-border);
  font-size: 20px;
  line-height: 1.5;
}

.sr-useful-links-cell:last-child {
  border-right: none;
}

.sr-useful-links-label {
  font-weight: 700;
  color: #c71585;
}

.sr-useful-links-label a {
  color: #c71585;
  text-decoration: none;
}

.sr-useful-links-label a:hover {
  text-decoration: underline;
}

.sr-useful-links-link a {
  font-weight: 700;
  color: #0073aa;
  text-decoration: none;
}

.sr-useful-links-link a:hover {
  text-decoration: underline;
}

@media (max-width: 767px) {
  .sr-useful-links-row {
    grid-template-columns: 1fr 0.5fr;
  }
  .sr-useful-links-cell {
    border-right: none;
    border-bottom: 1px solid var(--sr-border);
  }
  .sr-useful-links-row .sr-useful-links-cell:last-child {
    border-bottom: none;
  }
  .sr-useful-links-link a {
    font-size: 15px;
  }
  .sr-useful-links-cell{
	  font-size: 15px;
  }
}

/* ==========================================================================
   Main Content Area
   ========================================================================== */
.sr-main {
  padding: 25px 0 40px;
}

.sr-page-title {
  font-size: 24px;
  color: var(--sr-dark);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--sr-primary);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.sr-footer {
  background: var(--sr-dark);
  color: #bdc3c7;
  padding: 30px 0 20px;
  margin-top: 40px;
}

.sr-footer h5 {
  color: var(--sr-white);
  font-size: 16px;
  margin-bottom: 15px;
  font-weight: 600;
}

.sr-footer a {
  color: #bdc3c7;
  font-size: 14px;
}

.sr-footer a:hover {
  color: var(--sr-white);
}

.sr-footer-bottom {
  border-top: 1px solid #34495e;
  margin-top: 25px;
  padding-top: 15px;
  text-align: center;
  font-size: 13px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-sr-primary {
  background: var(--sr-primary);
  color: var(--sr-white);
  border: none;
  padding: 8px 20px;
  border-radius: 4px;
  font-weight: 600;
}

.btn-sr-primary:hover {
  background: var(--sr-primary-dark);
  color: var(--sr-white);
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.sr-container {
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
}

.text-sr-primary { color: var(--sr-primary) !important; }
.bg-sr-primary { background-color: var(--sr-primary) !important; }

.rank-math-breadcrumb {
    font-size: 14px;
    margin-bottom: 10px;
}

.rank-math-breadcrumb a {
    text-decoration: none;
}

.rank-math-breadcrumb span.separator {
    margin: 0 5px;
}

.sr-section-new .entry-content{
	text-align:justify;
}


.job-info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.job-info-table th,
.job-info-table td {
    border: 1px solid #dcdcdc;
    padding: 12px 15px;
    text-align: left;
}

.job-info-table th {
    background: #f5f5f5;
    font-weight: 600;
    width: 35%;
}

.job-info-table tr:nth-child(even) {
    background: #fafafa;
}

.job-info-table tr:hover {
    background: #f2f2f2;
}


.h2, h2{
	font-size: 22px;
}