/* SarkariJobPoint - Main Stylesheet */
/* Clean, fast, mobile-first design */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --orange: #e65c00;
  --orange-dark: #c44f00;
  --orange-light: #fff3eb;
  --text: #222;
  --text-light: #555;
  --border: #e0e0e0;
  --white: #fff;
  --bg: #f5f5f5;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

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

/* ── HEADER ────────────────────────── */
header {
  background: var(--orange);
  color: white;
  padding: 12px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  position: sticky;
  top: 0;
  z-index: 100;
}

header .container {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.logo a {
  text-decoration: none;
  color: white;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
}

.logo-icon { font-size: 28px; }
.logo-text strong { font-weight: 900; }

nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

nav a {
  color: white;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s;
}

nav a:hover { background: rgba(255,255,255,0.2); }

.search-bar {
  display: flex;
  margin-left: auto;
}

.search-bar input {
  padding: 8px 12px;
  border: none;
  border-radius: 4px 0 0 4px;
  font-size: 14px;
  width: 200px;
}

.search-bar button {
  padding: 8px 16px;
  background: var(--orange-dark);
  color: white;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-weight: 600;
}

/* ── ADS ────────────────────────────── */
.ad-container {
  background: white;
  text-align: center;
  padding: 8px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  min-height: 90px;
}

/* ── MAIN LAYOUT ────────────────────── */
main.container {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  padding-top: 20px;
  padding-bottom: 40px;
}

@media (max-width: 768px) {
  main.container { grid-template-columns: 1fr; }
  nav { display: none; }
  .search-bar input { width: 140px; }
}

/* ── ARTICLE LIST (Homepage) ────────── */
.article-list { display: flex; flex-direction: column; gap: 12px; }

.article-card {
  background: white;
  border-radius: 8px;
  padding: 16px 20px;
  border-left: 4px solid var(--orange);
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  transition: box-shadow 0.2s;
}

.article-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.12); }

.article-card .badge {
  display: inline-block;
  background: var(--orange-light);
  color: var(--orange-dark);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.article-card h2 {
  font-size: 17px;
  margin-bottom: 6px;
  line-height: 1.4;
}

.article-card h2 a {
  color: var(--text);
  text-decoration: none;
}

.article-card h2 a:hover { color: var(--orange); }

.article-card .meta {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.article-card p { font-size: 14px; color: var(--text-light); }

.read-more {
  display: inline-block;
  margin-top: 10px;
  color: var(--orange);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

/* ── ARTICLE PAGE ───────────────────── */
.article-body {
  background: white;
  border-radius: 8px;
  padding: 24px 28px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

.article-body h1 {
  font-size: 24px;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 10px;
}

.article-meta {
  color: var(--text-light);
  font-size: 13px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.article-body h2 {
  font-size: 20px;
  color: var(--orange-dark);
  margin: 24px 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--orange-light);
}

.article-body h3 {
  font-size: 17px;
  margin: 18px 0 8px;
  color: var(--text);
}

.article-body p { margin-bottom: 14px; }

.article-body ul, .article-body ol {
  margin: 10px 0 14px 24px;
}

.article-body li { margin-bottom: 6px; }

/* Tables - important for govt job info */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
  overflow-x: auto;
  display: block;
}

.article-body th {
  background: var(--orange);
  color: white;
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
}

.article-body td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
}

.article-body tr:nth-child(even) td { background: var(--orange-light); }
.article-body tr:hover td { background: #ffeedd; }

/* Important box */
.article-body blockquote {
  background: var(--orange-light);
  border-left: 4px solid var(--orange);
  padding: 12px 16px;
  margin: 16px 0;
  border-radius: 0 6px 6px 0;
  font-size: 15px;
}

/* Mid-article ad */
.mid-ad {
  margin: 24px 0;
  text-align: center;
  background: #f9f9f9;
  padding: 8px;
  border-radius: 6px;
}

/* ── SIDEBAR ────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: 16px; }

.sidebar-box {
  background: white;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

.sidebar-box h3 {
  font-size: 15px;
  font-weight: 700;
  color: white;
  background: var(--orange);
  margin: -16px -16px 12px;
  padding: 10px 16px;
  border-radius: 8px 8px 0 0;
}

.sidebar-box ul { list-style: none; }

.sidebar-box ul li {
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.sidebar-box ul li:last-child { border-bottom: none; }

.sidebar-box ul li a {
  color: var(--text);
  text-decoration: none;
  line-height: 1.4;
}

.sidebar-box ul li a:hover { color: var(--orange); }

.sidebar-box ul li::before {
  content: '▶ ';
  color: var(--orange);
  font-size: 10px;
}

/* ── NOTICE BAR ─────────────────────── */
.notice-bar {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 14px;
  margin-bottom: 16px;
  color: #856404;
}

/* ── IMPORTANT LINKS BOX ────────────── */
.important-links {
  background: var(--orange-light);
  border: 1px solid var(--orange);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 20px 0;
}

.important-links h3 {
  color: var(--orange-dark);
  margin-bottom: 12px;
  font-size: 16px;
}

.important-links a {
  display: inline-block;
  background: var(--orange);
  color: white;
  padding: 8px 18px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  margin: 4px 4px 4px 0;
}

.important-links a:hover { background: var(--orange-dark); }

/* ── FOOTER ─────────────────────────── */
footer {
  background: #222;
  color: #ccc;
  padding: 24px 0;
  margin-top: 40px;
  font-size: 14px;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.footer-links a { color: #aaa; text-decoration: none; }
.footer-links a:hover { color: var(--orange); }

.footer-note { color: #888; font-size: 13px; max-width: 700px; margin: 0 auto 8px; }
.copyright { color: #666; font-size: 12px; }

/* ── HOMEPAGE HERO ──────────────────── */
.hero {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: white;
  padding: 20px 24px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.hero h1 { font-size: 22px; margin-bottom: 6px; }
.hero p { font-size: 15px; opacity: 0.9; }

/* ── CATEGORY TABS ──────────────────── */
.category-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.category-tabs a {
  padding: 6px 16px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
}

.category-tabs a:hover,
.category-tabs a.active {
  background: var(--orange);
  color: white;
  border-color: var(--orange);
}

/* ── NEW BADGE ──────────────────────── */
.new-badge {
  display: inline-block;
  background: #e53935;
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
