/* ==========================================================================
   Berojgaar — Govt Job Portal Theme
   Clean white blog layout: centred logo, light-blue nav bar, red buttons and
   widget titles, Open Sans. All colours live in :root.
   ========================================================================== */

:root {
  --red: #e00000;
  --red-dark: #b80000;
  --red-soft: #fff1f1;
  --nav-bg: #c9daf2;
  --nav-link: #0b1b3f;
  --nav-active: #0d2cff;
  --heading: #1a2a47;
  --text: #111111;
  --muted: #5f6368;
  --link: #2e15ef;
  --link-hover: #e00000;
  --date: #2e05ff;
  --bg: #ffffff;
  --soft: #f4f7fc;
  --line: #e4e7ec;
  --table-line: #cfd8e6;
  --table-head: #e7effa;
  --hot: #fff7d6;
  --success: #15803d;
  --wa: #15803d;
  --tg: #1f6fb2;
  --navy: #12355b;
  --radius: 4px;
  --font: "Open Sans", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

/* Keeps anchors and keyboard focus clear of the sticky nav bar */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; }

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 12px; color: var(--heading); }

button, input, textarea, select { font: inherit; }

:focus-visible { outline: 3px solid #111; outline-offset: 2px; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 1000;
  background: #fff; color: var(--red); padding: 8px 14px; border-radius: var(--radius); font-weight: 700;
}
.skip-link:focus { top: 8px; }

/* ---------- Brand bar (centred logo) ---------- */
.brand-bar { background: #fff; padding: 18px 0 16px; text-align: center; }
.logo {
  display: inline-flex; align-items: center; gap: 10px; color: var(--heading);
  font-weight: 800; font-size: 28px; letter-spacing: 0.5px; text-transform: uppercase; line-height: 1.1;
}
.logo:hover { text-decoration: none; color: var(--heading); }
.logo svg { width: 46px; height: 46px; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; align-items: flex-start; }
.logo small {
  font-size: 12px; font-weight: 600; text-transform: none; letter-spacing: 0.2px; color: var(--muted); margin-top: 3px;
}

/* ---------- Nav bar ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 100; background: var(--nav-bg);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 8px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; flex-wrap: wrap; }
.main-nav a {
  display: block; color: var(--nav-link); font-size: 15px; font-weight: 600;
  padding: 18px 12px; line-height: 1.5;
}
.main-nav a:hover,
.main-nav a.active { color: var(--nav-active); text-decoration: none; }
.main-nav a.active { box-shadow: inset 0 -3px 0 var(--nav-active); }

.nav-inner .search-toggle { margin-left: auto; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: transparent; border: 0; color: var(--nav-link); cursor: pointer;
}
.icon-btn:hover { background: rgba(13, 44, 255, 0.08); color: var(--nav-active); }
.icon-btn svg { width: 21px; height: 21px; }
.menu-toggle { display: none; }

.search-panel { display: none; background: #fff; border-bottom: 1px solid var(--line); padding: 14px 0; }
.search-panel.open { display: block; }
.search-form { display: flex; max-width: 640px; margin: 0 auto; }
.search-form input {
  flex: 1; min-width: 0; border: 1px solid #8a94a6; border-right: 0; padding: 10px 14px;
  font-size: 16px; color: var(--text); background: #fff; border-radius: 0;
}
.search-form button {
  border: 0; background: var(--red); color: #fff; font-weight: 600; padding: 0 22px; cursor: pointer; border-radius: 0;
}
.search-form button:hover { background: var(--red-dark); }

/* ---------- Follow buttons (WhatsApp / Telegram) ---------- */
.join-wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 22px 0 26px; }
.pill-btn {
  display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; font-size: 15px;
  padding: 9px 18px; border-radius: 6px; line-height: 1.3; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}
