/*
Theme Name: Bharat Job Portal
Theme URI: https://bharatjobresult.com/
Author: Custom Developer
Version: 1.0.0
Description: Fast, SEO-optimized Govt Job & Sarkari Result WordPress Theme with built-in Ad slots.
*/

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; background-color: #f4f6f9; color: #222; line-height: 1.5; }
a { text-decoration: none; color: #0d47a1; }
a:hover { text-decoration: underline; }

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

/* Top Bar & Ticker */
.top-bar { background: #ab0000; color: #fff; padding: 6px 0; font-size: 13px; font-weight: 600; }
.ticker-wrap { display: flex; align-items: center; overflow: hidden; }
.ticker-title { background: #ffeb3b; color: #000; padding: 2px 10px; border-radius: 3px; margin-right: 12px; white-space: nowrap; }
.ticker-content marquee { font-size: 14px; }

/* Header & Logo */
.site-header { background: #ffffff; padding: 15px 0; border-bottom: 2px solid #ddd; }
.header-flex { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
.logo h1 { font-size: 28px; font-weight: 800; color: #ab0000; margin: 0; }
.logo p { font-size: 12px; color: #555; margin: 0; }
.header-ad { min-width: 320px; max-width: 728px; text-align: center; }

/* Navigation */
.main-navigation { background: #000000; }
.main-navigation ul { list-style: none; display: flex; flex-wrap: wrap; margin: 0; padding: 0; }
.main-navigation li a { display: block; color: #ffffff; padding: 11px 16px; font-size: 14px; font-weight: 600; text-transform: uppercase; }
.main-navigation li a:hover { background: #ab0000; text-decoration: none; }

/* Ad Slots */
.ad-slot { margin: 15px auto; text-align: center; overflow: hidden; background: #fff; padding: 5px; border: 1px dashed #ccc; }
.ad-slot span.ad-label { display: block; font-size: 10px; color: #999; margin-bottom: 3px; text-transform: uppercase; }

/* Quick Action Buttons (Trending) */
.trending-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin: 15px 0; }
.trend-box { background: #fff; border: 1px solid #ddd; border-radius: 4px; padding: 8px; text-align: center; font-size: 13px; font-weight: bold; }
.trend-box:nth-child(1) { background: #ffebee; border-color: #ef9a9a; color: #c62828; }
.trend-box:nth-child(2) { background: #e8f5e9; border-color: #a5d6a7; color: #2e7d32; }
.trend-box:nth-child(3) { background: #e3f2fd; border-color: #90caf9; color: #1565c0; }
.trend-box:nth-child(4) { background: #fff3e0; border-color: #ffcc80; color: #ef6c00; }

/* 3-Column Job Layout */
.job-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin: 20px 0; }
.job-box { background: #ffffff; border: 1px solid #b0bec5; border-radius: 4px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.job-box-header { padding: 10px; color: #fff; text-align: center; font-size: 17px; font-weight: bold; text-transform: uppercase; }
.header-result { background: #c62828; }
.header-admit { background: #0277bd; }
.header-jobs { background: #2e7d32; }
.header-default { background: #37474f; }

.job-box ul { list-style: none; padding: 0; margin: 0; }
.job-box li { padding: 8px 12px; border-bottom: 1px dotted #ccc; font-size: 13.5px; }
.job-box li:last-child { border-bottom: none; }
.job-box li a { color: #004d40; font-weight: 600; }
.job-box li a:hover { color: #d32f2f; }
.view-more { display: block; text-align: right; padding: 8px 12px; background: #eceff1; font-weight: bold; font-size: 12px; }

/* Main Content & Sidebar Layout */
.content-area { display: flex; gap: 20px; margin: 20px 0; }
.main-post-content { flex: 3; background: #fff; padding: 25px; border: 1px solid #ddd; border-radius: 4px; }
.main-sidebar { flex: 1; }

/* Single Post Table Style */
.post-header-title { font-size: 24px; color: #ab0000; margin-bottom: 15px; border-bottom: 2px solid #ab0000; padding-bottom: 8px; }
.job-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.job-table th, .job-table td { border: 1px solid #333; padding: 10px; font-size: 14px; text-align: left; }
.job-table th { background: #ab0000; color: #fff; text-align: center; }

/* Footer */
.site-footer { background: #1a1a1a; color: #bbb; padding: 35px 0 15px; margin-top: 30px; font-size: 13px; }
.footer-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 15px; flex-wrap: wrap; }
.footer-links a { color: #fff; }
.copyright { text-align: center; border-top: 1px solid #333; padding-top: 15px; }

/* Mobile Responsive */
@media(max-width: 900px) {
  .job-grid-3 { grid-template-columns: 1fr; }
  .content-area { flex-direction: column; }
  .header-flex { flex-direction: column; text-align: center; }
}
