/*
Theme Name: Yuva Sathi
Theme URI: https://yuvasathiapp.com
Author: Yuva Sathi
Author URI: https://yuvasathiapp.com
Description: An editorial guide to the West Bengal Yuva Sathi allowance. Explains eligibility, payment, and status in plain language, and sends visitors to the official portal.
Version: 1.1.1
Requires at least: 5.5
Tested up to: 6.7
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yuvasathi
Tags: custom-menu, custom-logo, featured-images, translation-ready, blog, one-column
*/

:root {
  --paper: #f3efe6;
  --sheet: #fffdf8;
  --ink: #1c1915;
  --ink-soft: #4a453c;
  --muted: #6f685c;
  --line: rgba(28, 25, 21, 0.12);
  --green: #1c4634;
  --green-2: #245c43;
  --green-soft: #e5f0ea;
  --gold: #b7791f;
  --gold-deep: #8d5e12;
  --gold-soft: #f8efd8;
  --shadow: 0 22px 50px rgba(28, 25, 21, 0.08);
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --serif: Fraunces, "Iowan Old Style", Palatino, Georgia, serif;
  --max: 1120px;
  --radius: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(1100px 480px at 8% -10%, rgba(199, 162, 84, 0.18), transparent 55%),
    radial-gradient(800px 420px at 100% 0%, rgba(28, 70, 52, 0.08), transparent 46%),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: var(--green-2);
}

::selection {
  background: #d7eadf;
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 100;
  background: var(--green);
  color: #f4f0e6;
  padding: 8px 12px;
  border-radius: 8px;
}

.skip-link:focus {
  top: 12px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

.wrap.narrow {
  width: min(760px, calc(100% - 32px));
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.site-top {
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header {
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(28, 25, 21, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}

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

.brand-name {
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  color: #f6f1e6;
  text-decoration: none;
}

.custom-logo-link {
  display: inline-flex;
  line-height: 0;
}

.custom-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--green);
  color: #f6f1e6;
  font-family: var(--serif);
  font-weight: 650;
  letter-spacing: -0.03em;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 560;
  letter-spacing: -0.03em;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--sheet);
  padding: 0;
  align-items: center;
  justify-content: center;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.primary-nav .menu,
.footer-menu {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav a,
.footer-menu a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a,
.footer-menu .current-menu-item > a {
  color: var(--green);
}

.primary-nav .sub-menu {
  display: none;
}

.announce {
  background: var(--green);
  color: #f4f0e6;
}

.announce-inner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  font-size: 0.95rem;
}

.announce p {
  margin: 0;
}

.live-dot {
  width: 8px;
  height: 8px;
  margin-top: 0.45em;
  border-radius: 50%;
  background: #e7b15a;
  flex: 0 0 auto;
}

.hero {
  padding: 42px 0 8px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title,
.page-hero h1,
.section-title,
.cta-band h2,
.post-card h2,
.entry-content h2,
.entry-content h3 {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.hero-title {
  margin: 12px 0 14px;
  font-size: clamp(2.6rem, 5.2vw, 4.35rem);
}

.hero-title em {
  font-style: italic;
  color: var(--green);
}

.hero-lead,
.section-lead {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.hero-lead {
  max-width: 40rem;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.72);
  font-size: 0.88rem;
  font-weight: 600;
}

.pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-2);
}

.hero-actions,
.stack-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.btn-gold {
  background: linear-gradient(#e0a84a, #b7791f);
  color: #1c1915;
  box-shadow: 0 10px 24px rgba(183, 121, 31, 0.22);
}

.btn-gold:hover,
.btn-gold:focus-visible {
  color: #1c1915;
  filter: brightness(1.05);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(28, 25, 21, 0.18);
  color: var(--ink);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  color: var(--ink);
  background: rgba(255, 253, 248, 0.7);
}

.btn-green {
  background: var(--green);
  color: #f6f1e6;
}

.btn-green:hover,
.btn-green:focus-visible {
  color: #f6f1e6;
  background: var(--green-2);
}

.btn-block {
  width: 100%;
}

.slip {
  background: var(--sheet);
  border-radius: 22px;
  border-top: 6px solid var(--green);
  box-shadow: var(--shadow);
  padding: 22px 22px 18px;
}

.slip-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.slip-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-2);
}

.slip-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-top: 1px dashed rgba(28, 25, 21, 0.16);
  font-size: 0.98rem;
}

.slip-row span {
  color: var(--muted);
}

.slip .btn {
  margin-top: 8px;
}

.slip-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  text-align: center;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 28px 0 8px;
}

.stat {
  background: rgba(255, 253, 248, 0.76);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 16px 14px;
}

.stat strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 560;
  letter-spacing: -0.03em;
  color: var(--green);
}

.stat span {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.jump-wrap {
  padding: 18px 0 6px;
}

.jump {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0;
  padding: 2px 0 8px;
  list-style: none;
}

.jump a {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--sheet);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 650;
}

.jump a:hover,
.jump a:focus-visible {
  border-color: var(--green);
  color: var(--green);
}

.section {
  padding: 26px 0;
}

.kicker {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
}

.section-lead {
  max-width: 44rem;
  margin-bottom: 18px;
}

.section h3 {
  margin: 18px 0 0;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 560;
}

.prose p {
  margin: 0 0 12px;
}

.prose p,
.entry-content p {
  color: var(--ink-soft);
}

.card-grid,
.compare-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.card-grid {
  grid-template-columns: repeat(3, 1fr);
}

.compare-grid {
  grid-template-columns: 1fr 1fr;
}

