:root {
  --ink: #142017;
  --muted: #607063;
  --paper: #f8faf4;
  --white: #ffffff;
  --green: #1e7a3a;
  --green-dark: #15562a;
  --saffron: #d9952f;
  --navy: #17324d;
  --line: #dce6d7;
  --soft: #edf6e8;
  --shadow: 0 24px 70px rgba(20, 32, 23, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

/* =========================
   HEADER
========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(220, 230, 215, 0.82);
  background: rgba(248, 250, 244, 0.94);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(135deg, var(--green), var(--saffron));
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  max-width: 260px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #314533;
  font-size: 15px;
  font-weight: 750;
}

.nav-links a:hover {
  color: var(--green);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px auto;
  background: var(--ink);
}

/* =========================
   HERO
========================= */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  min-height: calc(100vh - 80px);
  padding: clamp(40px, 7vw, 86px) clamp(18px, 5vw, 72px) 42px;
}

.hero-content {
  max-width: 690px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
td,
th {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 5.7vw, 72px);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

.hero-copy,
.section-heading p {
  color: var(--muted);
  font-size: 18px;
}

.hero-copy {
  max-width: 650px;
  margin: 24px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

/* =========================
   BUTTONS
========================= */

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 20px;
  font-weight: 850;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  color: var(--white);
  background: var(--green);
  box-shadow: 0 12px 28px rgba(30, 122, 58, 0.24);
}

.btn.secondary {
  color: var(--ink);
  border-color: var(--line);
  background: var(--white);
}

/* =========================
   TRUST
========================= */

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.trust-strip span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  color: #3b523d;
  background: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 800;
}

/* =========================
   HERO IMAGE
========================= */

.hero-media {
  position: relative;
  max-width: 760px;
  justify-self: center;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 1805 / 871;
  object-fit: contain;
  border-radius: 8px;
  background: #eaf2e8;
  box-shadow: var(--shadow);
}

.hero-media::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -18px;
  z-index: -1;
  width: 52%;
  height: 46%;
  border-radius: 8px;
  background: var(--saffron);
}

/* =========================
   STATS
========================= */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 0 clamp(18px, 5vw, 72px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.stats div {
  padding: 26px;
  background: var(--white);
}

.stats strong {
  display: block;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1;
}

.stats span {
  color: var(--muted);
  font-weight: 780;
}

/* =========================
   NOTES / ALERTS
========================= */

.data-note {
  margin: 18px clamp(18px, 5vw, 72px) 0;
  border: 1px solid #f0d29d;
  border-radius: 8px;
  padding: 16px 18px;
  color: #5f4314;
  background: #fff7e8;
}

.data-note strong {
  color: #3f2a08;
}

.scheme-alert,
.model-strip {
  margin-bottom: 24px;
  border: 1px solid #f0d29d;
  border-radius: 8px;
  padding: 18px 20px;
  color: #5f4314;
  background: #fff7e8;
}

.scheme-alert strong {
  color: #3f2a08;
}

/* =========================
   SCHEME / QUICK LIST
========================= */

.scheme-grid,
.quick-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.quick-list {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 24px;
}

/* =========================
   LOGO
========================= */

.site-logo {
  width: 70px;
  height: 70px;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  padding: 4px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

/* =========================
   PACS CONTACT
========================= */

.local-pacs-contact {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 16px;
  align-items: center;
  margin: 0 0 24px;
  padding: 18px 20px;
  border: 1px solid rgba(47, 111, 78, 0.28);
  border-radius: 10px;
  background: linear-gradient(135deg, #f2f8ef, #fff9e8);
}

.local-pacs-contact > svg {
  width: 28px;
  height: 28px;
  padding: 12px;
  box-sizing: content-box;
  border-radius: 50%;
  color: var(--white);
  background: var(--green);
}

.local-pacs-contact span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.local-pacs-contact h3,
.local-pacs-contact p {
  margin: 2px 0 0;
}

.local-pacs-contact a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--white);
  background: var(--green);
  font-weight: 900;
  text-decoration: none;
}

.local-pacs-contact div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* =========================
   PACS PHOTO
========================= */

.pacs-photo {
  width: 110px;
  height: 140px;
  max-width: 110px;
  object-fit: contain;
  object-position: center;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--white);
}

