:root {
  /* DIDAR logo palette */
  --teal: #085064;
  --teal-dark: #03384b;
  --teal-soft: #e8f2f3;

  --orange: #ee9521;
  --orange-dark: #c96e14;
  --orange-soft: #fff2df;

  --green: #2f6f3d;
  --green-soft: #edf5eb;

  --red: #df642d;
  --purple: #8b4aa5;

  --cream: #f7f1e8;
  --cream-light: #fcfaf6;
  --paper: #ffffff;

  --ink: #17313a;
  --text: #44535a;
  --muted: #6b777c;
  --line: #dce5e4;

  --shadow: 0 14px 40px rgba(3, 56, 75, .08);
  --shadow-hover: 0 18px 45px rgba(3, 56, 75, .13);

  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 95px;
}

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.7;
}

img {
  max-width: 100%;
}

a {
  color: var(--teal);
}

.container {
  width: min(calc(100% - 36px), var(--max));
  margin: 0 auto;
}

.narrow {
  max-width: 820px;
}

/* -------------------------
   Header
------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid rgba(8, 80, 100, .12);
  backdrop-filter: blur(12px);
}

.nav-wrap {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--teal-dark);
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  letter-spacing: .08em;
  color: var(--teal-dark);
}

.nav-area {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 9px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: .92rem;
  font-weight: 650;
  transition: color .2s ease;
}

nav a:hover {
  color: var(--orange-dark);
}

.languages {
  gap: 7px;
}

.languages a {
  min-width: 34px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-align: center;
  font-size: .75rem;
  color: var(--muted);
  background: var(--paper);
}

.languages a:hover,
.languages a[aria-current="page"] {
  color: #fff;
  border-color: var(--teal);
  background: var(--teal);
}

/* -------------------------
   Hero
------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 82px;
  background:
    radial-gradient(circle at 88% 16%, rgba(238,149,33,.16), transparent 22%),
    radial-gradient(circle at 12% 90%, rgba(47,111,61,.09), transparent 28%),
    linear-gradient(145deg, var(--cream-light), #fff 58%, var(--teal-soft));
}

.hero::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -180px;
  bottom: -215px;
  border: 32px solid rgba(8,80,100,.04);
  border-radius: 50%;
  pointer-events: none;
}



.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(420px, 1fr);
  gap: 45px;
  align-items: center;
}

.acronym {
  white-space: nowrap;
  font-size: 0.95rem;
}

h1,
h2,
h3 {
  line-height: 1.14;
  margin-top: 0;
  color: var(--teal-dark);
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
}

h1 {
  font-size: clamp(2.7rem, 5.6vw, 4.85rem);
  max-width: 860px;
  margin-bottom: 24px;
  letter-spacing: -.035em;
}

h2 {
  font-size: clamp(2rem, 3.7vw, 3rem);
  margin-bottom: 24px;
  letter-spacing: -.025em;
}

h3 {
  font-size: 1.18rem;
  margin-bottom: 10px;
}

.lead {
  font-size: 1.17rem;
  color: var(--text);
  max-width: 760px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--orange-dark);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .76rem;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--orange);
}

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

.button {
  display: inline-block;
  padding: 13px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 750;
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    background .18s ease;
}

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

.primary {
  background: var(--teal);
  color: white;
  box-shadow: 0 8px 22px rgba(8,80,100,.18);
}

.primary:hover {
  background: var(--teal-dark);
}

.secondary {
  border: 1px solid rgba(8,80,100,.22);
  color: var(--teal-dark);
  background: rgba(255,255,255,.8);
}

.secondary:hover {
  background: #fff;
  box-shadow: 0 8px 22px rgba(8,80,100,.09);
}

.meaning-card {
  position: relative;
  border: 1px solid rgba(8,80,100,.13);
  border-radius: 28px;
  padding: 30px 28px;
  background: rgba(255,255,255,.9);
  box-shadow: var(--shadow);
}

.meaning-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(var(--orange), var(--green), var(--teal));
  border-radius: 28px 0 0 28px;
}


.meaning-card h2 {
  font-family: inherit;
  font-size: 1.55rem;
  margin-bottom: 14px;
}

.persian {
  display: block;
  margin-bottom: 12px;
  color: var(--teal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.5rem;
  line-height: 1;
}

.acronym {
  color: var(--muted);
}

.acronym b {
  color: var(--orange-dark);
}

/* -------------------------
   Sections
------------------------- */

