/* =========================================================
   SarkariNama — main.css (single stylesheet, no framework)
   ========================================================= */

:root {
  --sn-primary: #0B2F6B;
  --sn-primary-dark: #082250;
  --sn-accent: #FF7A00;
  --sn-accent-dark: #DB6800;
  --sn-text: #1c2430;
  --sn-text-muted: #5a6472;
  --sn-bg: #ffffff;
  --sn-bg-alt: #f4f7fb;
  --sn-border: #e3e8f0;
  --sn-danger: #c62828;
  --sn-radius: 16px;
  --sn-radius-sm: 10px;
  --sn-max-width: 1200px;
  --sn-font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sn-font);
  color: var(--sn-text);
  background: var(--sn-bg-alt);
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sn-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.25rem; }
table { border-collapse: collapse; width: 100%; }
h1, h2, h3, h4 { line-height: 1.3; margin: 1.1em 0 .5em; color: var(--sn-primary-dark); font-weight: 700; }
h1 { font-size: 1.8rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.container { max-width: var(--sn-max-width); margin: 0 auto; padding: 0 16px; }
.skip-link { position: absolute; left: -999px; top: 0; background: #000; color: #fff; padding: 10px 16px; z-index: 10000; }
.skip-link:focus { left: 8px; top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; padding: 0; margin: -1px; }
.text-muted { color: var(--sn-text-muted); }

/* ---------- Ticker ---------- */
.site-ticker { background: var(--sn-accent); }
.site-ticker a {
  display: block; color: #fff; text-align: center; font-size: .85rem;
  font-weight: 600; padding: 7px 16px;
}
.site-ticker a:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  background: var(--sn-bg);
  border-bottom: 1px solid var(--sn-border);
  position: sticky; top: 0; z-index: 500;
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 10px 16px; max-width: var(--sn-max-width); margin: 0 auto;
}
.site-logo img { max-height: 56px; width: auto; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-search-toggle, .menu-toggle {
  background: var(--sn-bg-alt); border: 1px solid var(--sn-border);
  border-radius: 8px; width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.menu-toggle { display: none; }
.header-cta-btn {
  background: var(--sn-accent); color: #fff; font-weight: 700;
  font-size: .82rem; letter-spacing: .02em; text-transform: uppercase;
  padding: 10px 18px; border-radius: 999px; white-space: nowrap;
}
.header-cta-btn:hover { background: var(--sn-accent-dark); text-decoration: none; color: #fff; }

.primary-nav .menu {
  list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap;
}
.primary-nav .nav-link {
  display: block; color: var(--sn-text); padding: 10px 14px;
  font-size: .93rem; font-weight: 600; border-radius: 8px;
}
.primary-nav .nav-link:hover { background: var(--sn-bg-alt); text-decoration: none; color: var(--sn-primary); }
.primary-nav li { position: relative; }
.primary-nav .sub-menu {
  list-style: none; margin: 0; padding: 6px; display: none;
  position: absolute; left: 0; top: 100%;
  background: #fff; min-width: 220px; border-radius: 12px;
  box-shadow: 0 10px 24px rgba(11,47,107,.14); border: 1px solid var(--sn-border);
}
.primary-nav li:hover > .sub-menu,
.primary-nav li.focus-within > .sub-menu { display: block; }
.primary-nav .sub-menu .nav-link { padding: 9px 12px; }
.dropdown-arrow { font-size: .7em; }

.header-search-panel { display: none; background: var(--sn-bg-alt); border-bottom: 1px solid var(--sn-border); }
.header-search-panel.is-open { display: block; }
.header-search-panel form { display: flex; gap: 8px; padding: 12px 16px; max-width: var(--sn-max-width); margin: 0 auto; }
.header-search-panel input[type="search"] { flex: 1; padding: 10px 12px; border: 1px solid var(--sn-border); border-radius: 8px; font: inherit; }
.header-search-panel button, .inline-search-form button {
  background: var(--sn-accent); color: #fff; border: none; border-radius: 8px;
  padding: 0 16px; font-weight: 600; cursor: pointer;
}
.inline-search-form { display: flex; gap: 8px; margin: 16px 0; }
.inline-search-form input { flex: 1; padding: 10px 12px; border: 1px solid var(--sn-border); border-radius: 8px; font: inherit; }

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .primary-nav { display: none; width: 100%; order: 3; }
  .primary-nav.is-open { display: block; }
  .primary-nav .menu { flex-direction: column; }
  .primary-nav .sub-menu { position: static; box-shadow: none; }
  .site-header__inner { flex-wrap: wrap; }
}

.nav-empty-notice { font-size: .85rem; }

/* ---------- Ad slots (fixed height => no CLS) ---------- */
.ad-slot {
  display: flex; align-items: center; justify-content: center;
  background: var(--sn-bg-alt); border: 1px dashed var(--sn-border);
  border-radius: var(--sn-radius-sm); margin: 16px auto; overflow: hidden;
  max-width: var(--sn-max-width);
}
.ad-slot__placeholder { font-size: .75rem; color: var(--sn-text-muted); letter-spacing: .05em; text-transform: uppercase; }
.ad-slot--header { max-width: 100%; margin: 0; border-radius: 0; border-left: none; border-right: none; }
.ad-slot--sticky { position: sticky; top: 90px; }

/* ---------- Layout ---------- */
.site-main-wrap { padding: 20px 0 40px; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; max-width: var(--sn-max-width); margin: 0 auto; padding: 0 16px; }
@media (max-width: 900px) { .content-layout { grid-template-columns: 1fr; } }
.breadcrumbs { font-size: .85rem; color: var(--sn-text-muted); margin-bottom: 12px; }
.breadcrumbs a { color: var(--sn-text-muted); }

/* ---------- Home sections ---------- */
.home-section { max-width: var(--sn-max-width); margin: 0 auto; padding: 28px 16px 0; }
.home-section__head { display: flex; align-items: baseline; justify-content: space-between; }
.see-all-link { font-size: .85rem; font-weight: 600; }

/* ---------- Job grid / cards (rounded-2xl) ---------- */
.job-grid, .hub-grid { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.job-grid__ad-slot { grid-column: 1 / -1; }
@media (max-width: 900px) { .job-grid, .hub-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .job-grid, .hub-grid { grid-template-columns: 1fr; } }

.job-card {
  background: var(--sn-bg); border: 1px solid var(--sn-border);
  border-radius: var(--sn-radius); overflow: hidden;
  transition: box-shadow .15s ease, transform .15s ease;
}
.job-card:hover { box-shadow: 0 10px 24px rgba(11,47,107,.1); transform: translateY(-2px); }
.job-card__link { color: inherit; display: block; }
.job-card__link:hover { text-decoration: none; }
.job-card__thumb img { width: 100%; height: 140px; object-fit: cover; }
.job-card__body { padding: 14px 16px; }
.job-card__title { font-size: 1rem; margin: 0 0 8px; }
.job-card__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .8rem; color: var(--sn-text-muted); }

.hub-card {
  background: var(--sn-bg); border: 1px solid var(--sn-border); border-radius: var(--sn-radius);
  text-align: center; padding: 20px 10px; font-weight: 700; color: var(--sn-primary);
}
.hub-card a { display: block; color: inherit; }
.hub-card:hover { box-shadow: 0 10px 24px rgba(11,47,107,.1); }

/* ---------- Badges ---------- */
.badge {
  display: inline-block; background: var(--sn-bg-alt); color: var(--sn-primary);
  border: 1px solid var(--sn-border); border-radius: 999px; padding: 3px 10px; font-size: .74rem; font-weight: 700;
}
.badge--urgent { background: #fdecec; color: var(--sn-danger); border-color: #f6c7c7; }

/* ---------- Job alerts box ---------- */
.job-alerts-box {
  max-width: var(--sn-max-width); margin: 28px auto 0; padding: 26px 20px;
  background: var(--sn-primary); color: #fff; border-radius: var(--sn-radius); text-align: center;
}
.job-alerts-box h3 { color: #fff; margin-top: 0; }
.job-alerts-box__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 12px; }
.alert-btn { padding: 10px 20px; border-radius: 999px; font-weight: 700; font-size: .88rem; color: #fff; }
.alert-btn--whatsapp { background: #25D366; }
.alert-btn--telegram { background: #29A9EA; }
.alert-btn--email { background: var(--sn-accent); }
.alert-btn:hover { opacity: .92; text-decoration: none; color: #fff; }

/* ---------- Info table / job details ---------- */
.info-table { margin: 16px 0; }
.info-table th, .info-table td { border: 1px solid var(--sn-border); padding: 10px 12px; text-align: left; font-size: .95rem; }
.info-table th { background: var(--sn-bg-alt); width: 34%; color: var(--sn-primary-dark); }
.info-table--scroll { overflow-x: auto; display: block; border-radius: var(--sn-radius-sm); }

.job-cta-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0; }
.job-btn { padding: 12px 24px; border-radius: 999px; font-weight: 700; color: #fff; }
.job-btn--apply { background: var(--sn-accent); }
.job-btn--apply:hover { background: var(--sn-accent-dark); color: #fff; text-decoration: none; }
.job-btn--pdf { background: var(--sn-primary); }
.job-btn--pdf:hover { background: var(--sn-primary-dark); color: #fff; text-decoration: none; }

.notice-box { border-left: 4px solid var(--sn-accent); background: #fff8ef; padding: 12px 16px; border-radius: 6px; margin: 16px 0; font-size: .92rem; }
.eeat-box { font-size: .85rem; color: var(--sn-text-muted); background: var(--sn-bg-alt); border-radius: var(--sn-radius-sm); padding: 12px 16px; margin: 16px 0; }

/* ---------- Single article ---------- */
.entry-header { margin-bottom: 10px; }
.entry-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 14px; }
.entry-thumb img { border-radius: var(--sn-radius); margin-bottom: 16px; }
.entry-content h2 { border-bottom: 2px solid var(--sn-bg-alt); padding-bottom: 6px; }

/* ---------- Post list (search/index/archive) ---------- */
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list-item {
  background: var(--sn-bg); border: 1px solid var(--sn-border); border-radius: var(--sn-radius);
  padding: 14px 16px; margin-bottom: 12px; display: flex; gap: 14px; align-items: flex-start;
}
.post-list-item__thumb img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; }
.post-list-item__body { flex: 1; min-width: 0; }
.post-list-item__title { margin: 0 0 4px; font-size: 1.02rem; }
.post-list-item__meta { display: flex; gap: 8px; font-size: .8rem; color: var(--sn-text-muted); margin-bottom: 6px; }

.pagination { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.pagination a, .pagination span { padding: 8px 14px; border: 1px solid var(--sn-border); border-radius: 8px; background: var(--sn-bg); }
.pagination .current { background: var(--sn-primary); color: #fff; border-color: var(--sn-primary); }

/* ---------- Sidebar / widgets ---------- */
.widget { background: var(--sn-bg); border: 1px solid var(--sn-border); border-radius: var(--sn-radius); padding: 16px; margin-bottom: 18px; }
.widget-title { font-size: .95rem; text-transform: uppercase; letter-spacing: .03em; color: var(--sn-primary); margin: 0 0 12px; border-bottom: 2px solid var(--sn-accent); padding-bottom: 8px; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 8px 0; border-bottom: 1px dashed var(--sn-border); font-size: .9rem; }
.widget li:last-child { border-bottom: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--sn-primary-dark); color: #dbe6f5; margin-top: 30px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 24px; padding: 36px 16px; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; padding: 28px 16px; } }
.footer-col h3 { color: #fff; font-size: 1rem; margin-top: 0; }
.footer-col a { color: #b9cbe6; }
.footer-col a:hover { color: #fff; }
.footer-logo { max-height: 48px; margin-bottom: 10px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { padding: 5px 0; }
.footer-email a { color: #ffd9a0; font-weight: 600; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); text-align: center; padding: 14px 16px; font-size: .82rem; color: #9fb3d1; }

/* ---------- 404 ---------- */
.error-404 { text-align: center; padding: 40px 16px; max-width: var(--sn-max-width); margin: 0 auto; }
.error-404 h1 { font-size: 2.6rem; color: var(--sn-accent); }