.local-pacs-contact img.pacs-photo {
  width: 110px;
  height: 140px;
  max-width: 110px;
  object-fit: contain;
  object-position: center;
  border-radius: 10px;
  border: 1px solid var(--line);
}

/* =========================
   SCHEME CARDS
========================= */

.scheme-card,
.quick-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--white);
  box-shadow: 0 12px 38px rgba(20, 32, 23, 0.06);
}

.scheme-card {
  display: grid;
  gap: 10px;
  min-height: 250px;
}

.scheme-card span,
.model-strip span {
  width: fit-content;
  border-radius: 8px;
  padding: 6px 9px;
  color: var(--green-dark);
  background: #e5f4df;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.scheme-card p,
.quick-list p,
.model-strip p {
  color: var(--muted);
}

.scheme-card a {
  width: fit-content;
  margin-top: auto;
  color: var(--green);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.featured-card {
  color: var(--white);
  background: var(--green-dark);
}

.featured-card span {
  color: #133017;
  background: #dbf2d4;
}

.featured-card p,
.featured-card a {
  color: #eaf6e5;
}

/* =========================
   MODEL STRIP
========================= */

.model-strip {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  color: var(--ink);
  background: #eef8ea;
  border-color: var(--line);
}

.model-strip div {
  display: grid;
  gap: 10px;
}

.model-strip strong {
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.14;
}

/* =========================
   MAKHANA
========================= */

.makhana-section {
  background: linear-gradient(180deg, #f8faf4 0%, #eff8ec 100%);
}

.makhana-hero-card,
.district-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 38px rgba(20, 32, 23, 0.06);
}

.makhana-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
  padding: 24px;
}

.makhana-hero-card span {
  display: inline-grid;
  width: fit-content;
  margin-bottom: 10px;
  border-radius: 8px;
  padding: 6px 9px;
  color: var(--green-dark);
  background: #e5f4df;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.makhana-hero-card p,
.district-panel p {
  color: var(--muted);
}

.district-panel {
  margin-bottom: 24px;
  padding: 24px;
}

.district-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}

.district-tags span {
  border: 1px solid #cfe0c8;
  border-radius: 8px;
  padding: 7px 10px;
  color: #38523b;
  background: #f5fbf1;
  font-size: 14px;
  font-weight: 800;
}

/* =========================
   SECTIONS
========================= */

.section {
  padding: clamp(58px, 8vw, 100px) clamp(18px, 5vw, 72px);
}

.muted-band {
  background: var(--soft);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.compact-heading {
  margin-bottom: 22px;
}

/* =========================
   SEASON / DAIRY
========================= */

.season-grid,
.dairy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.season-card,
.guide-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 38px rgba(20, 32, 23, 0.06);
}

.season-card {
  min-height: 210px;
  padding: 24px;
}

.season-card span {
  display: inline-grid;
  width: fit-content;
  margin-bottom: 26px;
  border-radius: 8px;
  padding: 7px 10px;
  color: var(--green-dark);
  background: #e5f4df;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.season-card p,
.guide-card li {
  color: var(--muted);
}

/* =========================
   CROP PHOTOS
========================= */

.crop-photo-panel {
  margin: 30px 0 34px;
}

.crop-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.crop-photo-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 38px rgba(20, 32, 23, 0.06);
}

.crop-photo-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--soft);
}

.crop-photo-card div {
  padding: 16px;
}

.crop-photo-card span {
  display: inline-flex;
  margin-bottom: 10px;
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--green-dark);
  background: #e5f4df;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.crop-photo-card h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.crop-photo-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

/* =========================
   SERVICES
========================= */

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-card,
.link-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 38px rgba(20, 32, 23, 0.06);
}

.service-card {
  min-height: 255px;
  padding: 24px;
}

.service-card p,
.link-card p,
.site-footer span {
  color: var(--muted);
}

.card-icon {
  display: inline-grid;
  min-width: 42px;
  height: 34px;
  place-items: center;
  margin-bottom: 44px;
  border-radius: 8px;
  color: var(--green-dark);
  background: #dff0d6;
  font-weight: 900;
}

