/*
Theme Name: eSarkariResults
Theme URI: https://esarkariresults.com
Author: eSarkariResults Team
Author URI: https://esarkariresults.com
Description: A modern, ultra-fast, lightweight, accessible, and SEO-optimized custom WordPress theme for Indian government jobs, exam results, admit cards, answer keys, admissions, and educational updates.
Version: 1.0.6
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: esarkariresults
Tags: government-jobs, sarkari-results, news, job-portal, responsive-layout, grid-layout, accessibility-ready, custom-menu, featured-images, full-width-template
*/

/* ==========================================================================
   CSS CUSTOM PROPERTIES (THEME TOKENS)
   ========================================================================== */
:root {
  /* Brand Palette */
  --esr-primary: #102B52;       /* Deep Navy Blue */
  --esr-primary-dark: #0A1C36;  /* Deeper Navy */
  --esr-primary-light: #1A3E72; /* Navy Accent */
  --esr-secondary: #FFFFFF;     /* Pure White */
  --esr-accent: #F59E0B;        /* Golden Amber */
  --esr-accent-hover: #D97706;  /* Dark Amber */
  
  /* Neutral System */
  --esr-bg-main: #F5F7FA;       /* Soft Light Grey Background */
  --esr-bg-card: #FFFFFF;       /* White Card Background */
  --esr-bg-subtle: #EEF2F6;     /* Subtle Gray */
  --esr-text-main: #1E293B;     /* Dark Slate */
  --esr-text-muted: #64748B;    /* Muted Slate Gray */
  --esr-text-light: #94A3B8;    /* Light Slate */
  --esr-border: #E2E8F0;        /* Subtle Border */
  --esr-border-focus: #102B52;  /* Focus Border */
  
  /* Status Colors */
  --esr-success: #10B981;       /* Vibrant Green */
  --esr-success-bg: #ECFDF5;
  --esr-alert: #EF4444;         /* Vibrant Red / Critical Alert */
  --esr-alert-bg: #FEF2F2;
  --esr-warning: #F59E0B;
  --esr-warning-bg: #FFFBEB;
  --esr-info: #3B82F6;
  --esr-info-bg: #EFF6FF;

  /* Typography */
  --esr-font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --esr-font-mono: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  /* Spacing */
  --esr-space-xs: 0.25rem;
  --esr-space-sm: 0.5rem;
  --esr-space-md: 1rem;
  --esr-space-lg: 1.5rem;
  --esr-space-xl: 2rem;
  --esr-space-2xl: 3rem;

  /* Shadows */
  --esr-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --esr-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --esr-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.03);

  /* Radii */
  --esr-radius-sm: 4px;
  --esr-radius-md: 8px;
  --esr-radius-lg: 12px;
  --esr-radius-full: 9999px;

  /* Layout Container */
  --esr-container-max: 1200px;
  --esr-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--esr-font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--esr-text-main);
  background-color: var(--esr-bg-main);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, svg, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--esr-primary);
  text-decoration: none;
  transition: var(--esr-transition);
}

a:hover, a:focus-visible {
  color: var(--esr-accent);
}

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--esr-accent);
  outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--esr-primary);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: var(--esr-space-sm);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
  margin-bottom: var(--esr-space-md);
  color: var(--esr-text-main);
  line-height: 1.65;
}

ul, ol {
  margin-bottom: var(--esr-space-md);
  padding-left: 1.5rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--esr-space-lg);
}

th, td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--esr-border);
  text-align: left;
}

th {
  background-color: var(--esr-primary);
  color: var(--esr-secondary);
  font-weight: 600;
}

/* Accessibility Skip Link */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.skip-link {
  position: absolute;
  top: -999px;
  left: 1rem;
  background: var(--esr-accent);
  color: var(--esr-primary-dark);
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  border-radius: var(--esr-radius-sm);
  z-index: 99999;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* Container */
.esr-container {
  width: 100%;
  max-width: var(--esr-container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Site Layout */
#site-content {
  flex: 1 0 auto;
  padding: var(--esr-space-xl) 0;
}

/* Badges & Tags */
.esr-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--esr-radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.esr-badge-primary { background: var(--esr-primary); color: #fff; }
.esr-badge-accent { background: var(--esr-accent); color: var(--esr-primary-dark); }
.esr-badge-alert { background: var(--esr-alert); color: #fff; }
.esr-badge-success { background: var(--esr-success); color: #fff; }

