/*
Theme Name: Yojana Manch Premium Pro
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 Responsive Mobile Layout, Royal Navy Color Engine, Dark Mode, and Ultra-Fast load times. Built without shortcuts. Developed by iGrroww.in. For custom web development or support, WhatsApp: +91-7037897747.
Version: 5.3.0 Mobile Responsive Edition
Text Domain: yojanamanch
Tags: sarkari, jobs, education, dark-mode, custom-colors, responsive-layout, custom-menu
*/

/* ==========================================================================
   1. GLOBAL VARIABLES (ROYAL NAVY & CRIMSON COLOR ENGINE)
   ========================================================================== */
:root {
    /* Primary Theme Colors - Royal Navy & Crimson Palette */
    --brand-green: #1d4ed8;        /* Deep Royal Blue (Trust/Corporate look) */
    --brand-green-dark: #1e3a8a;   /* Dark Navy Blue (Hovers and Borders) */
    --brand-red: #e11d48;          /* Crimson Rose (Elegant Red for Alerts/New Tags) */
    --brand-blue: #0284c7;         /* Sky Blue (Standard Links) */
    --brand-magenta: #9333ea;      /* Rich Purple (Highlight Headers) */
    --brand-orange: #ea580c;       /* Burnt Orange (FOMO / Last Date Alerts) */
    --brand-visited: #64748b;      /* Slate Grey for Clicked/Visited Links */
    
    /* Light Mode Backgrounds */
    --bg-body: #f8fafc;            /* Soft Pearl Grey for outside wrapper */
    --bg-main: #ffffff;            /* Pure white for inner content boxes */
    --bg-topbar: #0f172a;          /* Slate Black for Headers/Footers */
    
    /* Light Mode Typography & Borders */
    --text-topbar: #f8fafc;        /* Bright text for dark backgrounds */
    --text-main: #1e293b;          /* Dark Slate for deep reading contrast */
    --text-muted: #64748b;         /* Cool Grey for dates, breadcrumbs, meta info */
    --border-color: #e2e8f0;       /* Very 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;            /* Deep Navy for content boxes */
    --bg-topbar: #000000;          /* Pure black for headers and footers */
    
    /* Dark Mode Typography & Borders */
    --text-main: #f1f5f9;          /* Off-white for comfortable reading */
    --text-muted: #94a3b8;         /* Light grey for meta info */
    --border-color: #1e293b;       /* Dark slate borders for separation */
    
    /* Adjusting Brand Colors for Dark Mode contrast */
    --brand-green: #3b82f6;        /* Bright Blue (Glowing effect) */
    --brand-green-dark: #2563eb;
    --brand-red: #f43f5e;          /* Neon Rose Red for dark background visibility */
    --brand-visited: #94a3b8;      /* Light Grey for Visited Links in Dark Mode */
}

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

body {
    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;
    overflow-x: hidden; 
    -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);
}
a:active {
    color: var(--brand-orange) !important;
    opacity: 0.8;
}

/* Visited Link Color Engine */
.data-list-container a:visited {
    color: var(--brand-visited) !important;
}

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

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

/* ==========================================================================
   4. THE MASTER WRAPPER (CONTAINER) - 1200px RESPONSIVE
   ========================================================================== */
.premium-wrapper {
    width: 100% !important; 
    max-width: 1200px !important; 
    margin: 0 auto;
    background-color: var(--bg-main);
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08); 
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow-x: hidden;
}
body.dark-mode .premium-wrapper {
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}

/* ==========================================================================
   5. HARDWARE-ACCELERATED ANIMATIONS (Zero JS)
   ========================================================================== */
@keyframes blink-premium {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(0.95); }
}

@keyframes pulse-heart {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes ticker-scroll { 
    0% { transform: translate3d(0, 0, 0); } 
    100% { transform: translate3d(-100%, 0, 0); } 
}

.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)
   ========================================================================== */
.tag-blink-new { 
    background: var(--brand-red); 
    color: #ffffff; 
    font-size: 10px; 
    padding: 3px 8px; 
    border-radius: 4px; 
    margin-left: 8px; 
    font-weight: 900; 
    text-transform: uppercase; 
    letter-spacing: 0.5px;
    vertical-align: middle;
    display: inline-block;
    line-height: 1;
    box-shadow: 0 2px 5px rgba(225, 29, 72, 0.3); 
}

.tag-fomo-alert {
    background: var(--brand-orange); 
    color: #ffffff; 
    font-size: 10px; 
    padding: 3px 8px; 
    border-radius: 4px; 
    margin-left: 8px; 
    font-weight: 900; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    vertical-align: middle;
    display: inline-block; 
    box-shadow: 0 2px 5px rgba(234, 88, 12, 0.3); 
    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
   ========================================================================== */
.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%; padding: 5px 3px 10px; text-align: center; border-radius: 4px; }
.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; border-radius: 2px; }
.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); }

body.dark-mode ::-webkit-scrollbar-track { background: #020617; border-left: 1px solid #1e293b; }
body.dark-mode ::-webkit-scrollbar-thumb { background: #1e293b; border: 2px solid #020617; }
body.dark-mode ::-webkit-scrollbar-thumb:hover { background: var(--brand-green); }

/* ==========================================================================
   9. GLOBAL PRINT STYLES 
   ========================================================================== */
@media print {
    body, .premium-wrapper { background: #ffffff !important; color: #000000 !important; box-shadow: none !important; width: 100% !important; min-width: 0 !important; }
    .top-bar-master, .header-main-master, .main-nav-master, .ticker-wrapper-master, .premium-sidebar-wrapper, .footer-premium, .state-filter-bar, .btn-theme-toggle { display: none !important; }
    a { color: #000000 !important; text-decoration: underline !important; }
    h1, h2, h3 { page-break-after: avoid; }
    img, table { page-break-inside: avoid; }
}

/* ==========================================================================
   10. HOMEPAGE CUSTOM SECTION COLORS 
   ========================================================================== */
/* ALL Category links will be Blue by default and turn Black on hover */
.master-grid-col a { 
    color: var(--brand-green) !important; 
    font-weight: 700;
}
.master-grid-col a:hover { 
    color: #000000 !important; /* Turns Black on Hover */
}
.master-grid-col a::before { 
    color: var(--brand-green) !important; 
}
body.dark-mode .master-grid-col a:hover { 
    color: #ffffff !important; /* Turns White on Hover in Dark Mode */
}
