/*
Theme Name: Bharat Job Portal
Theme URI: https://bharatjobresult.com/
Author: Custom Developer
Version: 1.4.0
Description: Fast, SEO-optimized Govt Job & Sarkari Result WordPress Theme with Reordered Categories (Result/Admit/Jobs on Top, Hindi Categories Below).
*/

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

* { box-sizing: border-box; margin: 0; padding: 0; }
body { 
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; 
    background-color: #f1f5f9; 
    color: #1e293b; 
    line-height: 1.7; 
    font-size: 15px;
}
a { text-decoration: none; color: #0f52ba; transition: all 0.2s ease; }
a:hover { text-decoration: underline; color: #b91c1c; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* Top Bar & Ticker */
.top-bar { background: #ab0000; color: #fff; padding: 7px 0; font-size: 13px; font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.ticker-wrap { display: flex; align-items: center; overflow: hidden; }
.ticker-title { background: #facc15; color: #111; font-weight: 700; padding: 2px 10px; border-radius: 4px; margin-right: 14px; font-size: 12px; letter-spacing: 0.5px; white-space: nowrap; }
.ticker-content marquee { font-size: 14px; }

/* Header & Logo */
.site-header { background: #ffffff; padding: 18px 0; border-bottom: 2px solid #e2e8f0; }
.header-flex { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
.logo h1 { font-family: 'Poppins', sans-serif; font-size: 32px; font-weight: 800; color: #b91c1c; letter-spacing: -0.5px; margin: 0; }
.logo h1 a { color: #b91c1c; }
.logo h1 a:hover { text-decoration: none; }
.logo p { font-size: 12px; color: #64748b; font-weight: 500; margin-top: 2px; }
.header-ad { min-width: 320px; max-width: 728px; text-align: center; }

/* Main Navigation */
.main-navigation { background: #0f172a; box-shadow: 0 2px 4px rgba(0,0,0,0.08); }
.main-navigation ul { list-style: none; display: flex; flex-wrap: wrap; margin: 0; padding: 0; }
.main-navigation li a { display: block; color: #f8fafc; padding: 12px 16px; font-size: 13.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; }
.main-navigation li a:hover { background: #b91c1c; text-decoration: none; color: #fff; }

/* Ad Slots */
.ad-slot { margin: 16px auto; text-align: center; overflow: hidden; background: #fff; padding: 8px; border: 1px dashed #cbd5e1; border-radius: 6px; }
.ad-slot span.ad-label { display: block; font-size: 10px; color: #94a3b8; font-weight: 700; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; }

/* Quick Action Buttons (Top Bar Strip) */
.trending-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin: 16px 0; }
.trend-box { background: #fff; border: 1px solid #e2e8f0; border-radius: 6px; padding: 10px 6px; text-align: center; font-size: 13.5px; font-weight: 700; box-shadow: 0 1px 2px rgba(0,0,0,0.04); transition: transform 0.15s ease; }
.trend-box:hover { transform: translateY(-2px); text-decoration: none; }
.trend-box:nth-child(1) { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.trend-box:nth-child(2) { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }
.trend-box:nth-child(3) { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
.trend-box:nth-child(4) { background: #fffbeb; border-color: #fde68a; color: #b45309; }
.trend-box:nth-child(5) { background: #fdf4ff; border-color: #f5d0fe; color: #86198f; }
.trend-box:nth-child(6) { background: #f0fdfa; border-color: #99f6e4; color: #0f766e; }

/* 3-Column Job Layout */
.job-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0; }
.job-box { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.job-box-header { padding: 11px 14px; color: #fff; text-align: center; font-family: 'Poppins', sans-serif; font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }

/* Gradients */
.header-result { background: linear-gradient(135deg, #b91c1c, #991b1b); }
.header-admit { background: linear-gradient(135deg, #0284c7, #0369a1); }
.header-jobs { background: linear-gradient(135deg, #16a34a, #15803d); }
.header-yojana { background: linear-gradient(135deg, #ea580c, #c2410c); }
.header-kaam { background: linear-gradient(135deg, #0d9488, #0f766e); }
.header-ai { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
.header-default { background: linear-gradient(135deg, #334155, #1e293b); }

.job-box ul { list-style: none; padding: 0; margin: 0; }
.job-box li { padding: 9px 14px; border-bottom: 1px solid #f1f5f9; font-size: 13.5px; line-height: 1.5; }
.job-box li:last-child { border-bottom: none; }
.job-box li a { color: #0f172a; font-weight: 600; }
.job-box li a:hover { color: #b91c1c; }
.view-more { display: block; text-align: right; padding: 9px 14px; background: #f8fafc; font-weight: 700; font-size: 12.5px; color: #b91c1c; border-top: 1px solid #e2e8f0; }

/* Main Content & Sidebar Layout */
.content-area { display: flex; gap: 24px; margin: 24px 0; }
.main-post-content { 
    flex: 3; 
    background: #ffffff; 
    padding: 32px 36px; 
    border: 1px solid #e2e8f0; 
    border-radius: 10px; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.03); 
}
.main-sidebar { flex: 1.1; }

/* Post Typography */
.post-header-title { 
    font-family: 'Poppins', sans-serif;
    font-size: 26px; 
    line-height: 1.4;
    color: #0f172a; 
    margin-bottom: 12px; 
    font-weight: 700;
}
.post-meta-tag {
    font-size: 12.5px;
    color: #64748b;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-weight: 500;
}

/* Post H2 Subheadings */
.entry-content h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    background: #f8fafc;
    border-left: 5px solid #b91c1c;
    padding: 10px 16px;
    margin: 28px 0 16px;
    border-radius: 0 6px 6px 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

/* Post H3 Subheadings */
.entry-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #1e293b;
    margin: 22px 0 12px;
    position: relative;
    padding-left: 14px;
}
.entry-content h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 4px;
    background: #0284c7;
    border-radius: 2px;
}

.entry-content p {
    margin-bottom: 16px;
    color: #334155;
    font-size: 15.5px;
    line-height: 1.75;
}

.entry-content ul, .entry-content ol {
    margin: 12px 0 18px 22px;
    color: #334155;
}
.entry-content li {
    margin-bottom: 8px;
    line-height: 1.65;
    font-size: 15px;
}
.entry-content li strong {
    color: #0f172a;
}

/* Table Style */
.entry-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 24px 0;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.entry-content table th {
    background: #1e293b;
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-bottom: 2px solid #0f172a;
}
.entry-content table td {
    padding: 12px 16px;
    font-size: 14.5px;
    color: #334155;
    border-top: 1px solid #e2e8f0;
    border-left: 1px solid #f1f5f9;
}
.entry-content table tr:first-child td { border-top: none; }
.entry-content table tr:nth-child(even) { background-color: #f8fafc; }
.entry-content table tr:hover td { background-color: #f1f5f9; }

/* Sidebar */
.main-sidebar .widget {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}
.main-sidebar .widget-title {
    background: #1e293b;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    padding: 10px 14px;
    font-weight: 700;
}
.main-sidebar ul { list-style: none; padding: 0; margin: 0; }
.main-sidebar li {
    padding: 10px 14px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
    font-weight: 600;
}
.main-sidebar li a { color: #334155; }
.main-sidebar li a:hover { color: #b91c1c; }

/* Pagination */
.pagination { margin-top: 24px; text-align: center; }
.page-numbers { display: inline-block; padding: 7px 14px; margin: 0 4px; border: 1px solid #cbd5e1; background: #fff; color: #334155; font-weight: 700; border-radius: 4px; }
.page-numbers.current { background: #b91c1c; color: #fff; border-color: #b91c1c; }

/* Footer */
.site-footer { background: #0f172a; color: #94a3b8; padding: 35px 0 20px; margin-top: 40px; font-size: 13.5px; }
.footer-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 16px; flex-wrap: wrap; }
.footer-links a { color: #f8fafc; font-weight: 600; }
.copyright { text-align: center; border-top: 1px solid #334155; padding-top: 18px; color: #64748b; }

/* Mobile */
@media(max-width: 900px) {
    .content-area { flex-direction: column; }
    .job-grid-3 { grid-template-columns: 1fr; }
    .header-flex { flex-direction: column; text-align: center; }
    .main-post-content { padding: 20px 16px; }
    .post-header-title { font-size: 21px; }
    .entry-content table { display: block; overflow-x: auto; white-space: nowrap; }
}
