/*
Theme Name: TopAIJob
Theme URI: https://topaijob.com/
Author: TopAIJob
Author URI: https://topaijob.com/
Description: Clean, simple and professional theme for TopAIJob — Sarkari Naukri aur Private Jobs in Hindi. White background, blue header accents, clear cards and fast loading.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: topaijob
*/

* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; color: #1f2937; background: #ffffff; line-height: 1.7; font-size: 17px; }
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { color: #111827; line-height: 1.35; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { background: #ffffff; border-bottom: 1px solid #e5e7eb; position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; flex-wrap: wrap; }
.site-logo { font-size: 30px; font-weight: 800; letter-spacing: -0.5px; color: #1d4ed8; }
.site-logo:hover { text-decoration: none; }
.site-logo span { color: #f97316; }
.site-tagline { font-size: 13px; color: #6b7280; margin-top: -4px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a { display: block; padding: 8px 12px; color: #1f2937; font-weight: 600; font-size: 15px; border-radius: 6px; }
.main-nav a:hover { color: #2563eb; background: #eff6ff; text-decoration: none; }
.main-nav .current-menu-item a { color: #2563eb; background: #eff6ff; }

/* Hero */
.hero { background: #2563eb; color: #fff; text-align: center; padding: 56px 16px 48px; }
.hero h1 { color: #fff; font-size: 34px; margin: 0 0 10px; }
.hero p { font-size: 18px; color: #dbeafe; max-width: 640px; margin: 0 auto; }
.hero-buttons { margin-top: 24px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hero-buttons a { background: #fff; color: #1d4ed8; font-weight: 700; padding: 10px 20px; border-radius: 8px; }
.hero-buttons a:hover { background: #dbeafe; text-decoration: none; }

/* Sections */
.section { padding: 40px 0; }
.section-title { font-size: 26px; text-align: center; margin: 0 0 6px; }
.section-sub { text-align: center; color: #6b7280; margin: 0 0 28px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 22px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.card h3 { margin: 0 0 8px; font-size: 19px; }
.card h3 a { color: #111827; }
.card h3 a:hover { color: #2563eb; }
.card p { margin: 0; color: #4b5563; font-size: 15px; }
.cat-card { background: #f8fafc; }
.cat-card a { font-weight: 700; font-size: 19px; color: #111827; }

/* Post grid */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.06); display: flex; flex-direction: column; }
.post-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.post-card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { margin: 0 0 8px; font-size: 18px; }
.post-card h3 a { color: #111827; }
.post-card h3 a:hover { color: #2563eb; }
.post-meta { font-size: 13px; color: #9ca3af; margin-bottom: 8px; }
.post-card p { font-size: 15px; color: #4b5563; margin: 0 0 12px; flex: 1; }
.read-more { font-weight: 700; font-size: 15px; }

/* Single post / page */
.article { max-width: 780px; margin: 0 auto; padding: 32px 16px 48px; }
.article h1 { font-size: 30px; margin: 0 0 10px; }
.article .featured { margin: 20px 0; border-radius: 12px; overflow: hidden; }
.article-content h2 { font-size: 24px; margin-top: 32px; }
.article-content h3 { font-size: 20px; margin-top: 24px; }
.article-content table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.article-content th, .article-content td { border: 1px solid #e5e7eb; padding: 8px 10px; text-align: left; }
.article-content th { background: #f8fafc; }
.article-content ul, .article-content ol { padding-left: 22px; }

/* Archive + sidebar layout */
.two-col { display: grid; grid-template-columns: 1fr 300px; gap: 32px; padding: 32px 0 48px; }
.page-title { font-size: 28px; margin: 0 0 20px; }
.sidebar .widget { border: 1px solid #e5e7eb; border-radius: 12px; padding: 18px; margin-bottom: 20px; }
.sidebar .widget h2, .sidebar .widget-title { font-size: 18px; margin: 0 0 12px; }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: 6px 0; border-bottom: 1px solid #f3f4f6; }
.sidebar li:last-child { border-bottom: 0; }

/* Footer */
.site-footer { background: #1e3a8a; color: #dbeafe; margin-top: 20px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding: 40px 16px; }
.site-footer h3 { color: #fff; font-size: 18px; margin: 0 0 12px; }
.site-footer p { margin: 0; font-size: 15px; }
.site-footer a { color: #dbeafe; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 4px 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.2); text-align: center; padding: 16px; font-size: 14px; color: #bfdbfe; }

/* Search */
.search-form { display: flex; gap: 8px; }
.search-form input[type="search"] { flex: 1; padding: 9px 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 15px; }
.search-form input[type="submit"] { background: #2563eb; color: #fff; border: 0; border-radius: 8px; padding: 9px 16px; font-weight: 700; cursor: pointer; }

/* Mobile */
@media (max-width: 900px) {
  .cards, .post-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .cards, .post-grid { grid-template-columns: 1fr; }
  .hero { padding: 40px 16px 36px; }
  .hero h1 { font-size: 25px; }
  .hero p { font-size: 16px; }
  .site-logo { font-size: 25px; }
  .header-inner { justify-content: center; text-align: center; }
  .main-nav ul { justify-content: center; }
  .article h1 { font-size: 24px; }
}
