/*
Theme Name: Yojana Manch Premium Green V3
Theme URI: https://igrroww.in
Author: iGrroww.in Web Services
Author URI: https://igrroww.in
Description: India's No. 1 Premium Sarkari Job & Utility Portal Theme. Features Smart Split Logic (Jobs vs Yojana), Dark Mode Engine, 1200px Desktop Lock, and Ultra-Fast load times. Built without shortcuts. Developed by iGrroww.in. For custom web development or support, WhatsApp: +91-7037897747.
Version: 5.0.0 Master Edition
Text Domain: yojanamanch
Tags: sarkari, jobs, education, dark-mode, custom-colors, two-columns, custom-menu
*/

/* ==========================================================================
   1. GLOBAL VARIABLES (THE MASTER COLOR ENGINE)
   ========================================================================== */
:root {
    /* Primary Theme Colors - The Premium Green Palette */
    --brand-green: #15803d;        /* Trust Green (Primary) */
    --brand-green-dark: #14532d;   /* Hover / Darker Green */
    --brand-red: #dc2626;          /* Alerts & Urgent Tags */
    --brand-blue: #2563eb;         /* Standard Links */
    --brand-magenta: #d946ef;      /* Highlight Headers */
    --brand-orange: #ea580c;       /* FOMO / Last Date Alerts */
    
    /* Light Mode Backgrounds */
    --bg-body: #f0f2f5;            /* Soft Grey for outside wrapper (Body) */
    --bg-main: #ffffff;            /* Pure white for inner content boxes */
    --bg-topbar: #0f172a;          /* Dark Navy for Headers/Footers */
    
    /* Light Mode Typography & Borders */
    --text-topbar: #e2e8f0;        /* Light text for dark backgrounds */
    --text-main: #1e293b;          /* Dark Slate for deep reading contrast */
    --text-muted: #64748b;         /* Grey for dates, breadcrumbs, and meta info */
    --border-color: #cbd5e1;       /* Soft borders for structural grid */
}

/* ==========================================================================
   2. DARK MODE OVERRIDES (THE NIGHT ENGINE)
   ========================================================================== */
body.dark-mode {
    /* Dark Mode Backgrounds */
    --bg-body: #020617;            /* Pitch black background */
    --bg-main: #0f172a;            /* Dark Navy for content boxes */
    --bg-topbar: #000000;          /* Pure black for headers and footers */
    
    /* Dark Mode Typography & Borders */
    --text-main: #f8fafc;          /* Bright white for reading */
    --text-muted: #94a3b8;         /* Light grey for meta info */
    --border-color: #334155;       /* Dark grey borders for separation */
    
    /* Adjusting Brand Colors for Dark Mode contrast */
    --brand-green: #16a34a;        /* Slightly lighter, glowing neon-ish green */
    --brand-green-dark: #15803d;
    --brand-red: #ef4444;          /* Brighter red for dark background */
}

/* ==========================================================================
   3. GLOBAL RESET & BASE TYPOGRAPHY
   ========================================================================== */
* { 
    box-sizing: border-box; 
    margin: 0;
    padding: 0;
}