/* =========================
   TABLES
========================= */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 44px rgba(20, 32, 23, 0.07);
}

.roomy-table {
  margin-top: 18px;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.disease-table table {
  min-width: 1160px;
}

.subsidy-table {
  margin-bottom: 24px;
}

.subsidy-table table {
  min-width: 880px;
}

th,
td {
  padding: 17px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--white);
  background: var(--navy);
  font-size: 14px;
  text-transform: uppercase;
}

tbody tr:last-child td {
  border-bottom: 0;
}

td:first-child {
  color: var(--green-dark);
  font-weight: 850;
}

/* =========================
   LINKS
========================= */

.link-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 24px;
  max-width: none;
  align-items: end;
}

.search-box {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

input {
  width: 100%;
  border: 1px solid #cfdcc8;
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fbfcfb;
  font: inherit;
}

input:focus {
  border-color: var(--green);
  outline: 3px solid rgba(30, 122, 58, 0.14);
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.link-card {
  display: grid;
  gap: 10px;
  min-height: 232px;
  padding: 22px;
}

.link-card span {
  width: fit-content;
  border-radius: 8px;
  padding: 6px 9px;
  color: var(--green-dark);
  background: #e5f4df;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.link-card a {
  width: fit-content;
  margin-top: auto;
  color: var(--green);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.link-card.is-hidden,
.state-list a.is-hidden {
  display: none;
}

.compact-links {
  margin-top: 18px;
}

/* =========================
   GUIDE CARDS
========================= */

.guide-card {
  min-height: 320px;
  padding: 24px;
}

.guide-card ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 20px;
}

.guide-card li::marker {
  color: var(--green);
}

/* =========================
   STATE LIST
========================= */

.state-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.state-list a {
  display: grid;
  gap: 10px;
  min-height: 130px;
  align-content: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.state-list strong {
  font-size: 18px;
}

.state-list span {
  color: var(--green);
  font-weight: 850;
  overflow-wrap: anywhere;
}

.bihar-links {
  grid-template-columns: repeat(4, 1fr);
}

/* =========================
   FOOTER
========================= */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: var(--white);
}

.site-footer p {
  margin: 0;
  font-weight: 900;
}

/* =========================
   ICONS
========================= */

svg.lucide {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.nav-links a,
.official-links a,
button,
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* =========================
   TABLET
========================= */

@media (max-width: 1080px) {
  .nav-links {
    gap: 14px;
    font-size: 14px;
  }

  .hero,
  .link-heading {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    order: -1;
  }

  .service-grid,
  .crop-photo-grid,
  .link-grid,
  .state-list,
  .season-grid,
  .dairy-grid,
  .bihar-links,
  .scheme-grid,
  .quick-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .model-strip {
    grid-template-columns: 1fr;
  }

  .makhana-hero-card {
    grid-template-columns: 1fr;
  }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 780px) {
  .site-logo {
    width: 52px;
    height: 52px;
    padding: 3px;
  }

  .local-pacs-contact {
    grid-template-columns: 48px 1fr;
    padding: 16px;
  }

  .local-pacs-contact > svg {
    width: 24px;
    height: 24px;
    padding: 10px;
  }

  .local-pacs-contact a {
    grid-column: 1 / -1;
    justify-content: center;
    width: 100%;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 79px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 20px 50px rgba(20, 32, 23, 0.16);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 13px 12px;
    min-height: 46px;
    gap: 10px;
  }

  .nav-links svg,
  .menu-toggle svg,
  button svg,
  .btn svg {
    width: 20px;
    height: 20px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  h1 {
    font-size: 40px;
  }

  .stats,
  .service-grid,
  .crop-photo-grid,
  .link-grid,
  .state-list,
  .season-grid,
  .dairy-grid,
  .bihar-links,
  .scheme-grid,
  .quick-list {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .btn {
    justify-content: center;
  }
}

/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 600px) {
  .pacs-photo,
  .local-pacs-contact img.pacs-photo {
    width: 90px;
    height: 115px;
    max-width: 90px;
  }

  .local-pacs-contact div {
    align-items: center;
    text-align: center;
  }

  .local-pacs-contact a {
    margin-top: 10px;
    width: 100%;
    justify-content: center;
  }
}
