/*
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 Portal. Perfect Mobile & Desktop Mode toggle fixed. Visited links active.
Version: 5.7.0 Ultimate Responsive Edition
Text Domain: yojanamanch
Tags: sarkari, jobs, education, dark-mode, custom-colors, responsive-layout
*/

/* ==========================================================================
   1. GLOBAL VARIABLES (ROYAL NAVY & CRIMSON COLOR ENGINE)
   ========================================================================== */
:root {
    --brand-green: #1d4ed8;
    --brand-green-dark: #1e3a8a;
    --brand-red: #e11d48;
    --brand-blue: #0284c7;
    --brand-magenta: #9333ea;
    --brand-orange: #ea580c;
    --brand-visited: #64748b; /* Visited Link Color */
    
    --bg-body: #f8fafc;
    --bg-main: #ffffff;
    --bg-topbar: #0f172a;
    
    --text-topbar: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
}

/* ==========================================================================
   2. DARK MODE OVERRIDES (THE NIGHT ENGINE)
   ========================================================================== */
body.dark-mode {
    --bg-body: #020617;
    --bg-main: #0f172a;
    --bg-topbar: #000000;
    
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border-color: #1e293b;
    
    --brand-green: #3b82f6;
    --brand-green-dark: #2563eb;
    --brand-red: #f43f5e;
    --brand-visited: #94a3b8; 
}

/* ==========================================================================
   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;
    -webkit-font-smoothing: antialiased;
    /* NOTE: 'overflow-x: hidden' hata diya gaya hai taaki Mobile ka 'Desktop Mode' sahi se zoom out kar sake */
}

/* 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 Coloring for Posts */
.data-list-container a:visited {
    color: var(--brand-visited) !important;
}

ul, ol { list-style: none; }
img, video, iframe { max-width: 100%; height: auto; }

/* ==========================================================================
   4. THE MASTER WRAPPER (CONTAINER) - SMART RESPONSIVE ENGINE
   ========================================================================== */
.premium-wrapper {
    width: 100%; 
    max-width: 1200px; /* Allows scaling down on mobile, but locks at 1200px on PC */
    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 hataya gaya hai for desktop mode support */
}
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
   ========================================================================== */
.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;
}

.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; }
.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, .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 
   ========================================================================== */
.top-3-section a { color: var(--brand-green) !important; }
.top-3-section a:hover { color: var(--brand-green-dark) !important; }
.mid-3-section a { color: var(--brand-magenta) !important; }
.mid-3-section a:hover { color: #7e22ce !important; }
.mid-3-section a::before { color: var(--brand-magenta) !important; }
.bottom-4-section a { background: linear-gradient(90deg, #ec4899, #3b82f6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-weight: 800; }
.bottom-4-section a::before { -webkit-text-fill-color: var(--brand-green); }