/*
 * Bonyad homepage v3.3.3 prototype CSS
 * Loaded only on page-templates/bonyad-home-v333-prototype.php
 */

:root {
  --bonyad-ink: #151515;
  --bonyad-muted: #606060;
  --bonyad-soft: #f6f3ed;
  --bonyad-paper: #ffffff;
  --bonyad-red: #e8325b;
  --bonyad-red-dark: #b9153c;
  --bonyad-gold: #c69a42;
  --bonyad-border: rgba(21, 21, 21, 0.12);
  --bonyad-dark: #141414;
  --bonyad-dark-soft: #202020;
  --bonyad-radius: 24px;
  --bonyad-shadow: 0 24px 70px rgba(0, 0, 0, 0.08);
}

body.page-template-bonyad-home-v333-prototype,
body.page-template-page-templatesbonyad-home-v333-prototype-php {
  background: var(--bonyad-paper);
}

body.page-template-bonyad-home-v333-prototype #content .ast-container,
body.page-template-page-templatesbonyad-home-v333-prototype-php #content .ast-container,
body.page-id-9966 #content .ast-container {
  max-width: none;
  padding: 0;
  display: block;
}

body.page-id-9966 .entry-content {
  margin: 0;
}

body.page-id-9966 .entry-content > * {
  max-width: none;
}

body.page-id-9966 .site-content {
  overflow-x: hidden;
}

.bonyad-home-v333,
.home-v333-hero,
.home-v333-trust,
.home-v333-paths,
.home-v333-courses,
.home-v333-evidence,
.home-v333-china-studies,
.home-v333-lifecycle,
.home-v333-community,
.home-v333-founder,
.home-v333-latest,
.home-v333-newsletter,
.home-v333-relationship {
  direction: rtl;
  text-align: right;
  box-sizing: border-box;
}

.bonyad-home-v333 *,
.home-v333-hero *,
.home-v333-trust *,
.home-v333-paths *,
.home-v333-courses *,
.home-v333-evidence *,
.home-v333-china-studies *,
.home-v333-lifecycle *,
.home-v333-community *,
.home-v333-founder *,
.home-v333-latest *,
.home-v333-newsletter *,
.home-v333-relationship * {
  box-sizing: border-box;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.section,
.hero {
  padding: 84px 0;
}

.section.soft,
.home-v333-paths,
.home-v333-evidence,
.home-v333-community {
  background: var(--bonyad-soft);
}

.section.dark,
.home-v333-lifecycle {
  background: var(--bonyad-dark);
  color: #fff;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--bonyad-red);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0;
}

h1,
h2,
h3 {
  color: inherit;
  line-height: 1.55;
}

.hero {
  background:
    radial-gradient(circle at 15% 10%, rgba(232, 50, 91, 0.12), transparent 35%),
    linear-gradient(135deg, #ffffff 0%, #f7f2eb 100%);
  border-bottom: 1px solid var(--bonyad-border);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  gap: 42px;
  align-items: center;
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(32px, 4.6vw, 62px);
  font-weight: 900;
  color: var(--bonyad-ink);
}

.lead {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--bonyad-muted);
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 2.1;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn,
.actions a,
.unit a,
.course a,
.evidence-card a,
.community-card a,
.content a,
.founder-links a,
.relationship a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.4;
}

.btn.primary,
.actions .primary,
.newsletter button {
  background: var(--bonyad-red);
  color: #fff;
  border: 1px solid var(--bonyad-red);
}

.btn.secondary,
.actions .secondary {
  background: #fff;
  color: var(--bonyad-red-dark);
  border: 1px solid rgba(232, 50, 91, 0.26);
}

.journey {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--bonyad-border);
  border-radius: var(--bonyad-radius);
  box-shadow: var(--bonyad-shadow);
  padding: 20px;
}

.journey-head {
  margin-bottom: 14px;
}

.journey-head strong {
  display: block;
  color: var(--bonyad-ink);
  font-size: 20px;
}

.journey-head span {
  display: block;
  margin-top: 4px;
  color: var(--bonyad-muted);
}

.journey a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  color: var(--bonyad-ink);
  text-decoration: none;
  border-top: 1px solid var(--bonyad-border);
}

