.eg-page .header-actions .gks-lang-switch,
.eg-page .gks-lang-drawer .gks-lang-switch {
  display: inline-flex;
  flex-shrink: 0;
}

.eg-page {
  --eg-ink: #1c1917;
  --eg-muted: #57534e;
  --eg-line: #e7e5e4;
  --eg-paper: #fffdf8;
  --eg-cream: #f7f3ea;
  --eg-accent: #0f766e;
  --eg-accent-2: #c2410c;
  --eg-soft: #ccfbf1;
  --eg-warn: #fff7ed;
  --eg-shadow: 0 12px 32px rgba(28, 25, 23, .08);
  background: var(--eg-cream);
  color: var(--eg-ink);
  font-family: Inter, "Noto Sans Devanagari", "Segoe UI", sans-serif;
}
.eg-theme-police { --eg-accent: #0f766e; --eg-accent-2: #1d4ed8; --eg-soft: #ccfbf1; }
.eg-theme-teach { --eg-accent: #5b21b6; --eg-accent-2: #c2410c; --eg-soft: #ede9fe; }
.eg-theme-ssc { --eg-accent: #c2410c; --eg-accent-2: #0f766e; --eg-soft: #ffedd5; }
.eg-theme-rail { --eg-accent: #1d4ed8; --eg-accent-2: #c2410c; --eg-soft: #dbeafe; }
.eg-theme-bank { --eg-accent: #047857; --eg-accent-2: #b45309; --eg-soft: #d1fae5; }
.eg-theme-defence { --eg-accent: #3f6212; --eg-accent-2: #9a3412; --eg-soft: #ecfccb; }
.eg-theme-pet { --eg-accent: #b45309; --eg-accent-2: #0f766e; --eg-soft: #fef3c7; }
.eg-theme-board { --eg-accent: #0e7490; --eg-accent-2: #a16207; --eg-soft: #cffafe; }
.eg-theme-post { --eg-accent: #9f1239; --eg-accent-2: #0f766e; --eg-soft: #ffe4e6; }

.eg-page .gks-ads-top:not(:has(iframe)) {
  display: none;
}
.eg-wrap { width: min(1200px, calc(100% - 24px)); margin: 0 auto; padding: 12px 0 64px; }
.eg-crumb { font-size: 14px; color: #78716c; margin: 6px 0 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.eg-crumb a { color: var(--eg-accent); text-decoration: none; font-weight: 600; }

.eg-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.eg-article { min-width: 0; }
.eg-meta {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin: 0 0 10px; font-size: 13px; color: var(--eg-muted);
}
.eg-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--eg-line); border-radius: 999px;
  padding: 4px 10px; font-weight: 650;
}
.eg-kicker {
  margin: 0 0 8px; font-size: 12px; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; color: var(--eg-accent-2);
}
.eg-article h1, .eg-hub-hero h1 {
  margin: 0 0 12px; font-size: clamp(1.55rem, 3.4vw, 2.35rem); line-height: 1.28;
}
.eg-dek { font-size: 1.15rem; color: #44403c; line-height: 1.65; margin: 0 0 16px; }

.eg-cover {
  position: relative; margin: 0 0 18px; border-radius: 20px; overflow: hidden;
  box-shadow: var(--eg-shadow); aspect-ratio: 2.35 / 1; background: #134e4a;
}
.eg-cover img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1.05) brightness(.72);
}
.eg-cover::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--eg-accent) 55%, transparent), color-mix(in srgb, var(--eg-accent-2) 28%, transparent)),
    linear-gradient(180deg, rgba(15, 23, 42, .15) 0%, rgba(15, 23, 42, .78) 100%);
  pointer-events: none;
}
.eg-cover-text {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; justify-content: center;
  padding: 18px 22px;
  color: #fff;
}
.eg-cover-text span {
  font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .9;
}
.eg-cover-text strong {
  font-size: clamp(1.15rem, 3vw, 1.7rem); line-height: 1.3; max-width: 28ch;
}

.eg-hook {
  display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start;
  background: var(--eg-soft); border: 1px solid color-mix(in srgb, var(--eg-accent) 18%, #fff);
  border-radius: 16px; padding: 14px 16px; margin: 0 0 18px;
}
.eg-hook b {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 64px; height: 64px; border-radius: 14px; background: var(--eg-accent);
  color: #fff; font-size: 12px; text-align: center; line-height: 1.25; padding: 6px;
}
.eg-hook p { margin: 0; font-size: 1.05rem; line-height: 1.55; }

.eg-toc { margin: 0 0 22px; }
.eg-toc h2 { margin: 0 0 8px; font-size: 1rem; }
.eg-toc-list {
  display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0;
}
.eg-toc-list a {
  display: inline-block; text-decoration: none; color: var(--eg-ink);
  background: #fff; border: 1px solid var(--eg-line); border-radius: 999px;
  padding: 7px 12px; font-size: 13px; font-weight: 650;
}
.eg-toc-list a:hover { border-color: var(--eg-accent); color: var(--eg-accent); }

.eg-section, .eg-tips, #eg-faq, .eg-faq {
  scroll-margin-top: 88px;
}
.eg-section {
  background: var(--eg-paper); border: 1px solid var(--eg-line);
  border-radius: 18px; padding: 16px 18px 6px; margin: 0 0 14px;
}
.eg-section h2 {
  margin: 0 0 8px; font-size: 1.2rem; line-height: 1.35;
  padding-left: 12px; border-left: 4px solid var(--eg-accent);
}
.eg-section p { margin: 0 0 12px; font-size: 1.05rem; line-height: 1.75; color: #292524; }

.eg-mistake {
  background: #fff1f2; border: 1px solid #fecdd3; border-radius: 16px;
  padding: 14px 16px; margin: 0 0 16px;
}
.eg-mistake strong { display: block; color: #9f1239; margin-bottom: 4px; }
.eg-mistake p { margin: 0; line-height: 1.6; }

.eg-table-wrap { overflow-x: auto; margin: 0 0 18px; border-radius: 16px; border: 1px solid var(--eg-line); background: #fff; }
.eg-table { width: 100%; border-collapse: collapse; min-width: 520px; }
.eg-table th, .eg-table td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--eg-line); vertical-align: top; }
.eg-table th { background: var(--eg-soft); color: var(--eg-ink); font-size: 13px; }
.eg-table tr:last-child td { border-bottom: 0; }
.eg-table td:first-child { font-weight: 750; }

.eg-midcta {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  background: var(--eg-accent); color: #fff; border-radius: 18px; padding: 16px 18px; margin: 6px 0 20px;
}
.eg-midcta p { margin: 0; font-weight: 700; max-width: 42ch; }
.eg-cta, .eg-cta-ghost {
  display: inline-block; text-decoration: none; font-weight: 800; border-radius: 999px;
  padding: 11px 16px; text-align: center;
}
.eg-cta { background: #fff; color: var(--eg-accent); }
.eg-cta-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.45); }
.eg-cta-block { background: var(--eg-accent); color: #fff; width: 100%; box-sizing: border-box; }

.eg-tips { margin: 0 0 20px; }
.eg-tips h2 { margin: 0 0 10px; font-size: 1.25rem; }
.eg-tip-grid { display: grid; gap: 10px; }
.eg-tip {
  display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: start;
  background: #fff; border: 1px solid var(--eg-line); border-radius: 14px; padding: 12px 14px;
}
.eg-tip i {
  font-style: normal; font-weight: 800; color: #fff; background: var(--eg-accent);
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
}
.eg-tip p { margin: 0; line-height: 1.55; }

.eg-note {
  background: var(--eg-warn); border-left: 4px solid #f59e0b;
  padding: 12px 14px; border-radius: 10px; margin: 0 0 18px; line-height: 1.6;
}
.eg-faq { background: #fff; border: 1px solid var(--eg-line); border-radius: 14px; padding: 12px 14px; margin: 8px 0; }
.eg-faq summary { cursor: pointer; font-weight: 750; }
.eg-faq p { margin: 10px 0 0; color: var(--eg-accent); line-height: 1.6; }

.eg-side {
  background: #fff; border: 1px solid var(--eg-line); border-radius: 20px; padding: 16px;
}
.eg-side h2 { margin: 0 0 10px; font-size: 1.05rem; }
.eg-check { list-style: none; padding: 0; margin: 0 0 14px; }
.eg-check li {
  position: relative; padding: 8px 0 8px 28px; border-bottom: 1px dashed var(--eg-line);
  font-size: 14px; line-height: 1.45;
}
.eg-check li:before {
  content: ""; position: absolute; left: 0; top: 11px; width: 16px; height: 16px;
  border: 2px solid var(--eg-accent); border-radius: 4px;
}
.eg-side-rel a {
  display: block; text-decoration: none; color: inherit;
  padding: 8px 0; border-bottom: 1px solid var(--eg-line); font-weight: 700; font-size: 14px;
}
.eg-side-rel a span { display: block; font-weight: 550; color: var(--eg-muted); font-size: 12px; }

.eg-more { margin-top: 28px; }
.eg-more h2 { margin: 0 0 12px; }
.eg-grid { display: grid; gap: 12px; }
.eg-card {
  display: block; background: #fff; border: 1px solid var(--eg-line); border-radius: 16px;
  padding: 14px 16px; text-decoration: none; color: inherit; min-height: 100%;
}
.eg-card:hover { border-color: var(--eg-accent); box-shadow: var(--eg-shadow); transform: translateY(-1px); }
.eg-card strong { display: block; margin: 4px 0 6px; line-height: 1.4; }
.eg-card p, .eg-card span { margin: 0; color: #78716c; font-size: 14px; }

.eg-hub-hero {
  background: #fff; border: 1px solid var(--eg-line); border-radius: 22px;
  padding: 20px 20px 8px; margin-bottom: 18px; overflow: hidden;
}
.eg-hub-hero p { line-height: 1.65; color: #44403c; max-width: 62ch; }
.eg-hub-cover { margin: 14px -20px 0; border-radius: 0; aspect-ratio: 2.8 / 1; }
.eg-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.eg-filters button {
  border: 1px solid var(--eg-line); background: #fff; border-radius: 999px;
  padding: 7px 12px; font-weight: 750; cursor: pointer; color: var(--eg-ink);
}
.eg-filters button.is-on { background: var(--eg-accent); color: #fff; border-color: var(--eg-accent); }
.eg-featured { display: grid; gap: 12px; margin-bottom: 16px; }
.eg-card-lg { padding: 18px; background: linear-gradient(180deg, #fff, var(--eg-soft)); }
.eg-card-lg strong { font-size: 1.15rem; }
.eg-hidden { display: none !important; }

@media (min-width: 720px) {
  .eg-grid-hub, .eg-grid-rel { grid-template-columns: 1fr 1fr; }
  .eg-tip-grid { grid-template-columns: 1fr 1fr; }
  .eg-featured { grid-template-columns: 1fr 1fr; }
  .eg-featured .eg-card-lg:first-child { grid-column: 1 / -1; }
}
@media (min-width: 980px) {
  .eg-layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .eg-side { position: sticky; top: 18px; }
  .eg-grid-hub { grid-template-columns: 1fr 1fr 1fr; }
  .eg-featured { grid-template-columns: 1fr 1fr 1fr; }
  .eg-featured .eg-card-lg:first-child { grid-column: auto; }
  .eg-article h1 { font-size: 2.25rem; }
  .eg-section p { font-size: 1.08rem; }
}
@media (max-width: 640px) {
  .eg-wrap { width: calc(100% - 20px); padding-bottom: 40px; }
  .eg-cover { aspect-ratio: 16 / 9; border-radius: 16px; }
  .eg-cover-text { padding: 14px; }
  .eg-hook { grid-template-columns: 1fr; }
  .eg-hook b { min-width: 0; height: auto; width: max-content; }
  .eg-midcta { display: block; }
  .eg-midcta .eg-cta { width: 100%; margin-top: 10px; box-sizing: border-box; }
  .eg-cta-block { width: 100%; }
  .eg-section, .eg-side, .eg-card { padding: 13px; }
  .eg-article h1 { font-size: 1.45rem; }
  .eg-dek { font-size: 1.02rem; }
}