.section {
  padding: 82px 0;
}

.alt {
  background: var(--cream-light);
}

.section-intro {
  color: var(--text);
  font-size: 1.08rem;
}

/* -------------------------
   Support cards
------------------------- */

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

.support-cards {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 4px 16px rgba(3,56,75,.035);
  transition:
    transform .2s ease,
    box-shadow .2s ease,
    border-color .2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(8,80,100,.27);
  box-shadow: var(--shadow);
}

.card p,
.project p {
  color: var(--text);
  margin-bottom: 0;
}

.card-kicker {
  display: block;
  margin-bottom: 14px;
  color: var(--orange);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 700;
}

/* -------------------------
   Disclaimer / note
------------------------- */

.note {
  margin-top: 28px;
  padding: 18px 20px;
  border: 1px solid #ecd8bb;
  border-left: 5px solid var(--orange);
  border-radius: 0 14px 14px 0;
  background: var(--orange-soft);
  color: #5b5148;
}

.note strong {
  color: var(--teal-dark);
}

/* -------------------------
   Community tags
------------------------- */

.community-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 28px;
}

.community-tags span {
  padding: 10px 16px;
  border: 1px solid rgba(8,80,100,.18);
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: .94rem;
  font-weight: 650;
}

/* -------------------------
   Programs
------------------------- */

.project-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.project {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  background: white;
  box-shadow: 0 4px 18px rgba(3,56,75,.035);
  transition:
    transform .2s ease,
    box-shadow .2s ease;
}

.project:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.project::after {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 0;
  height: 4px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, var(--teal), var(--green), var(--orange));
}

.project-tag {
  display: inline-block;
  margin-bottom: 16px;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: .76rem;
  font-weight: 750;
}

/* -------------------------
   Three DIDAR pillars
------------------------- */

