/*
Theme Name: Nevika Computer Premium
Theme URI: https://igrroww.in
Author: iGrroww.in
Author URI: https://igrroww.in
Description: A modern, ultra-fast, and highly responsive custom WordPress theme for Nevika Computer, featuring a 100/100 UI, fixed height pillars, and a premium SaaS layout for Sarkari Jobs portals.
Version: 1.0.0
Text Domain: nevikapremium
*/

/* =========================================================
   NEVIKA COMPUTER - Premium Master CSS (100/100 UI)
   Includes: Homepage (Fixed Heights), Header, Footer & Posts
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* --- 1. GLOBAL VARIABLES --- */
:root {
    --brand-red: #dc2626;
    --brand-blue: #1e3a8a;
    --brand-green: #16a34a;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-soft: #e2e8f0;
    
    /* Premium Gradients */
    --grad-red: linear-gradient(135deg, #ef4444, #b91c1c);
    --grad-blue: linear-gradient(135deg, #3b82f6, #1d4ed8);
    --grad-green: linear-gradient(135deg, #22c55e, #15803d);
    --grad-purple: linear-gradient(135deg, #a855f7, #7e22ce);
    --grad-dark: linear-gradient(135deg, #334155, #0f172a);
    --grad-orange: linear-gradient(135deg, #f97316, #c2410c);
    --grad-teal: linear-gradient(135deg, #14b8a6, #0f766e);
    --grad-pink: linear-gradient(135deg, #ec4899, #be185d);
}

body { font-family: 'Inter', sans-serif; background-color: var(--bg-light); color: var(--text-main); margin: 0; }
.frontend-container { max-width: 1250px; margin: 0 auto; padding: 0 20px; }
a { transition: 0.3s; }

/* Custom Premium Scrollbar for Fixed Height Boxes */
.scroll-box::-webkit-scrollbar { width: 5px; }
.scroll-box::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 10px; }
.scroll-box::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
.scroll-box::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* --- 2. LIVE TICKER --- */
.premium-ticker { background: var(--bg-white); border-bottom: 1px solid var(--border-soft); display: flex; align-items: center; padding: 10px 20px; box-shadow: 0 2px 5px rgba(0,0,0,0.02); }
.ticker-badge { background: var(--brand-red); color: white; padding: 6px 14px; border-radius: 6px; font-weight: 800; font-size: 13px; white-space: nowrap; margin-right: 20px; animation: blink-soft 2s infinite; }
.ticker-content { flex-grow: 1; overflow: hidden; }
.ticker-content marquee a { color: var(--brand-blue); font-weight: 600; font-size: 14px; text-decoration: none; margin-right: 30px; }
.ticker-content marquee a:hover { color: var(--brand-red); text-decoration: underline; }
@keyframes blink-soft { 0%, 100% { opacity: 1; } 50% { opacity: 0.8; } }

/* --- 3. THE 8 TRENDING MINI BOXES --- */
.trending-mini-boxes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 25px 0 35px 0; }
.mini-box { display: flex; align-items: center; justify-content: center; text-align: center; padding: 8px 12px; border-radius: 6px; color: white; text-decoration: none; font-size: 11.5px; font-weight: 700; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mini-box:hover { transform: translateY(-2px); box-shadow: 0 6px 12px -3px rgba(0,0,0,0.2); color: white; }
.grad-red { background: var(--grad-red); } .grad-blue { background: var(--grad-blue); } .grad-green { background: var(--grad-green); } .grad-purple { background: var(--grad-purple); }
.grad-dark { background: var(--grad-dark); } .grad-orange { background: var(--grad-orange); } .grad-teal { background: var(--grad-teal); } .grad-pink { background: var(--grad-pink); }

/* --- 4. THE 3 MAIN PILLARS (Fixed Height 500px) --- */
.three-pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.pillar-box { background: var(--bg-white); border-radius: 10px; border: 1px solid var(--border-soft); box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); display: flex; flex-direction: column; overflow: hidden; }
.pillar-header { padding: 16px; color: white; font-size: 18px; font-weight: 800; text-align: center; text-transform: uppercase; }
.bg-job { background: var(--brand-red); } .bg-result { background: var(--brand-blue); } .bg-admit { background: #15803d; }

.pillar-list { list-style: none; padding: 0; margin: 0; height: 500px; overflow-y: auto; background: #fff; }
.pillar-list li { border-bottom: 1px solid #f1f5f9; }
.pillar-list a { display: block; padding: 12px 15px; color: var(--text-main); font-size: 13px; font-weight: 600; text-decoration: none; }
.pillar-list a:hover { color: var(--brand-red); background: #fef2f2; padding-left: 20px; }
.empty-msg { padding: 30px; text-align: center; color: var(--text-muted); font-size: 14px; }

.btn-view-all { display: block; text-align: center; padding: 12px; background: #f8fafc; color: var(--brand-blue); font-weight: 700; font-size: 13px; text-decoration: none; border-top: 1px solid var(--border-soft); text-transform: uppercase; }
.btn-view-all:hover { background: #eff6ff; color: #1d4ed8; }

/* --- 5. THE 4 SMALL BOXES (Fixed Height 250px) --- */
.grid-4-boxes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 40px; }
.box-4 { background: #fff; border: 1px solid var(--border-soft); border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.02); overflow: hidden; display: flex; flex-direction: column; }
.b4-head { background: #0f172a; color: white; padding: 12px; font-weight: 700; text-align: center; font-size: 15px; text-transform: uppercase; }
.b4-list { list-style: none; padding: 0; margin: 0; height: 250px; overflow-y: auto; }
.b4-list li { border-bottom: 1px solid #f1f5f9; }
.b4-list a { display: block; padding: 10px 12px; color: #334155; font-size: 12.5px; font-weight: 600; text-decoration: none; }
.b4-list a:hover { color: var(--brand-blue); background: #f8fafc; padding-left: 16px; }

/* --- 6. MEGA CATEGORY BOX --- */
.mega-category-box { background: var(--bg-white); border: 1px solid var(--border-soft); border-radius: 10px; overflow: hidden; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); margin-bottom: 40px; display: flex; flex-direction: column; }
.cat-head { background: linear-gradient(135deg, #1e293b, #0f172a); color: white; padding: 18px; font-size: 20px; font-weight: 800; text-align: center; letter-spacing: 0.5px; }
.cat-list-wrapper { padding: 20px; height: 350px; overflow-y: auto; }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.cat-item { display: flex; align-items: center; padding: 12px 15px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 6px; color: #334155; font-weight: 600; font-size: 14px; text-decoration: none; }
.cat-item i { color: var(--brand-red); margin-right: 10px; width: 20px; text-align: center; }
.cat-item:hover { border-color: #3b82f6; background: #ffffff; color: #1d4ed8; transform: translateX(5px); box-shadow: 0 4px 10px rgba(0,0,0,0.05); }

/* --- 7. WHY CHOOSE US (SEO BOX) --- */
.seo-box { background: #f1f5f9; padding: 35px; border-radius: 10px; border: 1px solid #cbd5e1; margin-bottom: 40px; }
.seo-box h2 { color: #0f172a; font-size: 24px; margin-top: 0; margin-bottom: 15px; font-weight: 900; }
.seo-box p { color: #475569; font-size: 15px; line-height: 1.8; margin-bottom: 15px; }
.seo-box ul { padding-left: 20px; color: #475569; line-height: 1.8; font-size: 15px; }
.seo-box li { margin-bottom: 8px; }

/* BADGES */
.tag-new { background: var(--brand-red); color: white; font-size: 9px; padding: 2px 5px; border-radius: 3px; margin-left: 6px; vertical-align: middle; animation: blink-soft 1.5s infinite; font-weight: bold; }

/* --- 8. POST DETAILS PAGE (single.php instead of post.php for WP) --- */
.post-container { max-width: 950px; margin: 30px auto; padding: 0 15px; }
.breadcrumbs { background: #f8fafc; padding: 12px 20px; border-radius: 8px; font-size: 13px; font-weight: 600; color: #64748b; margin-bottom: 25px; border: 1px solid #e2e8f0; }
.breadcrumbs a { color: #2563eb; text-decoration: none; }
.breadcrumbs a:hover { color: #1e3a8a; text-decoration: underline; }
.breadcrumbs span { margin: 0 8px; color: #cbd5e1; }
.post-card { background: #ffffff; border-radius: 12px; border: 1px solid #e2e8f0; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05); overflow: hidden; }
.post-header { padding: 30px; text-align: center; border-bottom: 3px solid #f1f5f9; }
.post-title { color: #0f172a; font-size: 28px; font-weight: 900; line-height: 1.4; margin: 0; }
.post-body { padding: 30px; }
.info-box { background: #fffbeb; border-left: 5px solid #f59e0b; padding: 20px; border-radius: 0 8px 8px 0; color: #92400e; font-size: 15px; line-height: 1.7; font-weight: 500; margin-bottom: 30px; }
.table-responsive { overflow-x: auto; margin-bottom: 35px; border-radius: 8px; border: 1px solid #e2e8f0; }
.premium-table { width: 100%; border-collapse: collapse; text-align: left; background: white; }
.premium-table th { background: #1e293b; color: white; font-size: 18px; padding: 16px; text-align: center; }
.premium-table td { padding: 20px; border: 1px solid #e2e8f0; vertical-align: top; width: 50%; font-size: 15px; line-height: 1.8; }
.btn-action { display: inline-block; background: linear-gradient(135deg, #2563eb, #1d4ed8); color: white; padding: 12px 30px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.btn-action:hover { transform: translateY(-3px); box-shadow: 0 6px 15px rgba(37, 99, 235, 0.4); }

/* --- 9. RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
    .trending-mini-boxes, .grid-4-boxes { grid-template-columns: repeat(2, 1fr); }
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .three-pillar-grid, .cat-grid { grid-template-columns: 1fr; }
    .pillar-list { height: 400px; } 
    .premium-table td { display: block; width: 100%; }
}

/* --- 10. WORDPRESS SPECIFIC CORE CLASSES --- */
.aligncenter { display: block; margin: 0 auto; }
.alignleft { float: left; margin-right: 20px; }
.alignright { float: right; margin-left: 20px; }
.wp-caption { border: 1px solid #ccc; text-align: center; background-color: #f3f3f3; padding-top: 4px; margin: 10px; max-width: 100%; }
.wp-caption-text { padding: 0 4px 5px; font-size: 12px; }