/* YojnaHub – Sarkari Yojana Information
   Mobile-first, fast-loading, minimal CSS
*/

:root {
  --color-bg: #f5f7fa;
  --color-surface: #ffffff;
  --color-primary: #0b875b;
  --color-primary-soft: #e2f3ec;
  --color-accent: #1976d2;
  --color-text: #1f2933;
  --color-text-muted: #6b7280;
  --color-border: #d1d5db;
  --shadow-soft: 0 2px 6px rgba(15, 23, 42, 0.08);
  --radius-card: 12px;
  --radius-pill: 999px;
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

.main-content {
  padding: 16px 0 32px;
}

/* Header */

.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo img {
  height: 28px;
  width: auto;
  display: block;
}

.main-nav a {
  margin-left: 12px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.main-nav a.active {
  color: var(--color-primary);
  font-weight: 600;
}

/* Hero */

.hero {
  background: linear-gradient(135deg, #e8f5e9, #e3f2fd);
  border-radius: 16px;
  padding: 20px 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-soft);
}

.hero h1 {
  font-size: 1.4rem;
  margin: 0 0 8px;
}

.hero-text {
  margin: 0 0 16px;
  font-size: 0.95rem;
}

.note-text {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus {
  filter: brightness(0.95);
}

.btn-full {
  width: 100%;
}

/* Cards and grid */

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.card {
  background-color: var(--color-surface);
  border-radius: var(--radius-card);
  padding: 14px 14px 12px;
  box-shadow: var(--shadow-soft);
  border: 1px solid #e5e7eb;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.card p {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.badge-count {
  background-color: var(--color-primary-soft);
  color: var(--color-primary);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  font-size: 0.8rem;
}

/* Breadcrumb */

.breadcrumb {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.breadcrumb a {
  color: var(--color-accent);
}

/* Category header */

.category-header h1 {
  margin: 0 0 6px;
  font-size: 1.3rem;
}

.category-header {
  margin-bottom: 16px;
}

.muted-text {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* Scheme details */

.scheme-details {
  background-color: var(--color-surface);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow-soft);
  border: 1px solid #e5e7eb;
}

.scheme-details h1 {
  font-size: 1.3rem;
  margin: 4px 0 12px;
}

.scheme-details h2 {
  font-size: 1rem;
  margin: 16px 0 6px;
}

.body-text {
  font-size: 0.95rem;
  line-height: 1.5;
}

.list {
  list-style: disc;
  padding-left: 20px;
  margin: 4px 0 0;
}

.list li {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background-color: var(--color-primary-soft);
  color: var(--color-primary);
  font-size: 0.8rem;
}

/* Disclaimer box */

.disclaimer-box {
  background-color: #fff7e6;
  border-left: 4px solid #f59e0b;
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
}

.disclaimer-box h2 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.disclaimer-box p {
  margin: 0;
  font-size: 0.9rem;
}

/* Static pages */

.static-page {
  background-color: var(--color-surface);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow-soft);
  border: 1px solid #e5e7eb;
}

.static-page h1 {
  margin-top: 0;
}

.static-page h2 {
  margin-top: 18px;
  font-size: 1.05rem;
}

.static-page p {
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--color-border);
  background-color: #ffffff;
  padding: 12px 0 18px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 16px;
}

.footer-links a {
  margin-right: 12px;
}

.footer-meta {
  font-weight: 500;
}

/* Larger screens */

@media (min-width: 640px) {
  .header-inner {
    padding: 14px 0;
  }

  .hero {
    padding: 24px 20px;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