.pillars-section {
  background:
    radial-gradient(circle at top left, rgba(238,149,33,.08), transparent 28%),
    linear-gradient(180deg, #fff, var(--cream-light));
}

.pillars-heading {
  max-width: 760px;
  margin-bottom: 38px;
}

.pillars-heading > p:last-child {
  color: var(--text);
  font-size: 1.08rem;
}

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

.pillar-card {
  position: relative;
  text-align: center;
  padding: 28px 25px 30px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: white;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.pillar-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
}

.risheh-card::before {
  background: linear-gradient(90deg, #9b5c1a, var(--orange));
}

.rouyesh-card::before {
  background: linear-gradient(90deg, var(--green), var(--orange));
}

.peyvand-card::before {
  background: linear-gradient(90deg, var(--teal), var(--purple), var(--orange));
}

.pillar-logo {
  display: block;
  width: 116px;
  height: 116px;
  max-width: 116px;
  max-height: 116px;
  object-fit: contain;
  margin: 2px auto 16px;
  filter: drop-shadow(0 5px 8px rgba(3,56,75,.10));
}

.pillar-persian {
  display: block;
  margin-bottom: 2px;
  color: var(--orange-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.pillar-card h3 {
  margin-bottom: 7px;
  color: var(--teal-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
}

.pillar-keywords {
  margin-top: 0;
  color: var(--green) !important;
  font-size: .83rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .045em;
}

/* -------------------------
   Contact + footer
------------------------- */

.contact {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 20%, rgba(238,149,33,.16), transparent 22%),
    var(--teal-dark);
  color: white;
}

.contact h2 {
  color: white;
}

.contact .eyebrow {
  color: #ffd89f;
}

.contact .eyebrow::before {
  background: var(--orange);
}

.contact a {
  color: white;
}

.contact-box {
  margin-top: 24px;
  padding: 23px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  background: rgba(255,255,255,.07);
}

footer {
  padding: 28px 0;
  background: #022d3b;
  color: #dce7e9;
  font-size: .9rem;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

/* -------------------------
   Responsive
------------------------- */

@media (max-width: 920px) {
  .nav-wrap {
    padding: 13px 0;
    align-items: center;
  }

  .main-nav {
    display: none;
  }

  .nav-area {
    flex-direction: row;
    align-items: center;
  }

  .hero {
    padding-top: 62px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .meaning-card {
    max-width: 620px;
  }

  .cards,
  .support-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-list {
    grid-template-columns: 1fr;
  }

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

  .pillar-card {
    max-width: 680px;
    width: 100%;
    margin: 0 auto;
  }
}

/* =========================================
   DIDAR Story Preview
   ========================================= */

.story-preview {
  background:
    radial-gradient(circle at 90% 20%, rgba(238,149,33,.10), transparent 25%),
    var(--teal-soft);
}

.story-preview .narrow {
  position: relative;
}

.story-lead {
  font-size: 1.13rem;
  color: var(--text);
}

.story-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--teal-dark);
  text-decoration: none;
  font-weight: 800;
  border-bottom: 2px solid var(--orange);
  padding-bottom: 3px;
}

.story-link:hover {
  color: var(--orange-dark);
}


/* =========================================
   Experience Behind DIDAR
   ========================================= */

.experience-section {
  background: white;
}

.experience-intro {
  max-width: 800px;
  margin-bottom: 34px;
}

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

.experience-item {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--cream-light);
}

.experience-item::before {
  content: "";
  display: block;
  width: 38px;
  height: 4px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--teal),
    var(--green),
    var(--orange)
  );
}

.experience-item h3 {
  color: var(--teal-dark);
}

.experience-item p {
  color: var(--text);
  margin-bottom: 0;
}

.experience-more {
  margin-top: 28px;
}

@media (max-width: 920px) {
  .experience-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .experience-grid {
    grid-template-columns: 1fr;
  }
}


.community-focus {
  margin-top: 24px;
  padding: 18px 20px;
  border-left: 4px solid var(--orange);
  border-radius: 0 14px 14px 0;
  background: var(--cream-light);
  color: var(--text);
}

/* =========================================
   SABZ — cross-cutting environmental commitment
   ========================================= */

.sabz-block {
  margin-top: 40px;
  padding: 28px 30px;
  border: 1px solid rgba(47,111,61,.22);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(47,111,61,.12), transparent 35%),
    var(--green-soft);
}

.sabz-label {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--green);
  color: white;
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.sabz-content {
  display: grid;
  grid-template-columns: 1.5fr .7fr;
  gap: 35px;
  align-items: center;
}

.sabz-content h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  color: var(--green);
}

.sabz-content p {
  color: var(--text);
}

.sabz-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.sabz-actions span {
  padding: 8px 13px;
  border-radius: 999px;
  background: white;
  border: 1px solid rgba(47,111,61,.22);
  color: var(--green);
  font-size: .88rem;
  font-weight: 700;
}

@media (max-width: 720px) {
  .sabz-content {
    grid-template-columns: 1fr;
  }
}


/* =========================================
   Guiding Values
   ========================================= */

.values-section {
  background: white;
}

.values-intro {
  max-width: 800px;
  margin-bottom: 34px;
}

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

.value-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--cream-light);
}

.value-card::before {
  content: "";
  display: block;
  width: 34px;
  height: 4px;
  margin-bottom: 17px;
  border-radius: 999px;
  background: var(--teal);
}

.value-card h3 {
  color: var(--teal-dark);
}

.value-card p {
  margin-bottom: 0;
  color: var(--text);
}

.value-reciprocity::before {
  background: var(--green);
}

.value-reciprocity h3 {
  color: var(--green);
}

.value-environment::before {
  background: var(--green);
}

.values-closing {
  margin-top: 42px;
  text-align: center;
}