.card,
.compare-card,
.post-card,
.faq-item,
.form-card {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card,
.compare-card {
  padding: 18px 18px 16px;
}

.card h3,
.compare-card h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 560;
}

.card p,
.compare-card li {
  color: var(--ink-soft);
}

.compare-card ul,
.check-list,
.plain-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.compare-card li,
.check-list li,
.plain-list li {
  position: relative;
  padding: 8px 0 8px 22px;
}

.compare-card li::before,
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-2);
}

.table-wrap {
  overflow-x: auto;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--sheet);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.data-table th,
.data-table td {
  padding: 13px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.data-table th {
  background: var(--green);
  color: #f4f0e6;
  font-weight: 650;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.steps {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 14px 16px 14px 64px;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 14px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--green);
  color: #f4f0e6;
  font-family: var(--serif);
}

.callout {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--gold-soft);
  border-left: 4px solid var(--gold);
}

.callout-green {
  background: var(--green-soft);
  border-left-color: var(--green);
}

.callout p {
  margin: 0;
}

.faq-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.faq-item {
  padding: 0 16px;
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--green);
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  margin: 0;
  padding-bottom: 16px;
}

.cta-band {
  margin: 18px 0 10px;
  padding: 36px 32px;
  border-radius: 28px;
  background:
    radial-gradient(500px 180px at 100% 0%, rgba(224, 168, 74, 0.25), transparent 50%),
    var(--green);
  color: #f6f1e6;
}

.cta-band h2 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.cta-band p {
  margin: 0;
  max-width: 38rem;
  color: #efe7d8;
}

.page-hero {
  padding: 46px 0 8px;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2.2rem, 4.4vw, 3.7rem);
}

.entry-content {
  padding-bottom: 20px;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content a {
  color: var(--green-2);
}

.entry-content img {
  border-radius: 16px;
}

.extra-content {
  padding-bottom: 10px;
}

.post-list {
  display: grid;
  gap: 14px;
  padding-bottom: 10px;
}

.post-card {
  padding: 18px 18px 8px;
}

.post-card h2 {
  margin: 0 0 8px;
  font-size: 1.7rem;
}

.post-card h2 a {
  color: var(--ink);
  text-decoration: none;
}

.post-card h2 a:hover,
.post-card h2 a:focus-visible {
  color: var(--green);
}

.pagination,
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 28px;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: 10px;
  background: var(--sheet);
  color: var(--ink);
  text-decoration: none;
}

.page-numbers.current {
  background: var(--green);
  color: #f6f1e6;
}

.form-card {
  padding: 18px;
  margin-top: 8px;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.field span {
  font-weight: 700;
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
}

.hp {
  position: absolute;
  left: -9999px;
}

.alert {
  padding: 12px 14px;
  border-radius: 12px;
  margin: 0 0 14px;
}

.alert-ok {
  background: var(--green-soft);
}

.alert-bad {
  background: #f8e8e4;
}

.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 18px;
}

.search-form input[type="search"] {
  flex: 1 1 220px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--sheet);
}

.site-footer {
  margin-top: 56px;
  padding: 42px 0 18px;
  background: #14281f;
  color: #e7e1d4;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}

.site-footer h2 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 560;
  color: #f6f1e6;
}

.site-footer p,
.site-footer li {
  color: #d9d2c4;
}

.site-footer a {
  color: #f6f1e6;
}

.footer-menu {
  flex-direction: column;
  gap: 8px;
}

.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid rgba(246, 241, 230, 0.14);
  color: #c9c1b2;
  font-size: 0.92rem;
}

.empty-state {
  padding: 12px 0 28px;
}

@media (max-width: 1100px) {
  .primary-nav .menu {
    gap: 14px;
  }

  .primary-nav a {
    font-size: 0.94rem;
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .card-grid,
  .compare-grid,
  .footer-grid,
  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid,
  .hero-grid,
  .compare-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .primary-nav {
    display: none;
    flex: 1 1 100%;
    padding: 0 0 14px;
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav .menu {
    flex-direction: column;
    gap: 0;
  }

  .primary-nav a {
    display: block;
    padding: 10px 0;
  }
}

@media (max-width: 640px) {
  .stats,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 28px;
  }

  .cta-band {
    padding: 26px 18px;
  }

  .slip-row {
    flex-direction: column;
    gap: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 8px 0 28px;
}

.post-navigation a {
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
}

.comments-area {
  margin-bottom: 28px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--sheet);
}

.comment-form .submit {
  min-height: 46px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: #f6f1e6;
  font-weight: 700;
  cursor: pointer;
}

.narrow h2 {
  margin: 1.5rem 0 0.45rem;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.site-figure {
  margin: 0 0 18px;
}

.site-figure img {
  width: min(100%, 520px);
  height: auto;
  display: block;
  border-radius: 18px;
}

.site-figure-wide {
  margin: 8px 0 22px;
}

.site-figure-wide img {
  width: min(100%, 700px);
}

.site-figure-poster {
  margin-left: auto;
  margin-right: auto;
  max-width: 420px;
}

.site-figure-poster img {
  width: 100%;
}

.site-figure figcaption {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.45;
}

.download-panel,
.email-card {
  margin-top: 8px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--sheet);
}

.email-card p {
  margin: 0;
}

.email-card a {
  font-size: 1.15rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.download-panel .btn {
  margin-top: 8px;
}

@media (max-width: 390px) {
  .brand {
    min-width: 0;
  }

  .hero-title {
    font-size: 2.15rem;
  }

  .wrap {
    width: min(var(--max), calc(100% - 24px));
  }

  .btn {
    width: 100%;
  }

  .hero-actions,
  .stack-actions {
    flex-direction: column;
  }
}
