/* ============================================================
   BharatDummy theme — friendly, fast, no external dependencies
   ============================================================ */

:root {
  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --accent: #f59e0b;
  --bg: #faf9ff;
  --card: #ffffff;
  --text: #1e1b33;
  --muted: #6b6a80;
  --border: #e6e4f5;
  --shadow: 0 4px 16px rgba(79, 70, 229, 0.08);
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14121f;
    --card: #1e1b30;
    --text: #eceaf6;
    --muted: #a3a0bd;
    --border: #322e4d;
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  }
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 17px;
}

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

.container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  font-size: 1.35em;
  text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo .logo-badge {
  background: #fff;
  color: var(--primary);
  border-radius: 10px;
  padding: 2px 9px;
  font-size: 0.8em;
  letter-spacing: 0.5px;
}
.logo .logo-sub { color: #fcd34d; font-size: 0.62em; font-weight: 600; }

.main-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.main-nav a {
  color: #f3f2ff;
  padding: 7px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92em;
}
.main-nav a:hover,
.main-nav a.active {
  background: rgba(255, 255, 255, 0.18);
  text-decoration: none;
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 56px 20px 44px;
}
.hero h1 {
  font-size: clamp(1.9em, 4.5vw, 2.7em);
  line-height: 1.25;
  font-weight: 800;
}
.hero h1 .hl {
  background: linear-gradient(135deg, var(--primary), #9333ea);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.tagline {
  color: var(--muted);
  max-width: 640px;
  margin: 14px auto 0;
  font-size: 1.05em;
}

/* ---------- Search ---------- */
.search-wrap { max-width: 560px; margin: 28px auto 0; position: relative; }
.search-wrap input {
  width: 100%;
  padding: 15px 18px 15px 46px;
  font-size: 1em;
  border: 2px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  outline: none;
  box-shadow: var(--shadow);
}
.search-wrap input:focus { border-color: var(--primary); }
.search-wrap::before {
  content: "🔎";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1em;
}

/* ---------- Sections & cards ---------- */
.section { padding: 34px 0 10px; }
.section > h2 {
  font-size: 1.55em;
  font-weight: 800;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section > .section-sub { color: var(--muted); margin-bottom: 18px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: block;
  color: inherit;
}
.card:hover {
  transform: translateY(-3px);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.16);
}
.card .card-emoji { font-size: 1.6em; }
.card h3 {
  margin: 6px 0 4px;
  font-size: 1.05em;
  font-weight: 800;
  color: inherit;
}
.card p { color: var(--muted); font-size: 0.88em; line-height: 1.5; }
.card .card-tag {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.72em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary);
}
.card .card-tag.tag-half {
  background: rgba(245, 158, 11, 0.15);
  color: #b45309;
}
@media (prefers-color-scheme: dark) {
  .card .card-tag.color-inherit { color: #a5b4fc; }
  .card .card-tag.tag-half { color: #fcd34d; }
}

/* ---------- Info boxes / adverts placeholder ---------- */
.ad-slot {
  margin: 26px 0;
  padding: 28px 16px;
  text-align: center;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.9em;
}

/* ---------- Breadcrumbs ---------- */
.breadcrumb {
  padding: 16px 0 4px;
  font-size: 0.88em;
  color: var(--muted);
}
.breadcrumb a { color: var(--primary); }
.breadcrumb .sep { margin: 0 7px; color: var(--muted); }

/* ---------- Article page ---------- */
main.page-content { padding: 8px 0 50px; }

.answer-box {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(147, 51, 234, 0.08));
  border: 2px solid rgba(79, 70, 229, 0.25);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 20px 0;
  font-size: 1.06em;
}
.answer-box .big-answer {
  display: block;
  font-size: 1.35em;
  font-weight: 800;
  color: var(--primary);
  margin-top: 4px;
}
@media (prefers-color-scheme: dark) {
  .answer-box .big-answer { color: #a5b4fc; }
}

article h2 {
  font-size: 1.35em;
  font-weight: 800;
  margin: 34px 0 10px;
  padding-top: 6px;
}
article p { margin: 10px 0; }
article ul, article ol { margin: 10px 0 10px 24px; }
article li { margin: 6px 0; }
strong { font-weight: 700; }

.term-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: 0.95em;
}
.term-table th, .term-table td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
}
.term-table th { background: rgba(79, 70, 229, 0.1); font-weight: 800; }

/* ---------- FAQ accordions (native HTML, no JS) ---------- */
details.faq {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin: 10px 0;
  padding: 14px 18px;
  box-shadow: var(--shadow);
}
details.faq summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
details.faq summary::before { content: "▶"; font-size: 0.7em; margin-right: 10px; color: var(--primary); }
details.faq[open] summary::before { content: "▼"; }
details.faq p { margin-top: 10px; color: var(--muted); }

/* ---------- Quote / tip ---------- */
.tip-box {
  border-left: 4px solid var(--accent);
  background: var(--card);
  padding: 14px 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 16px 0;
  color: var(--muted);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 30px 0 40px;
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}
.site-footer h4 {
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
  margin-bottom: 10px;
}
.site-footer ul { list-style: none; }
.site-footer li { margin: 6px 0; }
.site-footer a { color: var(--text); font-size: 0.94em; }
.site-footer a:hover { color: var(--primary); }
.footer-legal {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.86em;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  justify-content: space-between;
}

.hero.compact { padding: 40px 20px 20px; }
.section.compact-top { padding-top: 10px; }

.gallery-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 26px;
}
.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.gallery-item figcaption {
  color: var(--muted);
  font-size: 0.9em;
  margin-top: 10px;
}

.map-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 14px 0;
}
.map-wrap iframe { display: block; width: 100%; height: 360px; }

/* ---------- Utility ---------- */
.back-link {
  display: inline-block;
  margin-top: 28px;
  font-weight: 700;
}
.muted { color: var(--muted); }
.mt-0 { margin-top: 0 !important; }

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus { left: 10px; top: 10px; background: #fff; color: #000; padding: 8px 14px; z-index: 100; }