.journey b {
  color: var(--bonyad-red);
}

.journey em {
  color: var(--bonyad-red);
  font-style: normal;
}

.trust {
  padding: 28px 0;
  background: var(--bonyad-dark);
  color: #fff;
}

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

.trust article,
.unit,
.course,
.evidence-card,
.topic,
.community-card,
.content,
.founder-copy {
  border: 1px solid var(--bonyad-border);
  border-radius: var(--bonyad-radius);
  background: #fff;
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.055);
}

.trust article {
  background: var(--bonyad-dark-soft);
  border-color: rgba(255, 255, 255, 0.12);
  padding: 18px;
}

.trust strong,
.trust span {
  display: block;
}

.trust span {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.55fr);
  gap: 34px;
  align-items: end;
  margin-bottom: 34px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 900;
  color: var(--bonyad-ink);
}

.dark .section-head h2,
.home-v333-lifecycle .section-head h2 {
  color: #fff;
}

.section-head p {
  margin: 0;
  color: var(--bonyad-muted);
  line-height: 2;
}

.dark .section-head p,
.home-v333-lifecycle .section-head p {
  color: rgba(255, 255, 255, 0.72);
}

.unit-grid,
.course-grid,
.evidence-grid,
.community-grid,
.latest-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.course-grid,
.evidence-grid,
.latest-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.unit,
.course-body,
.evidence-card,
.community-card,
.content-body,
.founder-copy {
  padding: 26px;
}

.unit h3,
.course h3,
.evidence-card h3,
.community-card h3,
.content h3,
.founder-copy h2 {
  margin: 0 0 12px;
  color: var(--bonyad-ink);
  font-size: 24px;
  font-weight: 900;
}

.unit p,
.course p,
.evidence-card p,
.community-card p,
.content p,
.founder-copy p {
  color: var(--bonyad-muted);
  line-height: 2;
}

.unit a,
.course a,
.evidence-card a,
.community-card a,
.content a,
.founder-links a,
.relationship a {
  color: var(--bonyad-red);
  padding-inline: 0;
}

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

.topic {
  display: block;
  padding: 24px;
  color: var(--bonyad-ink);
  text-decoration: none;
}

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

.topic small {
  margin-top: 8px;
  color: var(--bonyad-muted);
  line-height: 1.9;
}

.lifecycle {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.step {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.step b,
.step span {
  display: block;
}

.step b {
  color: var(--bonyad-gold);
  font-size: 22px;
}

.founder-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr);
}

.founder-section {
  background: linear-gradient(135deg, #fff, #f7f2eb);
}

.founder-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.relationship {
  padding: 28px 0;
  background: var(--bonyad-dark);
  color: #fff;
}

.relationship .container {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
}

.relationship p {
  margin: 0;
  line-height: 2;
}

.newsletter {
  padding: 58px 0;
  background: var(--bonyad-red);
  color: #fff;
}

.newsletter .container {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(320px, 0.65fr);
  gap: 28px;
  align-items: center;
}

.newsletter h2 {
  color: #fff;
  margin: 6px 0 0;
}

.newsletter form {
  display: grid;
  gap: 10px;
}

.newsletter input[type="email"] {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
}

.newsletter label {
  color: rgba(255, 255, 255, 0.9);
}

.newsletter button {
  cursor: pointer;
  background: var(--bonyad-dark);
  border-color: var(--bonyad-dark);
  border-radius: 999px;
  min-height: 48px;
  padding: 0 22px;
  font-weight: 900;
}

@media (max-width: 980px) {
  .hero-grid,
  .section-head,
  .newsletter .container,
  .relationship .container {
    grid-template-columns: 1fr;
  }

  .trust-grid,
  .course-grid,
  .evidence-grid,
  .topic-grid,
  .lifecycle,
  .latest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .relationship .container {
    display: grid;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .section,
  .hero {
    padding: 54px 0;
  }

  .trust-grid,
  .unit-grid,
  .course-grid,
  .evidence-grid,
  .topic-grid,
  .community-grid,
  .lifecycle,
  .latest-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 31px;
  }

  .actions,
  .founder-links {
    display: grid;
  }

  .actions a,
  .founder-links a {
    width: 100%;
  }
}