body {
    /* Zero render-blocking system fonts for max Google PageSpeed score */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    
    /* THE MASTER LOCK: Forces 1200px on all devices (Sarkari Desktop View on Mobile) */
    min-width: 1200px !important;
    overflow-x: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Base Link Styling */
a { 
    text-decoration: none; 
    color: var(--brand-blue);
    transition: all 0.2s ease-in-out; 
}
a:hover {
    color: var(--brand-green);
}

/* Default Lists */
ul, ol { 
    list-style: none; 
}

/* Images & Media */
img, video, iframe {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   4. THE MASTER WRAPPER (CONTAINER)
   ========================================================================== */
.premium-wrapper {
    width: 1200px;
    margin: 0 auto;
    background-color: var(--bg-main);
    box-shadow: 0 4px 30px rgba(0,0,0,0.08); /* Premium heavy shadow */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}
body.dark-mode .premium-wrapper {
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

/* ==========================================================================
   5. HARDWARE-ACCELERATED ANIMATIONS (Zero JS)
   ========================================================================== */

/* The signature Sarkari 'NEW' tag blink effect */
@keyframes blink-premium {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.96); }
}

/* Footer pulsing heart effect */
@keyframes pulse-heart {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* CSS Ticker Scroll (Header) */
@keyframes ticker-scroll { 
    0% { transform: translate3d(0, 0, 0); } 
    100% { transform: translate3d(-100%, 0, 0); } 
}

/* Apply animation classes globally */
.animate-blink {
    animation: blink-premium 1.5s infinite ease-in-out;
}
.animate-pulse {
    animation: pulse-heart 1.5s infinite;
}

/* ==========================================================================
   6. GLOBAL UI COMPONENTS (Badges, Tags, Utilities)
   ========================================================================== */

/* Standard Global New Tag */
.tag-blink-new { 
    background: var(--brand-red); 
    color: #ffffff; 
    font-size: 10px; 
    padding: 3px 8px; 
    border-radius: 3px; 
    margin-left: 8px; 
    font-weight: 900; 
    text-transform: uppercase; 
    letter-spacing: 0.5px;
    vertical-align: middle;
    display: inline-block;
    line-height: 1;
}

/* FOMO Tag (Fear Of Missing Out - Last Date Alert) */
.tag-fomo-alert {
    background: var(--brand-orange); 
    color: #ffffff; 
    font-size: 10px; 
    padding: 3px 8px; 
    border-radius: 3px; 
    margin-left: 8px; 
    font-weight: 900; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    vertical-align: middle;
    display: inline-block; 
    box-shadow: 0 0 8px rgba(234, 88, 12, 0.4); 
    line-height: 1;
}

/* Utility Classes */
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }
.font-bold { font-weight: 700 !important; }
.font-black { font-weight: 900 !important; }
.uppercase { text-transform: uppercase !important; }

/* Spacing Utilities */
.mt-10 { margin-top: 10px !important; }
.mt-20 { margin-top: 20px !important; }
.mt-30 { margin-top: 30px !important; }
.mb-10 { margin-bottom: 10px !important; }
.mb-20 { margin-bottom: 20px !important; }
.mb-30 { margin-bottom: 30px !important; }

/* ==========================================================================
   7. WORDPRESS CORE CLASSES (Crucial for proper theme functioning)
   ========================================================================== */
.alignnone {
    margin: 5px 20px 20px 0;
}
.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}
.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}
.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}
a img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}
a img.alignnone {
    margin: 5px 20px 20px 0;
}
a img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}
a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.wp-caption {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    max-width: 96%; /* Image does not overflow the content area */
    padding: 5px 3px 10px;
    text-align: center;
}
.wp-caption.alignnone { margin: 5px 20px 20px 0; }
.wp-caption.alignleft { margin: 5px 20px 20px 0; }
.wp-caption.alignright { margin: 5px 0 20px 20px; }
.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}
.wp-caption p.wp-caption-text {
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
    padding: 10px 4px 5px;
    color: var(--text-muted);
    font-weight: 600;
}
.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;
}

/* ==========================================================================
   8. PREMIUM CUSTOM SCROLLBAR ENGINE
   ========================================================================== */
::-webkit-scrollbar { 
    width: 10px; 
    height: 10px;
}
::-webkit-scrollbar-track { 
    background: var(--bg-body); 
    border-left: 1px solid var(--border-color);
}
::-webkit-scrollbar-thumb { 
    background: var(--brand-green); 
    border-radius: 0px; 
    border: 2px solid var(--bg-body);
}
::-webkit-scrollbar-thumb:hover { 
    background: var(--brand-green-dark); 
}

/* Scrollbar Dark Mode logic */
body.dark-mode ::-webkit-scrollbar-track {
    background: #020617;
    border-left: 1px solid #334155;
}
body.dark-mode ::-webkit-scrollbar-thumb {
    background: #334155;
    border: 2px solid #020617;
}
body.dark-mode ::-webkit-scrollbar-thumb:hover {
    background: var(--brand-green);
}

/* ==========================================================================
   9. GLOBAL PRINT STYLES (Clean output for offline saving)
   ========================================================================== */
@media print {
    body, .premium-wrapper { 
        background: #ffffff !important; 
        color: #000000 !important; 
        box-shadow: none !important;
        width: 100% !important;
        min-width: 0 !important;
    }
    
    /* Hide all non-essential UI elements during print */
    .top-bar-slim, 
    .header-main-clean, 
    .main-nav-premium, 
    .live-ticker-bar, 
    .premium-sidebar-wrapper, 
    .footer-premium, 
    .state-filter-bar,
    .btn-theme-toggle { 
        display: none !important; 
    }

    a { 
        color: #000000 !important; 
        text-decoration: underline !important; 
    }
    
    /* Force page breaks neatly */
    h1, h2, h3 { 
        page-break-after: avoid; 
    }
    img, table { 
        page-break-inside: avoid; 
    }
}