/*
 * Third block of inner-page styles: אודותינו (people + advisory committee),
 * התכנית, and the long-prose pages (legal + the 2026 article).
 */

/* ============================================================== אודותינו */

#dn-about-intro { background: linear-gradient(180deg, var(--page-panel) 0%, var(--page-bg) 100%); }

#dn-about-intro .dn-about-lead p {
  font-size: var(--t-body);
  line-height: 1.9;
  color: var(--page-fg-muted);
  margin: 22px 0 0;
}

#dn-about-intro .dn-about-logo img {
  display: block;
  width: 100%;
  max-width: 380px;
  height: auto;
  margin-inline: auto;
}

#dn-about-founders { background: var(--page-bg); }

.dn-two-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 40px);
  max-width: 940px;
  margin-inline: auto;
}

/* Shared person card — founders and advisory committee use the same shape. */
.dn-person {
  width: auto !important;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  padding: clamp(26px, 3.5vw, 40px);
  box-shadow: var(--shadow-card);
  text-align: center;
  transition: box-shadow var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease), opacity 0.85s var(--ease);
}

.dn-person:hover {
  box-shadow: var(--shadow-strong);
  transform: translateY(-4px);
}

/* e_optimized_markup is active: no .elementor-widget-container, so the ring
   is painted on the image widget itself. */
.dn-person-photo {
  flex-shrink: 0;
  width: 124px;
  height: 124px;
  padding: 3px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-light));
  margin-bottom: 18px;
  transition: transform var(--dur-slow) var(--ease);
}

.dn-person:hover .dn-person-photo { transform: rotate(-3deg) scale(1.04); }

.dn-person-photo img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #eef4ff;
}

.dn-person-name { margin-bottom: 8px; }

.dn-person-name .elementor-heading-title {
  font-size: var(--t-h3);
  font-weight: 900;
  line-height: 1.15;
  color: var(--page-fg-strong);
}

.dn-person-role .elementor-heading-title {
  font-size: var(--t-small);
  font-weight: 700;
  line-height: 1.5;
  color: var(--page-fg-muted);
}

.dn-person-extra { margin-top: 8px; margin-bottom: 4px; }

.dn-person-extra .elementor-heading-title {
  display: inline-block;
  background: rgba(41, 128, 242, 0.08);
  color: var(--brand-primary);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.4;
  padding: 5px 14px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(41, 128, 242, 0.16);
}

.dn-person-bio { margin-top: 16px; }

.dn-person-bio p {
  font-size: var(--t-micro);
  line-height: 1.8;
  color: var(--page-fg-muted);
  margin: 0;
}

#dn-about-committee { background: var(--page-panel); }

#dn-about-committee .dn-committee-blob {
  top: 6%;
  inset-inline-end: -120px;
  width: 460px;
  height: 400px;
  border-radius: 50% 50% 45% 55% / 55% 45% 55% 45%;
  background: rgba(41, 128, 242, 0.045);
  filter: blur(8px);
}

#dn-about-committee .dn-committee-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

#dn-about-committee .dn-committee-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.6vw, 28px);
  width: 100%;
  max-width: 1180px;
  margin: clamp(34px, 4vw, 48px) auto 0;
  align-items: start;
}

#dn-about-committee .dn-expert-card:nth-child(2) { --reveal-delay: 80ms; }
#dn-about-committee .dn-expert-card:nth-child(3) { --reveal-delay: 160ms; }
#dn-about-committee .dn-expert-card:nth-child(4) { --reveal-delay: 240ms; }
#dn-about-committee .dn-expert-card:nth-child(5) { --reveal-delay: 320ms; }

/* ================================================================ התכנית */

#dn-program { background: linear-gradient(180deg, var(--page-panel) 0%, var(--page-bg) 100%); }

#dn-program .dn-prog-blob {
  top: 3%;
  inset-inline-start: -120px;
  width: 440px;
  height: 380px;
  border-radius: 45% 55% 50% 50% / 55% 45% 55% 45%;
  background: rgba(41, 128, 242, 0.045);
  filter: blur(8px);
}

#dn-program .dn-prog-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
}

#dn-program .dn-prog-h2 { margin-top: clamp(24px, 3vw, 36px); }

#dn-program .dn-prog-h2 .elementor-heading-title {
  font-size: var(--t-h3);
  font-weight: 800;
  line-height: 1.35;
  color: var(--page-fg-strong);
}

#dn-program .dn-prog-img img {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  margin: clamp(28px, 4vw, 40px) auto;
}

/* The "אף תוכנית / התוכנית הזאת" lines are a comparison list, not prose. */
#dn-program .dn-prog-list {
  width: 100%;
  margin-top: clamp(22px, 3vw, 32px);
  text-align: start;
}

#dn-program .dn-prog-list p {
  background: #fff;
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--brand-primary);
  border-radius: var(--r-md);
  padding: 14px 18px;
  margin: 0 0 10px;
  font-size: var(--t-small);
  line-height: 1.7;
  color: var(--page-fg);
  box-shadow: var(--shadow-card);
}

#dn-program .dn-prog-list p:last-child { margin-bottom: 0; }

/* ====================================== prose pages (legal + the article) */

#dn-prose-page {
  background: var(--page-bg);
}

#dn-prose-page .dn-prose-inner {
  max-width: 860px;
  text-align: start;
}

#dn-prose-page .dn-h1 { margin-bottom: clamp(24px, 3vw, 36px); }

#dn-prose-page .dn-prose-h2 { margin: clamp(26px, 3vw, 38px) 0 10px; }

#dn-prose-page .dn-prose-h2 .elementor-heading-title {
  font-size: var(--t-h3);
  font-weight: 800;
  line-height: 1.3;
  color: var(--page-fg-strong);
}

#dn-prose-page .dn-prose {
  font-size: var(--t-small);
  line-height: 1.95;
  color: var(--page-fg-muted);
}

#dn-prose-page .dn-prose p { margin: 0 0 16px; }
#dn-prose-page .dn-prose p:last-child { margin-bottom: 0; }

#dn-prose-page .dn-prose h1,
#dn-prose-page .dn-prose h2,
#dn-prose-page .dn-prose h3,
#dn-prose-page .dn-prose h4 {
  font-size: var(--t-h4);
  font-weight: 800;
  line-height: 1.35;
  color: var(--page-fg-strong);
  margin: 28px 0 10px;
}

#dn-prose-page .dn-prose ul,
#dn-prose-page .dn-prose ol {
  margin: 0 0 16px;
  padding-inline-start: 22px;
}

#dn-prose-page .dn-prose li { margin-bottom: 8px; }

#dn-prose-page .dn-prose a {
  color: var(--brand-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

#dn-prose-page .dn-prose img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  margin: 22px auto;
}

#dn-prose-page .dn-prose iframe {
  max-width: 100%;
  border-radius: var(--r-lg);
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 1024px) {
  #dn-about-committee .dn-committee-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .dn-two-grid { grid-template-columns: 1fr; }
  #dn-about-committee .dn-committee-grid { grid-template-columns: 1fr; }
}