.pill-btn:hover { color: #fff; text-decoration: none; }
.pill-btn svg { width: 20px; height: 20px; fill: #fff; flex-shrink: 0; }
.pill-wa { background: var(--wa); }
.pill-tg { background: var(--tg); }
.pill-wa:hover { background: #116b33; }
.pill-tg:hover { background: #185a91; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-radius: 0; padding: 10px 20px; cursor: pointer;
  font-weight: 600; font-size: 15px; color: #fff; background: var(--red); line-height: 1.3;
}
.btn:hover { text-decoration: none; color: #fff; background: var(--red-dark); }
.btn-wa { background: var(--wa); }
.btn-wa:hover { background: #116b33; }
.btn-tg { background: var(--tg); }
.btn-tg:hover { background: #185a91; }
.btn-copy { background: #455a64; }
.btn-copy:hover { background: #37474f; }

/* ---------- Layout ---------- */
.page-wrap { padding: 0 0 40px; }
.layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; padding-top: 6px;
}

/* ---------- Blog cards (home) ---------- */
.post-cards { display: grid; gap: 44px; }
.post-card { border-bottom: 1px solid var(--line); padding-bottom: 36px; }
.post-card:last-child { border-bottom: 0; }
.pc-title { font-size: 27px; font-weight: 600; line-height: 1.32; margin: 0 0 6px; color: var(--heading); }
.pc-title a { color: var(--heading); }
.pc-title a:hover { color: var(--red); text-decoration: none; }
.pc-date { display: block; font-size: 14px; color: var(--date); margin-bottom: 16px; }
.pc-banner-link { display: block; color: inherit; margin-bottom: 16px; }
.pc-banner-link:hover { text-decoration: none; opacity: 0.96; }
.pc-banner-link .post-banner { margin: 0; }
.pc-excerpt { margin: 0 0 18px; color: #2b2b2b; }
.pc-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.pc-cats { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 14px; }
.pc-cats svg { width: 15px; height: 15px; fill: var(--red); margin-right: 3px; }
.pc-cats a { color: var(--red); }

.more-row { text-align: center; margin: 34px 0 10px; }

.section-title {
  font-size: 24px; font-weight: 700; color: var(--heading); margin: 46px 0 18px; padding-bottom: 10px;
  border-bottom: 3px solid var(--red);
}

/* ---------- Category boxes ---------- */
.home-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.box { background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; }
.box-title {
  margin: 0; background: var(--red); color: #fff; text-align: center;
  font-size: 18px; font-weight: 600; padding: 12px; text-transform: uppercase; letter-spacing: 0.4px;
}
.box-title a { color: #fff; }
.box-title a:hover { color: #fff; text-decoration: underline; }
.box-list { list-style: disc; margin: 0; padding: 14px 18px 4px 36px; flex: 1; }
.box-list li { margin-bottom: 9px; line-height: 1.45; }
.box-list li::marker { color: var(--red); }
.box-list a { font-weight: 600; font-size: 15px; color: var(--link); }
.box-list a:hover { color: var(--red); }
.box-more { margin: 6px 14px 14px; }
.box-more .btn { width: 100%; font-size: 14px; padding: 9px; }
.box-empty { padding: 16px; color: var(--muted); font-style: italic; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-block; border: 1px solid #b9c3d3; color: var(--heading); background: #fff;
  padding: 5px 12px; font-weight: 600; font-size: 14px; line-height: 1.4;
}
.chip:hover,
.chip.active { background: var(--red); border-color: var(--red); color: #fff; text-decoration: none; }

.about-block { background: var(--soft); padding: 24px 26px; margin-top: 44px; border-left: 4px solid var(--red); }
.about-block h2 { font-size: 22px; }
.about-block h3 { color: var(--red); font-size: 18px; margin-top: 18px; }
.about-block p:last-child { margin-bottom: 0; }

/* ---------- Badges ---------- */
.badge {
  display: inline-block; font-size: 10.5px; font-weight: 700; text-transform: uppercase;
  padding: 1px 6px; border-radius: 3px; vertical-align: middle; margin-left: 4px; letter-spacing: 0.3px;
  line-height: 1.6;
}
.badge-new { background: var(--red); color: #fff; animation: pulse 1.6s ease-in-out infinite; }
.badge-live { background: var(--success); color: #fff; }
.badge-closed { background: #757575; color: #fff; }
/* Pulse the colour, not the opacity, so the text keeps its contrast */
@keyframes pulse { 50% { background: #8f0000; } }

/* ---------- Breadcrumb & entry ---------- */
.breadcrumb { font-size: 14px; margin-bottom: 12px; color: var(--muted); }
.breadcrumb a { color: var(--link); }
.breadcrumb span.sep { margin: 0 6px; }

.entry { background: #fff; }
.entry-title { font-size: 34px; font-weight: 700; margin-bottom: 8px; color: #000; }
.entry-meta { font-size: 14px; color: var(--date); margin-bottom: 20px; }
.entry-meta a { color: var(--red); }
.entry p { margin: 0 0 16px; }
.entry ul,
.entry ol { margin: 0 0 18px; padding-left: 26px; }
.entry li { margin-bottom: 7px; }

.entry h2 {
  font-size: 25px; font-weight: 600; color: var(--heading); margin: 34px 0 14px;
  padding-bottom: 8px; border-bottom: 2px solid var(--nav-bg);
}
.entry h3 { font-size: 20px; margin-top: 22px; }

.table-wrap { width: 100%; overflow-x: auto; margin: 0 0 18px; -webkit-overflow-scrolling: touch; }
.entry table { width: 100%; border-collapse: collapse; font-size: 16px; }
.entry th,
.entry td { border: 1px solid var(--table-line); padding: 10px 13px; text-align: left; vertical-align: top; }
.entry thead th { background: var(--table-head); font-weight: 700; color: var(--heading); }
.entry tbody tr:nth-child(even) td { background: #fafbfd; }
.entry table.kv td:first-child { font-weight: 600; width: 44%; color: var(--heading); }
.entry table.links td:last-child { width: 34%; }
.entry table.links td:last-child a { font-weight: 700; }
.entry table.links tr.hot td { background: var(--hot); }
.entry table.links tr.hot td:first-child { font-weight: 700; }

/* Banner composed in CSS — doubles as the "featured image" */
.post-banner {
  overflow: hidden; margin: 0 0 22px; border: 1px solid #000;
  font-family: "Open Sans", Arial, sans-serif;
}
.pb-top {
  background: #000; color: #fff; text-align: center; font-weight: 800;
  font-size: clamp(20px, 3.2vw, 33px); padding: 10px 12px; line-height: 1.2;
}
.pb-body {
  display: grid; grid-template-columns: 38% 1fr; align-items: center; gap: 16px;
  background: #fff6e0; padding: 18px 20px;
}
.pb-emblem {
  aspect-ratio: 1; width: 100%; max-width: 190px; margin: 0 auto; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #fff 0 52%, #c62828 53% 60%, #f6c343 61% 70%, #c62828 71% 100%);
  display: flex; align-items: center; justify-content: center; text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.pb-emblem span {
  font-weight: 800; color: #8a0f2e; font-size: clamp(16px, 3vw, 30px); line-height: 1.05;
  max-width: 64%; overflow-wrap: anywhere;
}
/* Longer short-names (UPPRPB, PM-KISAN) shrink instead of breaking mid-word */
.pb-emblem span.long { font-size: clamp(12px, 2.1vw, 21px); }
.pb-tags { display: grid; gap: 10px; }
.pb-tag {
  display: block; text-align: center; font-weight: 800; font-size: clamp(15px, 2.5vw, 27px);
  padding: 6px 10px; border: 2px solid rgba(0, 0, 0, 0.25); line-height: 1.2;
}
.pb-tag:nth-child(3n + 1) { background: #c62828; color: #fff; }
.pb-tag:nth-child(3n + 2) { background: #10233f; color: #ffd54f; }
.pb-tag:nth-child(3n + 3) { background: #b71c1c; color: #fff; }
.pb-bottom {
  background: var(--navy); color: #ffd54f; text-align: center; font-weight: 800;
  font-size: clamp(15px, 2.4vw, 25px); padding: 8px 12px; line-height: 1.25;
}

/* Mini banner used as a thumbnail in lists */
.thumb {
  position: relative; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  aspect-ratio: 16 / 10; background: #fff6e0; border: 1px solid #000; overflow: hidden; color: inherit;
}
.thumb:hover { text-decoration: none; opacity: 0.92; }
.thumb::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 18%; background: #000;
}
.th-emb {
  position: relative; width: 44%; aspect-ratio: 1; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 45%, #fff 0 54%, #c62828 55% 64%, #f6c343 65% 74%, #c62828 75% 100%);
  font-weight: 800; color: #8a0f2e; font-size: 11px; line-height: 1; text-align: center; margin-top: -2%;
}
.th-emb span { max-width: 66%; overflow-wrap: normal; }
.th-emb.long { font-size: 8px; }
.thumb.lg .th-emb { font-size: 17px; }
.thumb.lg .th-emb.long { font-size: 12px; }
.th-tag {
  position: absolute; left: 0; right: 0; bottom: 0; background: var(--navy); color: #ffd54f;
  font-size: 10px; font-weight: 800; text-align: center; padding: 2px 4px; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.thumb.lg .th-tag { font-size: 13px; padding: 4px 6px; }

.highlights {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 22px;
}
.hl { min-width: 0; background: var(--soft); border: 1px solid var(--nav-bg); border-top: 3px solid var(--red); padding: 10px 12px; }
.hl small { display: block; font-size: 12px; text-transform: uppercase; color: var(--muted); letter-spacing: 0.4px; }
.hl strong { display: block; font-size: 16px; color: var(--heading); line-height: 1.35; overflow-wrap: anywhere; }

.toc { border: 1px solid var(--line); background: var(--soft); padding: 12px 18px; margin: 0 0 22px; }
.toc summary { cursor: pointer; font-weight: 700; color: var(--heading); }
.toc ol { margin: 10px 0 4px; padding-left: 22px; font-size: 15px; }
.toc li { margin-bottom: 4px; }

.note {
  background: var(--hot); border-left: 4px solid #f9a825; padding: 12px 16px; margin: 0 0 18px;
}
.note.note-red { background: var(--red-soft); border-left-color: var(--red); }

.read-also { border: 1px solid var(--nav-bg); background: var(--soft); padding: 12px 18px; margin: 0 0 20px; border-left: 4px solid var(--nav-active); }
.read-also strong { color: var(--heading); }
.read-also ul { margin: 6px 0 0; padding-left: 20px; }
.read-also a { font-weight: 600; }

.share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 28px 0 8px; }
.share > span { font-weight: 700; margin-right: 4px; color: var(--heading); }
.share .btn { font-size: 14px; padding: 8px 14px; }

.faq { border: 1px solid var(--line); margin-bottom: 8px; background: #fff; }
.faq summary {
  cursor: pointer; padding: 12px 42px 12px 14px; font-weight: 600; position: relative; list-style: none; color: var(--heading);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  font-size: 22px; color: var(--red); font-weight: 700;
}
.faq[open] summary::after { content: "\2212"; }
.faq[open] summary { border-bottom: 1px solid var(--line); }
.faq .faq-a { padding: 10px 14px 12px; }

.related { margin-top: 30px; }
.related h3 { font-size: 22px; border-bottom: 3px solid var(--red); padding-bottom: 8px; }
.related ul { padding-left: 22px; }
.related li { margin-bottom: 7px; }
.related a { font-weight: 600; }

/* Comments */
.comments { margin-top: 34px; border-top: 1px solid var(--line); padding-top: 20px; }
.comments h3 { font-size: 22px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 18px; }
.comment-list li { border: 1px solid var(--line); padding: 10px 14px; margin-bottom: 10px; background: var(--soft); }
.comment-list .c-head { font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.comment-list .c-head strong { color: var(--text); }
.form-grid { display: grid; gap: 12px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.field input,
.field textarea,
.field select {
  width: 100%; border: 1px solid #8a94a6; border-radius: 0; padding: 10px 12px; background: #fff; color: var(--text);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus,
.field textarea:focus,
.field select:focus { border-color: var(--nav-active); box-shadow: 0 0 0 1px var(--nav-active); }
.form-note { font-size: 13px; color: var(--muted); }
.form-msg { padding: 10px 14px; background: #e8f5e9; color: #166534; font-weight: 600; }
.form-msg.err { background: var(--red-soft); color: var(--red-dark); }

/* ---------- Sidebar ---------- */
.sidebar { display: grid; gap: 34px; }
.widget { background: #fff; }
.widget-title {
  background: var(--red); color: #fff; font-size: 19px; font-weight: 600; padding: 18px 16px; margin: 0 0 14px;
  text-align: center; text-transform: uppercase; letter-spacing: 0.4px;
}
.widget ul { margin: 0; padding: 0 0 0 20px; }
.widget li { margin-bottom: 10px; line-height: 1.5; font-size: 15px; }
.widget li a { color: var(--link); }
.widget-search label { display: block; font-size: 15px; margin-bottom: 6px; color: var(--text); }
.widget-search form { display: flex; gap: 8px; }
.widget-search input {
  flex: 1; min-width: 0; border: 1px solid #8a94a6; padding: 10px 12px; border-radius: 0;
}
.widget-search button {
  border: 0; background: var(--red); color: #fff; padding: 0 18px; cursor: pointer; font-weight: 600; border-radius: 0;
}
.widget-search button:hover { background: var(--red-dark); }

.recent-list { list-style: none !important; padding: 0 !important; display: grid; gap: 16px; }
.recent-list li { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; margin: 0; align-items: start; }
.recent-list .rl-title { display: block; font-size: 15px; line-height: 1.4; color: var(--link); }
.recent-list .rl-date { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.recent-list .rl-due { color: var(--red-dark); font-weight: 700; }

.cat-list { list-style: none !important; padding: 0 !important; }
.cat-list li { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 8px 2px; margin: 0; }
.cat-list li:last-child { border-bottom: 0; }
.cat-list .count { background: var(--soft); color: var(--heading); font-size: 12px; font-weight: 700; border-radius: 999px; padding: 1px 9px; align-self: center; border: 1px solid var(--nav-bg); }

/* ---------- Category / listing ---------- */
.list-head { padding: 0 0 18px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.list-head h1 { font-size: 32px; margin-bottom: 4px; color: #000; }
.list-head p { margin: 0 0 14px; color: var(--muted); }
.list-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.list-tools .search-form { margin: 0; flex: 1; max-width: 480px; }
.list-tools select { border: 1px solid #8a94a6; padding: 9px 10px; background: #fff; border-radius: 0; }
.result-count { font-size: 14px; color: var(--muted); }

.post-list { list-style: none; margin: 0; padding: 0; }
.post-item { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.post-item:last-child { border-bottom: 0; }
.pi-body { min-width: 0; }
.pi-title { font-weight: 600; font-size: 20px; line-height: 1.35; color: var(--heading); }
.pi-title:hover { color: var(--red); text-decoration: none; }
.pi-meta { font-size: 13.5px; color: var(--muted); margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.pi-meta .pi-date { color: var(--date); }
.pi-meta b { color: var(--text); font-weight: 600; }
.pi-summary { font-size: 15px; margin: 8px 0 12px; color: #2b2b2b; }
.pi-body .btn { font-size: 14px; padding: 8px 16px; margin-top: 4px; }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 24px 0; }
.page-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; border: 1px solid #b9c3d3; background: #fff; color: var(--heading);
  font-weight: 700; padding: 0 12px; font-size: 15px;
}
a.page-btn:hover,
.page-btn[aria-current="page"] { background: var(--red); border-color: var(--red); color: #fff; text-decoration: none; }
.page-btn[aria-disabled="true"] { opacity: 0.4; cursor: not-allowed; }

.empty-state { background: var(--soft); padding: 34px 20px; text-align: center; }
.empty-state h2 { color: var(--heading); }

/* ---------- Static pages ---------- */
.static h2 { font-size: 22px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.contact-card { border: 1px solid var(--line); border-top: 3px solid var(--red); padding: 14px; background: var(--soft); }
.contact-card strong { display: block; color: var(--heading); }

/* ---------- Footer ---------- */
.site-footer { background: #fff; color: var(--text); margin-top: 20px; font-size: 15px; border-top: 4px solid var(--nav-bg); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding: 36px 0 24px; }
.site-footer h4 { font-size: 16px; margin-bottom: 12px; color: var(--heading); text-transform: uppercase; letter-spacing: 0.4px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 7px; }
.site-footer a { color: var(--link); }
.site-footer a:hover { color: var(--red); }
.site-footer p { margin: 0 0 10px; color: #333; }
.footer-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.footer-social a { display: inline-flex; align-items: center; padding: 7px 14px; font-weight: 600; font-size: 14px; color: #fff; border-radius: 6px; }
.footer-social a:hover { color: #fff; text-decoration: none; }
.footer-social a.fs-wa { background: var(--wa); }
.footer-social a.fs-tg { background: var(--tg); }
.footer-social a.fs-wa:hover { background: #116b33; }
.footer-social a.fs-tg:hover { background: #185a91; }
.footer-bottom { background: var(--soft); padding: 14px 0; font-size: 14px; font-weight: 700; border-top: 1px solid var(--line); }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.footer-bottom nav a { margin-left: 14px; font-weight: 600; }
.demo-note { font-size: 13px; font-weight: 400; color: var(--muted); }

/* ---------- Floating join (phones only — desktop has the follow buttons) + back to top ---------- */
.float-join {
  position: fixed; right: 10px; bottom: 74px; z-index: 90; display: none; flex-direction: column; gap: 10px;
}
.float-btn { display: flex; align-items: center; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25)); }
.float-btn:hover { text-decoration: none; transform: translateX(-2px); }
.float-btn .fb-icon {
  width: 46px; height: 46px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid #fff; position: relative;
}
.float-btn .fb-icon svg { width: 22px; height: 22px; fill: #fff; }
.float-wa .fb-icon { background: var(--wa); }
.float-tg .fb-icon { background: var(--tg); }

.to-top {
  position: fixed; right: 16px; bottom: 18px; z-index: 90; width: 44px; height: 44px; border-radius: 50%;
  background: var(--red); color: #fff; border: 2px solid #fff; cursor: pointer;
  display: none; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.to-top.show { display: inline-flex; }
.to-top svg { width: 20px; height: 20px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); z-index: 200;
  background: #222; color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 14px;
  opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .menu-toggle { display: inline-flex; }
  .nav-inner { position: relative; min-height: 54px; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15); border-top: 1px solid var(--line);
    max-height: calc(100vh - 54px); overflow-y: auto;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; }
  .main-nav a { padding: 13px 20px; border-bottom: 1px solid var(--line); }
  .main-nav a.active { box-shadow: inset 4px 0 0 var(--nav-active); }
  .main-nav a:focus-visible { outline-offset: -3px; }
  html { scroll-padding-top: 66px; }
}

@media (max-width: 960px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand-bar { padding: 14px 0 12px; }
  .logo { font-size: 22px; gap: 8px; }
  .logo svg { width: 38px; height: 38px; }
  .logo small { font-size: 11px; }
  .home-grid,
  .footer-grid,
  .contact-grid,
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .join-wrap { margin: 16px 0 20px; gap: 10px; }
  .pill-btn { font-size: 14px; padding: 8px 14px; }
  .post-cards { gap: 34px; }
  .post-card { padding-bottom: 28px; }
  .pc-title { font-size: 22px; }
  .entry-title { font-size: 26px; }
  .entry h2 { font-size: 21px; }
  .entry table { font-size: 15px; }
  .entry th,
  .entry td { padding: 8px 9px; }
  .pb-body { grid-template-columns: 1fr 1.6fr; padding: 12px; gap: 10px; }
  .post-item { grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 16px 0; }
  .thumb.lg .th-emb { font-size: 11px; }
  .thumb.lg .th-emb.long { font-size: 8px; }
  .thumb.lg .th-tag { font-size: 10px; padding: 2px 4px; }
  .pi-title { font-size: 17px; }
  .pi-summary { display: none; }
  .list-head h1 { font-size: 26px; }
  .float-join { display: flex; }
  .footer-bottom nav a { margin: 0 14px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .badge-new { animation: none; }
}

@media print {
  .brand-bar, .site-nav, .site-footer, .sidebar, .float-join, .to-top, .join-wrap, .share, .comments, .search-panel { display: none !important; }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .table-wrap { overflow: visible; }
  body { background: #fff; }
  .entry h2 { border-bottom: 2px solid #000; }
}