.values-mantra {
  margin-bottom: 10px;
  color: var(--purple);
  font-weight: 800;
  font-size: 1.08rem;
}

.values-quote {
  margin: 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
}


/* Latest activities preview */

.latest-activities {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.latest-activity {
  background: #fff;
  border: 1px solid rgba(23, 50, 77, 0.10);
  border-radius: 16px;
  padding: 1.25rem;
  text-align: right;
}

.latest-activity-date {
  font-size: .88rem;
  font-weight: 700;
  color: var(--teal, #2D6F6D);
  margin-bottom: .5rem;
}

.latest-activity h3 {
  margin: 0 0 .5rem;
}

.latest-activity p {
  margin: .4rem 0 0;
}

.latest-activity-meta {
  font-size: .9rem;
  opacity: .8;
}

@media (max-width: 900px) {
  .latest-activities {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
}


html[lang="fa"] .support-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

html[lang="fa"] .support-item {
  background: #fff;
  border: 1px solid rgba(23, 50, 77, 0.10);
  border-radius: 16px;
  padding: 1.25rem 1.4rem;
  text-align: right;
}

html[lang="fa"] .support-item h3 {
  margin-top: 0;
  margin-bottom: .6rem;
}

html[lang="fa"] .support-item-wide {
  grid-column: 1 / -1;
}

@media (max-width: 760px) {
  html[lang="fa"] .support-list {
    grid-template-columns: 1fr;
  }

  html[lang="fa"] .support-item-wide {
    grid-column: auto;
  }
}


/* =========================================
   French hero layout fix
   ========================================= */

html[lang="fr"] .hero .container {
  width: min(calc(100% - 36px), 1240px);
}

html[lang="fr"] .hero-grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(430px, .9fr);
  gap: 56px;
  align-items: center;
}

/* Prevent text from overflowing its grid column */
html[lang="fr"] .hero-grid > * {
  min-width: 0;
}

html[lang="fr"] .hero h1 {
  font-size: clamp(2.7rem, 4.5vw, 4.25rem);
  max-width: 760px;
  text-wrap: balance;
}

html[lang="fr"] .meaning-card {
  width: 100%;
  max-width: 465px;
  justify-self: end;
}

html[lang="fr"] .acronym {
  white-space: nowrap;
  font-size: .88rem;
}

/* Story preview on homepage */

.story-preview {
  background:
    radial-gradient(circle at 90% 20%, rgba(238,149,33,.10), transparent 25%),
    var(--teal-soft);
}

.story-lead {
  font-size: 1.13rem;
  color: var(--text);
}

.story-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--teal-dark);
  text-decoration: none;
  font-weight: 800;
  border-bottom: 2px solid var(--orange);
  padding-bottom: 3px;
}

.story-link:hover {
  color: var(--orange-dark);
}
/* Stack earlier when there is not enough horizontal space */
@media (max-width: 1100px) {

  html[lang="fr"] .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  html[lang="fr"] .meaning-card {
    max-width: 620px;
    justify-self: start;
  }

  html[lang="fr"] .acronym {
    white-space: normal;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(calc(100% - 26px), var(--max));
  }

  .nav-wrap {
    min-height: 70px;
  }

  .brand-logo {
    width: 50px;
    height: 50px;
  }

  .brand strong {
    font-size: 1.05rem;
  }

  .languages {
    gap: 5px;
  }

  .languages a {
    padding: 4px 7px;
    min-width: 31px;
  }

  .hero {
    padding: 54px 0 58px;
  }

  h1 {
    font-size: clamp(2.35rem, 12vw, 3.2rem);
  }

  h2 {
    font-size: 2rem;
  }

  .section {
    padding: 60px 0;
  }

  .cards,
  .support-cards {
    grid-template-columns: 1fr;
  }

  .pillar-logo {
    width: 100px;
    height: 100px;
    max-width: 100px;
    max-height: 100px;
  }

  .footer-wrap {
    flex-direction: column;
    gap: 4px;
  }
}
