/* ==========================================================================
   Bhaiapk1 — Public Service / Government Information Theme
   ========================================================================== */

:root {
  --green: #0b6e4f;
  --green-dark: #07533c;
  --green-deep: #06412f;
  --green-tint: #e7f3ee;
  --green-tint-2: #f0f7f4;
  --ink: #1c2a25;
  --ink-soft: #45544d;
  --muted: #6b7a73;
  --line: #dfe8e3;
  --bg: #ffffff;
  --bg-alt: #f5f8f6;
  --white: #ffffff;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(12, 45, 32, 0.06);
  --shadow: 0 6px 22px rgba(12, 45, 32, 0.08);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--green);
  text-decoration: none;
}

a:hover {
  color: var(--green-dark);
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.container--narrow {
  max-width: 860px;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.top-strip {
  background: var(--green-dark);
  color: var(--white);
  font-size: 0.8rem;
  text-align: center;
  padding: 6px 16px;
  letter-spacing: 0.02em;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--green);
  color: var(--white);
  font-weight: 800;
  font-size: 1rem;
}

.brand-text em {
  font-style: normal;
  color: var(--green);
}

.brand-tag {
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 8px 14px;
  border-radius: 8px;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--green-dark);
  background: var(--green-tint-2);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  margin: 4px auto;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Index hero
   -------------------------------------------------------------------------- */
.hero {
  background: linear-gradient(135deg, var(--green-deep) 0%, var(--green) 55%, #128a63 100%);
  color: var(--white);
  padding: 72px 0 64px;
}

.hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #eafff6;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 20ch;
}

.hero p {
  margin-top: 16px;
  font-size: 1.06rem;
  color: #dff2ea;
  max-width: 62ch;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 9px;
  transition: background 0.15s ease, transform 0.05s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn--solid {
  background: var(--white);
  color: var(--green-deep);
}

.btn--solid:hover {
  background: #f0faf5;
  color: var(--green-deep);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section {
  padding: 56px 0;
}

.section--alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  margin-bottom: 28px;
}

.section-kicker {
  color: var(--green);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-title {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.section-sub {
  color: var(--muted);
  margin-top: 6px;
  max-width: 64ch;
}

/* --------------------------------------------------------------------------
   Post grid / cards
   -------------------------------------------------------------------------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.post-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.post-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.post-card-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--green-tint-2);
}

.post-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.post-card-date {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.post-card-title {
  font-size: 1.06rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.post-card-title a {
  color: var(--ink);
}

.post-card-title a:hover {
  color: var(--green-dark);
}

.post-card-excerpt {
  font-size: 0.9rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-link {
  margin-top: auto;
  font-weight: 700;
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   Article page
   -------------------------------------------------------------------------- */
.page-wrap {
  background: var(--white);
}

.breadcrumb {
  padding: 18px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--green-dark);
}

.post {
  padding: 28px 0 64px;
}

.post-header {
  margin-bottom: 22px;
}

.post-header h1 {
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--muted);
}

.post-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-weight: 600;
}

.post-author {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dot {
  color: var(--line);
}

.post-hero {
  margin: 0 0 28px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.post-hero img {
  width: 100%;
  height: auto;
}

.post-content {
  font-size: 1.02rem;
  color: var(--ink);
}

.post-content h2 {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 34px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--green-tint);
}

.post-content h3 {
  font-size: 1.14rem;
  font-weight: 700;
  color: var(--green-dark);
  margin: 26px 0 10px;
}

.post-content p {
  margin: 0 0 16px;
}

.post-content ul,
.post-content ol {
  margin: 0 0 18px;
  padding-left: 24px;
}

.post-content li {
  margin-bottom: 8px;
}

.post-content li::marker {
  color: var(--green);
}

.post-content a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.post-content strong {
  font-weight: 700;
  color: var(--ink);
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.95rem;
}

.post-content th,
.post-content td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
}

.post-content th {
  background: var(--green-tint-2);
  color: var(--green-dark);
  font-weight: 700;
}

.post-footer {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.post-footer .note {
  font-size: 0.85rem;
  color: var(--muted);
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--white);
  background: var(--green);
  padding: 11px 20px;
  border-radius: 9px;
}

.btn-back:hover {
  background: var(--green-dark);
  color: var(--white);
}

/* --------------------------------------------------------------------------
   About / footer
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.about-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.about-card .ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--green-tint);
  color: var(--green-dark);
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.about-card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.about-card p {
  font-size: 0.9rem;
  color: var(--muted);
}

.site-footer {
  background: var(--green-deep);
  color: #cfe6dd;
  padding: 48px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 34px;
}

.footer-brand .brand {
  color: var(--white);
}

.footer-brand .brand:hover {
  color: var(--white);
}

.footer-brand p {
  margin-top: 12px;
  font-size: 0.9rem;
  color: #b9d5ca;
  max-width: 40ch;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 9px;
}

.footer-col a {
  color: #cfe6dd;
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 0;
  font-size: 0.84rem;
  color: #a9c9bd;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .main-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 8px 16px 14px;
    gap: 2px;
    display: none;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 12px 10px;
    border-radius: 8px;
  }

  .nav-toggle {
    display: block;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 48px 0 44px;
  }
}
